Friday, December 21, 2012
Increasing filesystem space on AIX
Increasing filesystem space on AIX
To check all filesystems:
# df -g
# lslv test (Name of the logical volume)
This will give volume group name
# lsvg rootvg (Volume group name)
Verify free PP and if we have enough space than
# chfs -a size=+1G /filesystem
It will add 1 GB to the filesystem
# df -g (Verify filesystem)
Wednesday, October 31, 2012
Make sendmail on Solaris listen to more than localhost
Check the current configuration:
# svcprop sendmail grep -i local_only
config/local_only boolean true
# svccfg -v -s sendmail setprop config/local_only=false
# svcadm refresh sendmail # svcadm restart sendmail
# svcprop sendmail grep -i local_only
config/local_only boolean true
# svccfg -v -s sendmail setprop config/local_only=false
# svcadm refresh sendmail # svcadm restart sendmail
Monday, August 20, 2012
Excluding directories and files in tar command
Create a file with all the dictories and files that you want to exclude in the tar
# less exclude
test1
hello
Execute following command
# tar -cvfX test.tar ./exclude *
a hello excluded
a test/ 0K
a test1 excluded
a test2/ 0K
a test3/ 0K
Extract with tar as usual
# tar -xvf test.tar
# less exclude
test1
hello
Execute following command
# tar -cvfX test.tar ./exclude *
a hello excluded
a test/ 0K
a test1 excluded
a test2/ 0K
a test3/ 0K
Extract with tar as usual
# tar -xvf test.tar
Thursday, July 5, 2012
Setting UP private interface between two zones:
Setting UP private interface between
two zones:
1)
Connect two physical server using cross over
cable
2)
ifconfig nxge3 inet 192.168.0.10 netmask
255.255.255.0 broadcast 192.168.0.255
3)
ifconfig nxge3 up
4)
Make changes to the zone so that it will persistent
bash-3.00#
zonecfg -z zone
zonecfg:testzone>
add net
zonecfg:testzone:net>
set address=192.168.0.15
zonecfg:testzone:net>
set physical=nxge3
zonecfg:testzone:net>
end
zonecfg:testzone>
verify
zonecfg:testzone>
commit
zonecfg:testzone>
exit
5)
Create interface and attach to the zone from the
global
# ifconfig nxge3 addif 192.168.0.15 netmask 255.255.255.0
broadcast 192.168.0.255 zone testzone up
Created new logical interface nxge3:1
Oracle settings in /etc/project
/etc/project
Command to check value for project.max-shm-memory
prctl -n project.max-shm-memory -i project user.oracle
Command to increase memory to 96 GB memory for
running Process
prctl -n project.max-shm-memory -r -v 96GB -i project user.oracle
Command to Make it permanent by updating
/etc/project file
projmod -sK
"project.max-shm-memory=(privileged,103079215104,deny)" user.oracle
Command to check all parameters for current user
prctl $$
Command to check all parameters used for Oracle
user
prctl -i project user.oracle
Tuesday, July 3, 2012
Adding Static IP on Solaris 11
Adding Static IP
root@solaris11:~# ipadm create-ip net2
root@solaris11:~# ipadm create-addr -T static -a 192.168.0.235/22 net2/ipv4
root@solaris11:~# route -p add default 192.168.0.254
add net default: gateway 192.168.0.254
add persistent net default: gateway 192.168.0.254
updating /etc/resolv.conf on Solaris 11
### updating /etc/resolv.conf on Solaris 11 ################
root@solaris11:~# svccfg
svc:> select dns/client
svc:/network/dns/client> setprop config/search = astring: ("search.com" "searchme.com" "searchyou.com")
svc:/network/dns/client> setprop config/nameserver = net_address: (192.10.10.10 192.10.10.11 192.10.10.12)
svc:/network/dns/client> select dns/client:default
svc:/network/dns/client:default> refresh
svc:/network/dns/client:default> validate
svc:/network/dns/client:default> select name-service/switch
svc:/system/name-service/switch> setprop config/host = astring: "files dns"
svc:/system/name-service/switch> select system/name-service/switch:default
svc:/system/name-service/switch:default> refresh
svc:/system/name-service/switch:default> validate
svc:/system/name-service/switch:default>
svc:/system/name-service/switch:default>
svc:/system/name-service/switch:default>
svc:/system/name-service/switch:default>
svc:/system/name-service/switch:default> exit
root@solaris11:~# svcadm enable dns/client
Subscribe to:
Posts (Atom)
Welcome to the UNIX world