2 creating new volumes – HP StorageWorks Scalable File Share User Manual

Page 16

Advertising
background image

2.3.2 Creating New Volumes

To create new volumes on a set of MSA2000 arrays, follow these steps:

1.

Power on all the MSA2000 shelves.

2.

Define an alias.

One way to execute commands on a set of arrays is to define a shell alias that calls
/opt/hp/sfs/msa2000/msa2000cmd.pl

for each array. The alias defines a shell for-loop

which is terminated with ; done. For example:

# alias forallmsas='for NN in `seq 101 2 119` ; do \
./msa2000cmd.pl 192.168.16.$NN'

In the above example, controller A of the first array has an IP address of 192.168.16.101,
controller B has the next IP address, and the rest of the arrays have consecutive IP addresses
up through 192.168.16.[119,120] on the last array. This command is only executed on one
controller of the pair.

For the command examples in this section, the MGS and MDS use the MSA2000 A controllers
assigned to IP addresses 192.168.16.101-103. The OSTs use the A controllers assigned to the
IP addresses 192.168.16.105-119. The vdisks and volumes created for MGS and MDS are not
the same as vdisks and volumes created for OSTs. So, for convenience, define an alias for
each set of MDS (MGS and MDS) and OST controllers.

# alias formdsmsas='for NN in `seq 101 2 103` ; do ./msa2000cmd.pl 192.168.16.$NN'

# alias forostmsas='for NN in `seq 105 2 119` ; do ./msa2000cmd.pl 192.168.16.$NN'

NOTE:

You may receive the following error if a controller is down:

# alias forallmsas='for NN in `seq 109 2 115` ; do ./msa2000cmd.pl 192.168.16.$NN'

# forallmsas show disk 3 ; done

----------------------------------------------------

On MSA2000 at 192.168.16.109 execute < show disk 3 >

ID Serial# Vendor Rev. State Type Size(GB) Rate(Gb/s) SP

------------------------------------------------------------------------------

3 3LN4CJD700009836M9QQ SEAGATE 0002 AVAIL SAS 146 3.0

------------------------------------------------------------------------------

On MSA2000 at 192.168.16.111 execute < show disk 3 >

ID Serial# Vendor Rev. State Type Size(GB) Rate(Gb/s) SP

------------------------------------------------------------------------------

3 3LN4DX5W00009835TQX9 SEAGATE 0002 AVAIL SAS 146 3.0

------------------------------------------------------------------------------

On MSA2000 at 192.168.16.113 execute < show disk 3 >

problem connecting to "192.168.16.113", port 23: No route to host at ./msa2000cmd.pl line 12

----------------------------------------------------

On MSA2000 at 192.168.16.115 execute < show disk 3 >

problem connecting to "192.168.16.115", port 23: No route to host at ./msa2000cmd.pl line 12

3.

Use the rescan command to find all the enclosures and drives. For example:

# forallmsas rescan ; done

# forallmsas show disks ; done

The drives in the first enclosure should be numbered 0-11 and those in the second enclosure
16-27. Depending on the order in which the controllers powered on, you may see different
ranges of disk numbers. If this occurs, run the rescan command again.

4.

Create vdisks in each MSA2000. For example for OSTs with two MSA2000 shelves:

# forostmsas create vdisk level raid6 disks 0-10 spare \
11 vdisk1 ; done

16

Installing and Configuring MSA2000fc Arrays

Advertising