Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2021903
  • 博文数量: 593
  • 博客积分: 20034
  • 博客等级: 上将
  • 技术积分: 6779
  • 用 户 组: 普通用户
  • 注册时间: 2006-02-06 14:07
文章分类

全部博文(593)

文章存档

2016年(1)

2011年(101)

2010年(80)

2009年(10)

2008年(102)

2007年(16)

2006年(283)

我的朋友

分类: 服务器与存储

2008-12-03 13:00:25

转至我的网站iamworker.com


一些概念性的东西:

DS8100

The DS8100 (Models 921 and 931) features a dual two-way processor complex and support for one expansion model.

DS8300

The DS8300 (Models 922, 932, 9A2, and 9B2) features a dual four-way processor complex and support for up to four expansion models. Models 9A2 and 9B2 support two IBM System Storage System logical partitions (LPARs) in one storage unit.

 

Completing DS CLI postinstallation

1. Initiate the DS CLI to begin using it in either single-shot, script, or interactive command mode.

2. Set up your required user accounts and passwords.

3. Set your DS CLI default configuration settings.

4. Activate your licensed functions. This includes obtaining your feature activation codes and applying the feature activation codes to your storage unit.

5. Enable the remote support and call home functions for your DS6000 model. You must provide customer contact and network information to enable these functions.

6. Register for the My Support service for your DS6000 model.

7. Configure new fixed block storage. Use the DS CLI to create and modify fixed block extent pools, arrays, ranks, volumes, and volume groups. You can also configure host ports and connections.

 

 

You must log into DS CLI to use the command modes. There are three command modes for the DS CLI:

Single-shot

Interactive

Script

 

Obtaining the serial (storage image ID) number using the DS CLI
dscli> lssi
Date/Time: September 15, 2006 10:39:32 AM MST DS CLI Version: 5.2.200.404
IBM.2107-1301371
 
To obtain a list of the storage image ID numbers, perform the following steps. The storage image ID consists of the manufacture name (IBM), the machine type (2107 or 1750), and the serial number.
1. Log into the DS CLI application in interactive command mode (if you are not already logged in).
2. Enter the following command format at the dscli command prompt to obtain the storage image IDs. dscli>lssi -s -hdr off
3. Wait for the command to process. The following type of report is generated, which lists the storage image IDs that are associated with the storage complex.
dscli>lssi -s -hdr off
IBM.2107-75FA111
IBM.2107-75FA112
IBM.2107-75FA120

 

Setting up user accounts

The admin account is set up automatically at the time of installation. It is accessed using the user name admin and the default password admin. This password is temporary and expires after its initial use. You must change the password before you can use any of the other functions. There are 7 groups the administrator can assign to a user. A user can be assigned to more than one user group. The groups and the associated functions allowed by the assignment are as follows:

Admin

op_volume

op_storage

op_copy_services

service

monitor

no_access

 

1.Log into the DS CLI application in interactive command mode.

2.Issue the following command from the dscli command prompt to assign a user to an account with a default password: dscli>mkuser -pw AB9cdefg -group service,op_copy_services testuser

3.Press Enter and observe the processing result. A successful process returns the following display: Sun Aug 11 02:23:49 PST 2004 IBM DS CLI

Version 5.0.0.0 DS: IBM.2107-75FA120

User Name testuser successfully created.

 

 

 

Follow the configuration steps to create at least one LSS or one LCU.
a. Create extent pools
b. Create arrays
c. Create a rank
d. Create a logical control unit (CKD only)
e. Create volumes
f. Create volume groups (Open systems only)
g. Configure your fibre-channel I/O ports
h. Create the SCSI host port connections (Open systems only)
 
 
Configuring new fixed block storage
 
Configuring new fixed block storage involves the following processes:
1 Creating fixed block extent pools
2 Creating arrays
3 Creating and associating ranks with extent pools
4 Creating fixed block volumes
5 Creating fixed block volume groups
6 Configuring fibre-channel I/O ports
7 Creating SCSI host port connections
 

 整个划分逻辑卷给AIX系统的完整过程:

The DSCLI command syntax is:
dscli -user -passwd -hmc1  
 
For example:
# /opt/ibm/dscli/dscli -user admin -passwd article123 -hmc1 198.162.1.2 lssi
Date/Time: May 15, 2008 4:50:04 AM CDT IBM DSCLI Version: 5.2.400.426
Name ID               Storage Unit     Model WWNN             State ESSNet
============================================================================
-    IBM.2107-7516231 IBM.2107-7516230 922   5005076303FFC150 Online Enabled
 
