Wednesday, 21 September 2011

volume provisioning through IBM SVC

Volume Provisioning using
IBM SAN Volume Controller
Table of Contents
1 1.Storage Allocation:...................................................................................................................... 4
1.1 Assigning Vdisks to a new server that has already been zoned to SVC: ................................ ................... 4
2 Removing Hosts and Vdisks. ................................................................................................ .......... 8
2.1 Removing a VDisk associated with a Host and deleting it. ................................ ................................ ........8
3 Acronyms Used. .............................................................................................................................. 9
Introduction:
The IBM SVC is a virtualization appliance that is based on In-Band Virtualization. It uses block
aggregation, which means taking storage from one or more storage subsystems and offering it to the
hosts in the form of Vdiks (Virtual disks).
This document will describe process to create a virtual disk from the MDG(managed disk group) and
assigning it to the hosts as per the requirement. The latter part of the document will describe the
process of removing the Vdisk from the Host.
1 Storage Allocation:
1.1 Assigning Vdisks to a new server that has already been zoned to
SVC:
Ø Create the host name using the WWPN (world wide port name) using the following
command.
Svctask mkhost –name <hostname> -hbawwpn <host wwpn> -force
Example:
IBM_2145:admin>svctask mkhost –name exobc001_vs019 –hbawwpn 2100001125928B10 –
force
NOTE: The mkhost command creates a logical host object.
Ø Display the Host using the following command:
svcinfo lshost <hostname/ID>
Example:
IBM_2145:admin>svcinfo lshost exobc001_vs019
id 150
name exobc001_vs019
port_count 2
type generic
WWPN 2100001125928B10
node_logged_in_count 2
Ø Add the second WWPN to the SVC if the Host has dual HBA’s configured.
Svctask mkhost –name <hostname> -hbawwpn <host wwpn> -force
Exapmle:
IBM_2145:admin>svctask mkhost –name exobc001_vs019 –hbawwpn
2100001125928B11 –force
Ø Display the Host again using the following command to check if both the WWPN’s are
added:
Svcinfo lshost <hostname/ID>
Example:
IBM_2145:admin>svcinfo lshost exobc001_vs019
id 150
name exobc001_vs019
port_count 2
type generic
WWPN 2100001125928B10
node_logged_in_count 2
WWPN 2100001125928B11
node_logged_in_count 2
Ø List the managed disk groups to see which one has enough free space which can be assigned to
the new server.
Svcinfo lsmdiskgrp
Example:
IBM_2145:admin>svcinfo lsmdiskgrp
id Name Status Mdisk_count Vdisk_count capacity extent_size free_capacity
0 DS41_PR1_mdg1 online 5 104 4647.1GB 128 10.0GB
1 ESS_PR1_mdg1 online 32 78 4180.0GB 128 478.0GB
2 DS41_PR1_mdg4 online 5 14 4647.1GB 128 20.0GB
3 DS81_PR1_mdg1 online 56 178 11200.0GB 128 937.2GB
4 ESS_PR1_mdg2 online 32 133 4180.0GB 128 257.1GB
5 DS41_PR1_mdg3 online 5 33 4647.5GB 128 1.0GB
6 DS41_PR1_mdg2 online 5 124 4647.1GB 128 218.5GB
7 ESS_PR1_mdg3 online 32 42 4180.0GB 128 326.8GB
8 ESS_PR1_mdg4 online 32 19 4180.0GB 128 2097.1GB
9 DS81_PR1_mdg2 online 28 14 5600.0GB 128 445.0GB
10 DS81_PR1_mdg3 online 52 41 13676.0GB 128 9546.0GB
11 DS81_PR1_mdg4 online 26 0 6838.0GB 128 6838.0GB
Ø List all the I/O groups on the SVC cluter.Determine the least loaded I/O group to associate the
new vdisk to host using the following command.
Svcinfo lsiogrp
Example:
IBM_2145:admin>svcinfo lsiogrp
id name node_count vdisk_count
0 io_grp0 2 271
1 io_grp1 2 509
2 io_grp2 0 0
3 io_grp3 0 0
4 recovery_io_grp 0 0
Ø Create the Vdisk needed for the server using the mkvdisk command.
Svctask mkvdisk –mdiskgrp <mdiskgrp id> -iogrp <id> -size <size> -fmtdisk –unit<MB/GB>
-name<name of the vdisk>
Example:
IBM_2145:admin>svctask mkvdisk -mdiskgrp 1 -iogrp 0 -size 40 -fmtdisk -unit gb -name
exobc001_vs19_1
Virtual Disk, id [101], successfully created
Ø Assign the vdisk created above to the Host.
Svctask mkvdiskhostmap –host <hostname> <vdiskname>
Example:
IBM_2145:admin>svctask mkvdiskhostmap -host exobc001_vs019 exobc001_vs19_1
Virtual Disk to Host map, id [0], successfully created
Ø Display the disk being used by the Host.
Svcinfo lshostvdiskmap <vdiskID>
Example:
IBM_2145:admin>svcinfo lshostvdiskmap 150
id Name SCSI_id vdisk_id vdisk_name wwpn vdisk_UID
150 exobc001_vs019 0 778 exobc001_vs1
9_1
2100001125928B
10
60050768018100AC98000000000
00437
Ø List the vDisk to ensure it is of the correct size as per the requirement.
Svcinfo lsvdisk <Vdisk ID>
Example:
IBM_2145:admin>svcinfo lsvdisk 778
id 778
name exobc001_vs19_1
IO_group_id 0
IO_group_name io_grp0
status online
mdisk_grp_id 9
mdisk_grp_name DS81_PR1_mdg2
capacity 15.0GB
type striped
formatted yes
mdisk_id
mdisk_name
FC_id
FC_name
RC_id
RC_name
vdisk_UID 60050768018100AC9800000000000437
throttling 0
preferred_node_id 1
fast_write_state empty

