Operating System - HP-UX
1836451 Members
2348 Online
110100 Solutions
New Discussion

File system removal hpux 11.0

 
vaman
Frequent Advisor

File system removal hpux 11.0

How can I remove a file system to get the space back.the fstype is vxfs
vaman kulkarni
4 REPLIES 4
John Poff
Honored Contributor

Re: File system removal hpux 11.0

Hi,

Unmount the filesystem (if it is mounted) and then do an 'lvremove' on the logical volume.

JP
Robert-Jan Goossens
Honored Contributor

Re: File system removal hpux 11.0

Hi Vaman,

# umount /mount_point
# lvremove /dev/vgxx/lvolx

and remove the corresponding line from the /etc/fstab

Hope this helps,
Robert-Jan
Sanjay_6
Honored Contributor

Re: File system removal hpux 11.0

Hi,

What is wrong with the previous answers.

you do a "umount /mount_point" to unmount the filesystem
The do a "lvremove /dev/vg_name/lv_name" to remove the LV.

If the unmount fails with the busy command,

do a "fuser -cu /mount_point" to check the processes using the filesystem and if you want to kill them, do "fuser -ck /mount_point". the n do the umount and all.

Hope this helps.

Regds

Chris Fadrowski
Super Advisor

Re: File system removal hpux 11.0

you can also do the lvremove then then do a vgexport to get rid of the VG physically and from the system. It will leave no trace.