This is a discussion on importing VGs? within the AIX Operating System forums, part of the Unix Operating Systems category; --> I'm soon moving all local disk to a SAN device. I want to be able to varyonvg for any ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I'm soon moving all local disk to a SAN device. I want to be able to varyonvg for any VG that's on the SAN. My end goal is to have my boxes and LPARs configured such that any box can run any application. To do this I need to importvg for all pdisks/hdisks/vpaths while keeping the VG varyed off. I know that I can only varyonvg for a single host unless the VG is one of the Current VGs (none of these are). Then I want to choose which VG to varyonvg, loop through and mount the filesystems, then start the application. These are just typed, never tested: ------ importvg.sh #!/bin/sh cfgmgr # not sure this is a good idea, any way to limit to only disks? lspv | awk '{print $1}' | while read disk do importvg $disk done ------- varyonvg.sh #!/bin/sh vg=$1 varyonvg $vg lsvg -p $vg | tail +3 | awk '!/^N.A$/ {print $NF}' | while read fs do mount $fs done |