2 Removing Hosts and Vdisks.
2.1 Removing a VDisk associated with a Host and deleting it .
Ø Display the Host to check which Vdisks are mapped to it.
Svcinfo lshostvdiskmap <vdisk ID>
Example:
IBM_2145:admin>svcinfo lshostvdiskmap 150
id name SCSI_id vdisk_id vdisk_name wwpn vdisk_UID
150 exobc001_vs019 0 778 exobc001_vs19_1 2100001125928B10 60050768018100AC9800000000000437
Ø Display the Vdisk to ensure that it is mapped to the correct Host.
Svcinfo lshostvdiskmap <vdisk id>
Example:
IBM_2145:admin>svcinfo lsvdiskhostmap 778
Ø Remove the Vdisk from the Host.
IBM_2145:admin>svctask rmvdiskhostmap –<HostID/Hostname> <VdiskID/Vdisk
name>
Check the host again to ensure that the Vdisk(s) have been removed from the host.
IBM_2145:admin>svcinfo lshostvdiskmap exobc001_vs019
If the vdisk(s) have been unmapped successfully, then the above command will return a
command prompt.
Ø Remove the Host from the SVC
IBM_2145:admin>svctask rmhost <servername>
IBM_2145:admin> svcinfo rmhost exobc001_vs019
Display the servername to ensure that it has been removed from the SVC.
id name SCSI_id host_id host_name wwpn vdisk_UID
778 exobc001_vs19_1 0 150 exobc001_vs019 2100001125928B10 60050768018100AC9800000000000437
778 exobc001_vs19_1 0 150 exobc001_vs019 2100001125928B11 60050768018100AC9800000000000437
IBM_2145:admin>svcinfo lshost exobc001_vs019
Ø Delete the Vdisks from SVC so they go back into the MDG(managed disk groups) if they are
not being used by another server(s).
IBM_2145:admin>svctask rmvdisk <VdiskID/Vdiskname>
IBM_2145:admin>svctask rmvdisk 778
3 Acronyms Used:
WWPN World Wide Port Name
Vdisk Virtual Disk
MDG Managed Disk Group
SVC SAN Volume Controller
SAN Storage Area Network

No comments:

Post a Comment