The second column shows all of the Storage Images managed by the HMC 198.162.1.2. "IBM.2107-7516231" is known as the storage Image ID. Throughout this article, $DSCLIcmd is used instead of the lengthy command.
# $DSCLIcmd
where DSCLIcmd=/opt/ibm/dscli/dscli -user admin -passwd article123 -hmc1 198.162.1.2
There are two possibilities while assigning disks to the host:
  • The first time adding disks to host
  • Adding additional disks to host
The first time adding disks to the host
These are the simple steps to assign disks to the new host for the first time.
1.       Identify the Fibrechannel Adapters WWNN ( worldwide Network Number) or the AIX host.
A.       Search for the FC adapters available in the host using the lsdev command:
# lsdev -Cc adapter | grep fc
fcs0    Available 1Z-08    FC Adapter
       
B.        
C.       The FC adapter device name starts with fcs. Here only one FC adapter is available. Your host may have many FC adapters.
D.      Use the lscfg command to get the WWNN for the fcs0 adapter:
# lscfg -vl fcs0 | grep -w "Network Address"
        Network Address.............10000000C9427D30
 
2.       Create the host connection:
1.Use the mkhostconnect dscli command to add the host definition to the storage image.
 
# $DSCLIcmd mkhostconnect -dev IBM.2107-7516231 -wwname 10000000C9427D30
                              -profile \"IBM pSeries - AIX\"   Node1
Date/Time: May 13, 2008 1:23:14 AM CDT IBM DSCLI Version: 5.2.400.426 DS:
         IBM.2107-7516231
CMUC00012I mkhostconnect: Host connection 0060 successfully created.
 
2.Using the lshostconnect command, you can see the list of connected hosts.
To verify after adding the host definition, run the following dscli command.
# $DSCLIcmd lshostconnect -dev IBM.2107-7516231 | grep Node1
Node1      0060 10000000C9427D30 -    IBM pSeries - AIX      0 -     all
 
Record the hostid for future reference, which is 0060 in this case.
3.       Use the mkvolgrp dscli command to create a volume group:
# $DSCLIcmd mkvolgrp -dev IBM.2107-7516231 Node1_vg
Date/Time: May 13, 2008 1:40:12 AM CDT IBM DSCLI Version: 5.2.400.426 DS:
         IBM.2107-7516231
CMUC00030I mkvolgrp: Volume group V77 successfully created.
 
Record Volume Group ID V77 in this example for future reference.
4.       Create volumes:
0.Identify Logical Sub System (LSS):
Before creating volumes, select the LSS from which you want to create volumes. The lslss dscli command lists the available LSSs in the storage image.
# $DSCLIcmd lslss -dev IBM.2107-7516231
Date/Time: May 13, 2008 1:43:50 AM CDT IBM DSCLI Version: 5.2.400.426 DS:
          IBM.2107-7516231
ID Group addrgrp stgtype confgvols
==================================
08     0       0 fb              2
09     1       0 fb             33
0A     0      0 fb             20
0D     1       0 fb              8
10     0       1 fb             51
11     1       1 fb            189
 
Select one LSS from the list. Assume that you have selected LSS 05
.
1.Identify maximum volume ID:
Use the lsfbvol command to get the list of volumes belongs to the LSS 05 and identify the highest volume ID.
# $DSCLIcmd lsfbvol -dev IBM.2107-7516231 -lss 05
Date/Time: May 13, 2008 1:46:23 AM CDT IBM DSCLI Version: 5.2.400.426 DS:
        IBM.2107-7516231
Name D   accstate datastate configstate deviceMTM datatype extpool cap (2^30B)
cap (10^9B) cap (blocks)
=============================================================================
PPRC0003 050D Online   Normal Normal   2107-900 FB 512   P1 - 1.0 1953152
PPRC0004 050E Online   Normal   Normal   2107-900 FB 512   P1 - 1.0 1953152
PPRC0005 050F Online   Normal   Normal   2107-900 FB 512   P1 - 1.0 1953152
PPRC0006 0510 Online   Normal   Normal   2107-900 FB 512   P1 - 1.0 1953152
PPRC0007 0511 Online   Normal   Normal   2107-900 FB 512   P1 - 1.0 1953152
PPRC0008 0512 Online   Normal   Normal   2107-900 FB 512   P1 - 1.0 1953152
PPRC0009 0513 Online   Normal   Normal   2107-900 FB 512   P1 - 1.0 1953152
 
