Quote:
Originally Posted by
Joseph Sabo
Now, since the file systems belong to a Volume group I am assuming I would need to take the VG offline and remove the file systems via smitty. Since the disk belongs to a SAN, I would need to remove the disk definition from ODM and erase the path.
In AIX all (really all) filesystems are managed by a logical volume manager. As a rule of thumb you have:
- one or more filesystems belong to a volume group
- one or more disks provide the space for this volume group (each disk belongs to exactly one VG)
If a system is set up sensibly volume groups build logical groups of FSes, i.e. all FSes for one application are in one VG. Therefore you most probably want to remove all FSes from one VG.
If so:
-
lsvg -p to get the disks belonging to the VG (
man lsvg). Write these down.
- umount all the FSes in question.
- varyoff the VG after unmounting all the FSes in it. (
man varyoffvg)
- export the VG (
man exportvg)
The last command will remove the FS definitions from
/etc/filesystems as well as the VG. Finally you can remove the disk(s) which (formerly) belonged to the VG:
-
rmdev -Rdl <disk> (
man rmdev)
Afterwards remove the zoning/LUNs and it might be necessary to remove the disks from the VIOS too (if they are vSCSI).
Finally do a
cfgmgr on teh LPAR to make sure the disks are out of the system cleanly (if some artefacts are configured again you know you have more work to do).
Note, that there was a lot of assuming going on when writing this. In principle the procedure will cover the most common cases but you might have to change details for i.e. EMC SAN running PowerPath drivers, etc., so as long as we have no detailed description of your system we can#t tell you in all detail what to do and how.
I hope this helps.
bakunin