Operating System - HP-UX
1836887 Members
1938 Online
110111 Solutions
New Discussion

unmounting all lvs on a vg

 
SOLVED
Go to solution
Ravinder Singh Gill
Regular Advisor

unmounting all lvs on a vg

Is it possible to unmount all the logical volumes/filesystems part of a particular volume group rather than doing them manually?
2 REPLIES 2
Pete Randall
Outstanding Contributor
Solution

Re: unmounting all lvs on a vg

for i in `bdf -l |grep vgXX | awk '{ print $6 }'`
do
umount $i
done


Pete

Pete
Ravinder Singh Gill
Regular Advisor

Re: unmounting all lvs on a vg

Thanks