Record the highest volume ID (second column), for instance 0513, and the Extentpool (eighth column) it belongs to; in this case, LSS 05 belongs to extentpool P1.
2.Create a new volume:
Use the mkfbvol dscli command to create new volumes. This command creates one disk of 10GB size from the LSS 10.
# $DSCLIcmd mkfbvol -dev IBM.2107-7516231 -extpool P1 -type ds -cap 10 0514
Date/Time: May 13, 2008 1:59:24 AM CDT IBM DSCLI Version: 5.2.400.426 DS:
      IBM.2107-7516231
CMUC00025I mkfbvol: FB volume 0514 successfully created.
 
The type attribute could be "DS" or "ESS." If you want to use these disks for PPRC, then the type attributes depends on the type of target disk. If the target disk type is either 2107 or 1750, the "-type" attribute here should be "DS." If the target disk type is 2105 then the "-type" attribute should be "ESS."
The previous command can create only one volume. You can specify the range to create multiple volumes. This is illustrated as follows:.
# $DSCLIcmd mkfbvol -dev IBM.2107-7516231 -extpool P1 -type ds -cap 10 0515-0518
Date/Time: May 13, 2008 2:10:55 AM CDT IBM DSCLI Version: 5.2.400.426 DS:
     IBM.2107-7516231
CMUC00025I mkfbvol: FB volume 0515 successfully created.
CMUC00025I mkfbvol: FB volume 0516 successfully created.
CMUC00025I mkfbvol: FB volume 0517 successfully created.
CMUC00025I mkfbvol: FB volume 0518 successfully created.
 
Record the range or volume IDs created that you need to use in the future.
The volume IDs should be in Hex-Decimal format.
5.       Add the created volumes to a volume group, so that the host can access all volumes in VG. This can be done using the chvolgrp command:

chvolgrp
                       
# $DSCLIcmd chvolgrp -action add -volume 0515-0520 IBM.2107-7516231/V77
Date/Time: May 13, 2008 2:44:08 AM CDT IBM DSCLI Version: 5.2.400.426
CMUC00031I chvolgrp: Volume group V77 successfully modified.
 
6.       Use the chhostconnect dscli command to add the created volume group to the new host.
# $DSCLIcmd chhostconnect -dev IBM.2107-7516231 -volgrp V77 0060
Date/Time: May 13, 2008 2:46:35 AM CDT IBM DSCLI Version: 5.2.400.426 DS:
     IBM.2107-7516231
CMUC00013I chhostconnect: Host connection 0060 successfully modified.
       
7.        
8.       Run the cfgmgr command on the host to configure the added disks from storage. Run the following command to view the disks:
# lsdev -Cc disk | grep -e 2107 -e 1750
hdisk2 Available 1Z-08-02     IBM MPIO FC 2107
hdisk3 Available 1Z-08-02     IBM MPIO FC 2107
hdisk4 Available 1Z-08-02     IBM MPIO FC 2107
hdisk5 Available 1Z-08-02     IBM MPIO FC 2107
 
2107 here indicates that the disks belong to DS8000 and 1750 indicates that the disks belong to the DS6000 type.
 
Adding additional disks to host
This is the second case when the host definition already exists in storage image and the user wants to add more disks to host from storage then the procedure assigning disks slightly varies and it is very simple.
1.       Identify the Fibrechannel Adapters WWNN (worldwide Network Number) address. Search for the FC adapters available in the host using the lsdev command.
# lsdev -Cc adapter | grep fc
fcs0    Available 1Z-08    FC Adapter
 
The FC adapter device name starts with "fcs." Here only one FC adapter is available. Your host may have many FC adapters.
Use the lscfg command to get the WWNN for the fcs0 adapter.


lscfg
                       
# lscfg -vl fcs0 | grep -w "Network Address"
        Network Address.............10000000C9427D30
 
2.       Search for the host and Identify Volume Group.
Use the the lshostconnect dscli command to verify whether the host is already defined to a storage image.
# $DSCLIcmd lshostconnect -dev IBM.2107-7516231 $Delim | grep -w 10000000C9427D30
Node1:0060:10000000C9427D30:-:IBM pSeries - AIX:0:V77:all
 
If host WWNN exists, the lshostconnect lists the host definition as shown above. The seventh field shows the Volumegroup ID assigned to this host. So, in this case the VGID is V77.
If the host is not defined already, the output is null. So, the user needs to follow the First time adding disks to host procedure.
As we identified the host and VG recorded these values and followed the steps in the First time adding disks to host procedure starting with Step 4. Create volumes.
The following example shows all of the commands together:
# DSCLIcmd=/opt/ibm/dscli/dscli -user admin -passwd article123 -hmc1 198.162.1.2
# Delim="-fmt delim -delim ":" -bnr off -hdr off"
 
