Monday, 20 June 2016



Some time we need to  mount all  the file systems of all the datavg , to do it one by one seems to be a tedious task so if you want to do it at once here is the script
 



MOUNTING ALL THE FILE SYSTEMS ON ALL THE IMPORTED VG OTHER THAN ROOTVG USING SCRIPT
for x in $(lsvg -o |grep -v rootvg)
do
varyonvg $x
for fs in $(lsvg -l $x|grep -vE ":|LV|log"|awk '{print $7}')
do
mount $fs
done
done

No comments:

Post a Comment