Operating System - HP-UX
1836458 Members
2682 Online
110101 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