Product data

102 PowerVM Migration from Physical to Virtual Storage
On the source partition
The following series of commands show us the pre-migration state of the source
partition and allow us to collect the information that will be needed later on in the
migration.
The first lspv command displays only the disks that are relevant for this exercise
and shows us that the partition was booted from rootvg on hdisk4 and the data
volume group is datasrcvg on hdisk5. The remaining lsattr commands retrieve
the unique_id for each disk. These IDs will be needed when the Fibre Channel
adapter has been remapped to the Virtual I/O Server.
Use the lsdev command with the parent flag to verify the type of disk as done in
the example 2 on page 92. For additional information about the type of disk, use
the lsattr command, as shown below. Since the command lists the string FASt
in its output, this must be IBM DS4000® Fibre Channel storage. You will see
different identification strings unique to the type of storage that you are using.
# lspv | grep active
hdisk4 000fe4117e88efc0 rootvg
active
hdisk5 000fe41181e1734c datasrcvg
active
# lsattr -El hdisk4 | grep unique_id
unique_id 3E213600A0B8000291B0800009DCB0402FC540F1815
FAStT03IBMfcp Unique device identifier False
# lsattr -El hdisk5 | grep unique_id
unique_id 3E213600A0B8000291B0800009DCC0402FC6C0F1815
FAStT03IBMfcp Unique device identifier False
The first two lsdev commands that follow provide further confirmation that hdisk4
and hdisk5 are SAN disks. The next lsdev command shows us all devices that
are on the 00-08 logical location code. This tells us that since our rootvg and data
disks are at logical location 00-08, the Fibre Channel adapter that is mapped to
the same logical location code will be the Fibre Channel adapter that is serving
hdisk4 and hdisk5. As is shown in the output, the Fibre Channel adapter is fcs0.
The lscfg command gives us the hardware location code of fcs0 that must be
moved to the destination partition.
# lsdev -l hdisk4
hdisk4 Available 00-08-02 MPIO Other DS4K Array Disk
# lsdev -l hdisk5
hdisk5 Available 00-08-02 MPIO Other DS4K Array Disk
# lsdev | grep 00-08
fcnet0 Defined 00-08-01 Fibre Channel Network Protocol Device
fcs0 Available 00-08 FC Adapter
fscsi0 Available 00-08-02 FC SCSI I/O Controller Protocol Device