AIX 5.3/6.1 Steps to Remove SAN from LPAR and VIO

This example is removing the mapping from VIO to LPAR that is being decommissioned. In this environment I have two Virtual Input/Output servers (VIO Server) that maps to one Logical Partition (LPAR). First, we are going to remove the SAN file systems from the LPAR by deleting the mount point and logical volume. It’s a good idea before starting this to make sure all application or databases are stopped.
Let’s attempt to umount the filesystems:

If we have problems umounting any mount point we can user lsof or fuser -kxuc /filesystem name to see what process or user is still using the mount point and as root kill the process using the process ID.

Next, we can remove the logical volumes with the next command.

After the mount points and logical volumes are removed, the next command will remove the volume groups.

The next command will create a new text file that will list the Virtual SCSI Client Adapters (VSCSI) ports that we can match up with the VIO.

Now, with this list we can look at the port number, which is the C number, and find the matching port number on the VIO. So, on the VIOa and VIOb we’ll run the following commands as padmin, the IBM user for VIO servers.

We can see from the output that this VIO only has two backing devices that point to the LPAR, so we know that we’ll have to do the same process on VIOb. For now I’ll finish VIOa. So, the next command will take the vhost2 and vhost10 and give us the SAN disk that links to the LPAR.

Once we have the backend SAN device we can run the final command to complete the process, then the SAN team can reclaim that SAN space.

AIX, Tutorials/Whitepapers
Tags: , , ,

Leave a Reply