Beruflich Dokumente
Kultur Dokumente
Create array
In this next step we create the arrays. Before creating the arrays, it is a good
idea to first list
the arrays sites. The command that was issued is lsarraysite;
dscli> lsarraysite
Date/Time: 27 October 2005 20:54:31 IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7503461
arsite DA Pair dkcap (10^9B) State Array
=============================================
S1 0 146.0 Unassigned -
S2 0 146.0 Unassigned -
S3 0 146.0 Unassigned -
S4 0 146.0 Unassigned -
dscli> lsarray
Date/Time: 27 October 2005 21:58:27 IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-
7503461
Array State Data RAIDtype arsite Rank DA Pair DDMcap (10^9B)
===================================================
==================
A0 Unassigned Normal 5 (6+P+S) S1 - 0 146.0
A1 Unassigned Normal 5 (6+P+S) S2 - 0 146.0
Example 14-8 shows the result of the lsarray command. We can see the type of RAID
array
and the number of disks that are allocated to the array (in this example 6+P+S,
which means
the usable space of the array is 6 times the DDM size), as well as the capacity of the
DDMs
that are used and which array sites were used to create the arrays.
Create ranks
Once we have created all the arrays that are required, we then create the
ranks using the
mkrank command. The format of the command is: mkrank -array Ax -stgtype
xxx, where
xxx is either fixed block (FB) or count key data (CKD), depending on whether
you are
configuring for open systems or System z hosts.
For ease of management, we create empty extent pools relating to the type of
storage that is
in this pool. For example, create an extent pool for high capacity disk, create
another for high
performance, and, if needed, extent pools for the CKD environment. For high
capacity, you
would consider using 300 GB 10k rpm DDMs, while for high performance you
might consider
73 GB 15k rpm DDMs.
It is also a good idea to note to which server the extent pool has an affinity.
Example 14-10 An extent pool layout plan
FB Extent Pool high capacity 300gb disks assigned to server 0 (FB_LOW_0)
FB Extent Pool high capacity 300gb disks assigned to server 1 (FB_LOW_1)
FB Extent Pool high performance 146gb disks assigned to server 0 (FB_High_0)
FB Extent Pool high performance 146gb disks assigned to server 0 (FB_High_1)
CKD Extent Pool High performance 146gb disks assigned to server 0 (CKD_High_0)
CKD Extent Pool High performance 146gb disks assigned to server 1 (CKD_High_1)
Example 14-10 shows an example of how we could divide your machine. Now in
Example 14-6 on page 285 we only had four array sites, so clearly we would
need more
DDMs to support this many extent pools.
Note that the mkextpool command forces you to name the extent pools. In
Example 14-11 we
first create empty extent pools using mkextpool. We then list the extent pools
to get their IDs.
Then we attach a rank to an empty extent pool using the chrank command.
Finally we list the
extent pools again using lsextpool and note the change in capacity of the
extent pool.
Example 14-11 Extent pool creation using mkextpool, lsextpool, and chrank
dscli> mkextpool -rankgrp 0 -stgtype fb FB_high_0
Date/Time: 27 October 2005 21:42:04 IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7503461
CMUC00000I mkextpool: Extent Pool P0 successfully created.
dscli> mkextpool -rankgrp 1 -stgtype fb FB_high_1
Date/Time: 27 October 2005 21:42:12 IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7503461
CMUC00000I mkextpool: Extent Pool P1 successfully created.
dscli> lsextpool
Date/Time: 27 October 2005 21:49:33 IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7503461
Name ID stgtype rankgrp status availstor (2^30B) %allocated available reserved numvols
=========================================================
==================================
FB_high_0 P0 fb 0 below 0 0 0 0 0
FB_high_1 P1 fb 1 below 0 0 0 0 0
dscli> chrank -extpool P0 R0
Date/Time: 27 October 2005 21:43:23 IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7503461
CMUC00008I chrank: Rank R0 successfully modified.
dscli> chrank -extpool P1 R1
Date/Time: 27 October 2005 21:43:23 IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7503461
CMUC00008I chrank: Rank R1 successfully modified.
dscli> lsextpool
Date/Time: 27 October 2005 21:50:10 IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7503461
Name ID stgtype rankgrp status availstor (2^30B) %allocated available reserved numvols
=========================================================
==================================
FB_high_0 P0 fb 0 below 773 0 773 0 0
FB_high_1 P1 fb 1 below 773 0 773 0 0
After having assigned a rank to an extent pool, we should be able to see this
when we display
the ranks. In Example 14-12 on page 288 we can see that rank R0 is assigned
to extpool P0.
288 IBM System Storage DS8000 Series: Architecture and Implementation
Example 14-12 Displaying the ranks after assigning a rank to an extent pool
dscli> lsrank -l
Date/Time: 27 October 2005 22:08:42 IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7503461
ID Group State datastate Array RAIDtype extpoolID extpoolnam stgtype exts usedexts
=========================================================
==========================
R0 0 Normal Normal A0 5 P0 FB_high_0 fb 773 0
R1 1 Normal Normal A1 5 P1 FB_high_1 fb 773 0
14.3.4 Creating FB volumes
We are now able to create volumes and volume groups. When we create them,
we should try
to distribute them evenly across the two rank groups in the storage unit. We
should also try
and create the same number of volumes in each rank group.
The format of the command that we use is:
mkfbvol -extpool pX -cap xx -name high_fb_0# 1000-1003
In Example 14-13, we have created eight volumes, each with a capacity of 10
GB. The first
four volumes are assigned to rank group 0 and the second four are assigned to
rank group 1.
Example 14-13 Creating fixed block volumes using mkfbvol
dscli> lsextpool
Date/Time: 27 October 2005 21:50:10 IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7503461
Name ID stgtype rankgrp status availstor (2^30B) %allocated available reserved numvols
=========================================================
==================================
FB_high_0 P0 fb 0 below 773 0 773 0 0
FB_high_1 P1 fb 1 below 773 0 773 0 0
dscli> mkfbvol -extpool p0 -cap 10 -name high_fb_0_#h 1000-1003
Date/Time: 27 October 2005 22:24:15 IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7503461
CMUC00025I mkfbvol: FB volume 1000 successfully created.
CMUC00025I mkfbvol: FB volume 1001 successfully created.
CMUC00025I mkfbvol: FB volume 1002 successfully created.
CMUC00025I mkfbvol: FB volume 1003 successfully created.
dscli> mkfbvol -extpool p1 -cap 10 -name high_fb_1_#h 1100-1103
Date/Time: 27 October 2005 22:26:18 IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7503461
CMUC00025I mkfbvol: FB volume 1100 successfully created.
CMUC00025I mkfbvol: FB volume 1101 successfully created.
CMUC00025I mkfbvol: FB volume 1102 successfully created.
CMUC00025I mkfbvol: FB volume 1103 successfully created.
Example 14-14 Checking the machine after creating volumes, by using lsextpool and lsfbvol
dscli> lsfbvol
Date/Time: 27 October 2005 22:28:01 IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7503461
Name ID accstate datastate configstate deviceMTM datatype extpool cap (2^30B) cap (10^9B)
=========================================================
==================================================
high_fb_0_1000 1000 Online Normal Normal 2107-922 FB 512 P0 10.0 -
high_fb_0_1001 1001 Online Normal Normal 2107-922 FB 512 P0 10.0 -
high_fb_0_1002 1002 Online Normal Normal 2107-922 FB 512 P0 10.0 -
high_fb_0_1003 1003 Online Normal Normal 2107-922 FB 512 P0 10.0 -
high_fb_1_1100 1100 Online Normal Normal 2107-922 FB 512 P1 10.0 -
high_fb_1_1101 1101 Online Normal Normal 2107-922 FB 512 P1 10.0 -
high_fb_1_1102 1102 Online Normal Normal 2107-922 FB 512 P1 10.0 -
high_fb_1_1103 1103 Online Normal Normal 2107-922 FB 512 P1 10.0 -
dscli> lsextpool
Date/Time: 27 October 2005 22:27:50 IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7503461
Name ID stgtype rankgrp status availstor (2^30B) %allocated available reserved numvols
=========================================================
==================================
FB_high_0 P0 fb 0 below 733 5 733 0 4
FB_high_1 P1 fb 1 below 733 5 733 0 4