lsvg -o
shows active VGs. Is there a way to find inactive VGs with a command?
Please advise.
lsvg -o
shows active VGs. Is there a way to find inactive VGs with a command?
Please advise.
If you are using bash:
lsvg | grep -v <(lsvg -o)
Or with ksh one option is to write the output of lsvg -o to a file, then:
lsvg -o > lsvg.active
lsvg | grep -vf lsvg.active
Another, not so nice perhaps, option is:
lsvg $(lsvg) | grep -vp "active" | awk '/^VOL/ {print $3}'
YES, it works fine. appreciate it!