# $DSCLIcmd mkhostconnect -dev IBM.2107-7516231 -wwname 10000000C9427D30 \
                                       -profile \"IBM pSeries - AIX\"   Node1
Date/Time: May 13, 2008 1:23:14 AM CDT IBM DSCLI Version: 5.2.400.426 DS:
      IBM.2107-7516231
CMUC00012I mkhostconnect: Host connection 0060 successfully created.
 
# $DSCLIcmd lshostconnect -dev IBM.2107-7516231 | grep Node1
Node1     0060 10000000C9427D30 -     IBM pSeries - AIX         0 -      all
 
# $DSCLIcmd mkvolgrp -dev IBM.2107-7516231 Node1_vg
Date/Time: May 13, 2008 1:40:12 AM CDT IBM DSCLI Version: 5.2.400.426 DS:
     IBM.2107-7516231
CMUC00030I mkvolgrp: Volume group V77 successfully created.
 
# $DSCLIcmd lslss -dev IBM.2107-7516231
Date/Time: May 13, 2008 1:43:50 AM CDT IBM DSCLI Version: 5.2.400.426 DS:
     IBM.2107-7516231
ID Group addrgrp stgtype confgvols
==================================
08     0       0 fb              2
09     1       0 fb             33
0A     0       0 fb             20
0D     1       0 fb              8
10     0       1 fb             51
11     1       1 fb            189
13     1       1 fb             31
 
# $DSCLIcmd lsfbvol -dev IBM.2107-7516231 -lss 05 $Delim \
                                         | awk ' FS=":" { print $2" "$8 }' | sort -rn | head -1
0513 P1
 
Note: In the above output 0520 is the MAX volumeid and P1 is the extentpool
to which the lss 05 belongs to.
 
# $DSCLIcmd mkfbvol -dev IBM.2107-7516231 -extpool P1 -type ds -cap 10 0514
Date/Time: May 13, 2008 1:59:24 AM CDT IBM DSCLI Version: 5.2.400.426 DS:
      IBM.2107-7516231
CMUC00025I mkfbvol: FB volume 0514 successfully created.
 
# $DSCLIcmd mkfbvol -dev IBM.2107-7516231 -extpool P1 -type ds -cap 10 0514-0518
Date/Time: May 13, 2008 2:10:55 AM CDT IBM DSCLI Version: 5.2.400.426 DS:
     IBM.2107-7516231
CMUC00025I mkfbvol: FB volume 0514 successfully created.
CMUC00025I mkfbvol: FB volume 0515 successfully created.
CMUC00025I mkfbvol: FB volume 0516 successfully created.
CMUC00025I mkfbvol: FB volume 0517 successfully created.
CMUC00025I mkfbvol: FB volume 0518 successfully created.
 
 
# $DSCLIcmd chvolgrp -action add -volume 0515-0520 IBM.2107-7516231/V77
Date/Time: May 13, 2008 2:44:08 AM CDT IBM DSCLI Version: 5.2.400.426
CMUC00031I chvolgrp: Volume group V77 successfully modified.
 
# $DSCLIcmd chhostconnect -dev IBM.2107-7516231 -volgrp V77 0060
Date/Time: May 13, 2008 2:46:35 AM CDT IBM DSCLI Version: 5.2.400.426 DS:
     IBM.2107-7516231
CMUC00013I chhostconnect: Host connection 0060 successfully modified.
 
#cfgmgr
 
# lsdev -Cc disk | grep -e 2107 -e 1750
hdisk2 Available 1Z-08-02     IBM MPIO FC 2107
hdisk3 Available 1Z-08-02     IBM MPIO FC 2107
hdisk4 Available 1Z-08-02     IBM MPIO FC 2107
hdisk5 Available 1Z-08-02     IBM MPIO FC 2107
hdisk6 Available 1Z-08-02     IBM MPIO FC 2107
 
 
Summary
You can achieve high performance using the dscli command. Simple commands to create volumes and adding to AIX host. One thing that the system administrator has to take care is that some commands need arguments that can be found from the preceding commands. For example, to create volumes, the mkfbvol dscli command needs LSS and EXTENTPOOL, which can be taken from the lsfbvol command. You can combine all commands and write a script that can automate the entire disk-assigning process.
 
阅读(2532) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~