1833464 Members
2841 Online
110052 Solutions
New Discussion

forceful umount

 
M.Thomas
Frequent Advisor

forceful umount

i need to unmount /oracle and i have multiple filesyetsms like /oracle/data1, /oracle/data2 thru /oracle/data35. How do i unmount /oracle forcefully so that all the others are also unmounted. I need to extend /oracle by 10G for which i need to umount. no online JFS.

Thanks

Thomas
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: forceful umount

Hi:

You could do:

# for F in `bdf|awk '$NF~/oracle/ {print $NF}`
> do
> umount ${F}
done

Regards!

...JRF...
DCE
Honored Contributor

Re: forceful umount



Simplest way
reboot server and bring it up in single user mode
mount only those mount points in vg00 (/usr, /var) necessary for the lv/file system extension
extend the lv/file system
reboot server and come up in multiuser mode

harder way
shutdown oracle, and any other process that access the affected mount points
write a script to umount the desired mount points
run the script
see which ones did not unmount
run fuser or lsof to determine what processes are using the mount points
shutdown/kill those processes
umount the remaining mount points
extend the lv/fs
remount the mount points in the correct order


IT_2007
Honored Contributor

Re: forceful umount

Make sure that you bring down database before you kill process otherwise database get corrupted.

fuser -cu /oracle and see processes belongs it.

fuser -ku /oracle --> will kill all processes belongs to oracle.

umount /oracle and related filesystems.

lvextend -L 10240 /dev/vgXXX/lvolYYY
extendfs -F vxfs /mountpoint