You can Download or view document from SlideShare Here
Thank you
Osama mustafa
For the people who think differently Welcome aboard
You can Download or view document from SlideShare Here
Thank you
Osama mustafa
mount -F nfs IP:/export/home/oracle/test /export/home/oracle/test
Output :
nfs mount: mount: /export/home/oracle/test : Device busy
Check why it’s Busy using :
fuser -u /export/home/oracle/test
/export/home/oracle/test : 1432c(oracle)
Kill the process :
kill – 9 1432
Thank you
Osama mustafa
share [-F fstype] [ -o options] [-d “”] [resource]
share -F nfs -o rw -d “codereview dirs” /u01/Shared –> my Shared Folder
root@Host:/u01# cat /etc/dfs/sharetab
/u01/hmmdb u01_hmmdb nfs sec=sys,rw codereview
/u01/Shared u01_Shared nfs sec=sys,rw
Exports list on :
/u01/Shared All Machines
/u01/hmmdb All Machines
root@TEST:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
oracle 107G 10.6G 1.11M /oracle
oracle/u01 105G 13.0G 105G /u01
rpool 32.2G 46.0G 39K /rpool
rpool/ROOT 5.40G 46.0G 31K legacy
rpool/ROOT/solaris 5.40G 46.0G 5.03G /
rpool/ROOT/solaris/var 318M 46.0G 314M /var
rpool/dump 1.03G 46.1G 1.00G –
rpool/export 854K 46.0G 32K /export
rpool/export/home 822K 46.0G 32K /export/home
rpool/export/home/omnix 790K 46.0G 790K /export/home/omnix
rpool/swap 25.8G 46.8G 25.0G –
root@TEST:~# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
oracle 140G 105G 34.9G 75% 1.00x ONLINE –
rpool 79.5G 31.4G 48.1G 39% 1.00x ONLINE –
root@TEST:~# zpool set autoexpand=on oracle
root@TEST:~# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
oracle 140G 105G 34.9G 75% 1.00x ONLINE –
rpool 79.5G 31.4G 48.1G 39% 1.00x ONLINE –
now you have to do the below :
root@TEST:~# zfs get volsize,reservation oracle
NAME PROPERTY VALUE SOURCE
oracle volsize – –
oracle reservation 107G local
root@TEST:~# zfs set reservation=140G oracle/u01
root@TEST:~# zfs get reservation oracle/u01
NAME PROPERTY VALUE SOURCE
oracle/u01 reservation 140 local
–> zfs set quota=140G oracle
Finally Check df -h and size are increased 🙂
Thank you
Osama mustafa
When run the below command :
zfs destroy rpool/export/home/grid
cannot unmount ‘/export/home/oracle’: Device busy
Solution :
zfs unmount rpool/export/home/grid
zfs destroy rpool/export/home/grid
Thank you
Osama mustafa
zfs create -o mountpoint=/u01 rpool/u01
By default root login on solaris disabled and you cannot login as root. ( which is amazing for security ) but sometimes you need to enable this login and to do that follow the below steps :
#
# The system provided entries are stored in different files
# under “/etc/user_attr.d”. They should not be copied to this file.
#
# Only local changes should be stored in this file.
# This line should be kept in this file or it will be overwritten.
#
oracle::::type=normal;project=user.oracle;defaultpriv=basic,net_privaddr
type should be normal.
and to enable SSH for root user you have to do the following :
vi /etc/ssh/sshd_config
PermitRootLogin = yes
vi /etc/default/login
#CONSOLE =/dev/login|console
rolemod -K type=normal root
Thank you
Osama mustafa