Back to the main page

StorEdge 6120 - system, volume, slice, LUN configuration

I assume you have console connection to the 6120, and will start with examples now!

To see 6120 parameters (and change them) use sys command: 
# sys list
controller         : 2.5
blocksize          : 64k
cache              : auto 	keep this auto, but view actual cache status with vol mode
mirror             : auto 	cache from failed controller will be copied to other controller in HA configuration
mp_support         : rw 	set mpxio for High Availability configuration
naca               : off
rd_ahead           : on
recon_rate         : high 	volume reconstruction rate
sys memsize        : 256 MBytes
cache memsize      : 1024 MBytes
fc_topology        : auto
fc_speed           : 1Gb
disk_scrubber      : off
ondg               : befit
Set network/other parameters: # set ip 192.168.19.64 # set timezone :America/Los_Angeles
# set
bootmode  auto
bootdelay 3
ip        192.168.19.64
netmask   255.255.255.128
gateway   192.168.19.1
tftphost  0.0.0.0
tftpfile
hostname  sds10
timezone  :America/Los_Angeles
logto     /syslog
loglevel  3
rarp      off
mac       00:03:ba:cc:c7:38
Reset if needed to save changes
# reset
Reset the system, are you sure? [N]: y
Disabling controllers
Enabling controllers
Resetting myself
Etc, etc
See current volumes (say, what has left from previous system admin and you don't need any more)
# vol list
volume            capacity raid data       standby
volume-data     340.851 GB    5 u1d01-06     u1d14
volume-data1    409.022 GB    5 u1d07-13     u1d14
Let's unmount and delete them and create new ones. # vol unmount volume-data # vol unmount volume-data1 # vol remove volume-data WARNING - The volume and any slices on it will be deleted. Continue ? [N]: y # vol remove volume-data1 WARNING - The volume and any slices on it will be deleted. Continue ? [N]: y Sun document 817-0200-10 says that only one hot spare disk can be configured per tray, and it has to be u1d14. If you have two volumes, they can share this hot spare disk. Well, let's test this and try to configure 2 volumes with each one having its own spare disk. # vol add vol1 data u1d01-06 raid 5 standby u1d07 # vol add vol2 data u1d08-13 raid 1 standby u1d14
# vol stat
vol1: unmounted  Volumes are unmounted
  u1d01: mounted
  u1d02: mounted
  u1d03: mounted
  u1d04: mounted all disks are mounted
  u1d05: mounted
  u1d06: mounted
  Standby: u1d07: mounted
vol2: unmounted
  u1d08: mounted
  u1d09: mounted
  u1d10: mounted
  u1d11: mounted
  u1d12: mounted
  u1d13: mounted
  Standby: u1d14: mounted
We need to initialize volumes (one by one), it will take, say, 1 hour/volume. # vol init vol1 data WARNING - Volume data will be initialized to zero. WARNING - Volume initialization can take a significant amount of time. Continue ? [N]: y Volume initialization in progress... And mount it. # vol mount vol1 Check the volume status now.
# vol stat vol1
vol1: mounted
  u1d01: mounted
  u1d02: mounted
  u1d03: mounted
  u1d04: mounted
  u1d05: mounted
  u1d06: mounted
  Standby: u1d07: mounted
Bingo works - volume mounted with spare (standby) disk that's not u1d14. Do the same with second volume - initialize - mount - list/check it.
# vol list
volume            capacity raid data       standby
vol1            340.851 GB    5 u1d01-06     u1d07
vol2            409.594 GB    1 u1d08-13     u1d14
# vol stat vol2
vol2: mounted
  u1d08: mounted
  u1d09: mounted
  u1d10: mounted
  u1d11: mounted
  u1d12: mounted
  u1d13: mounted
  Standby: u1d14: mounted
# fru stat
DISK    STATUS   STATE       ROLE        PORT1      PORT2      TEMP  VOLUME
------  -------  ----------  ----------  ---------  ---------  ----  ------
u1d01   ready    enabled     data disk   ready      ready      18    vol1
u1d02   ready    enabled     data disk   ready      ready      25    vol1
u1d03   ready    enabled     data disk   ready      ready      20    vol1
u1d04   ready    enabled     data disk   ready      ready      23    vol1
u1d05   ready    enabled     data disk   ready      ready      24    vol1
u1d06   ready    enabled     data disk   ready      ready      23    vol1
u1d07   ready    enabled     standby     ready      ready      24    vol1
u1d08   ready    enabled     data disk   ready      ready      24    vol2
u1d09   ready    enabled     data disk   ready      ready      22    vol2
u1d10   ready    enabled     data disk   ready      ready      23    vol2
u1d11   ready    enabled     data disk   ready      ready      23    vol2
u1d12   ready    enabled     data disk   ready      ready      25    vol2
u1d13   ready    enabled     data disk   ready      ready      24    vol2
u1d14   ready    enabled     standby     ready      ready      24    vol2
Now we have volumes (which is like hard disk) and we need slices (like partitions). Max 64 slices can be created per array (1-6 trays). Let's play with this example: We create three slices in vol1 and one slice in vol2.
6120# volslice create slice1-vol1 -z 146GB vol1
1 out of Max. 64 slices created, 63 available.

6120# volslice create slice2-vol1 -z 146GB vol1
2 out of Max. 64 slices created, 62 available.

6120# volslice create slice3-vol1 -z 48.839GB vol1
3 out of Max. 64 slices created, 61 available.

6120# volslice create slice1-vol2 -z 409.594GB vol2
4 out of Max. 64 slices created, 60 available.

6120# volslice list
Slice         Slice Num     Start Blk     Size Blks     Capacity      Volume
slice1-vol1   0             0             306196480      146.005 GB   vol1
slice2-vol1   1             306196480     306196480      146.005 GB   vol1
slice3-vol1   2             612392960     102420480       48.837 GB   vol1
-             -             714813440     5120             2.500 MB   vol1
slice1-vol2   3             0             858968064      409.587 GB   vol2
-             -             858968064     16128            7.875 MB   vol2
Get the 6120 controller's card WWN (16 alphanumeric characters).
6120# port list
port   targetid   addr_type   status   host   wwn
u1p1      1        hard       online   sun    20030003baccc738
All access permission are none now.
6120# lun perm list
lun  slice WWN  Group Name      Group Perm      WWN Perm        Effective Perm
--------------------------------------------------------------------------------
0     0   default    --              --              none            none
1     1   default    --              --              none            none
2     2   default    --              --              none            none
3     3   default    --              --              none            none
Note: You can see that LUN has same number as slice 
--------------------------------------------------------------------------------
Say, the 6120 is connected (with FC cable) to your host (that has FC HBA). As you can see, for now the host does NOT see 6120.
host# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1f,0/pci@1/scsi@8/sd@0,0
       1. c1t1d0 <SEAGATE-ST373307LSUN72G-0507-68.37GB>
          /pci@1f,0/pci@1/scsi@8/sd@1,0
Specify disk (enter its number): ^D
Let's assign read-write permission to LUN 3
6120# lun default lun 3 rw
See what you have now:
6120# lun perm list
lun  slice WWN  Group Name      Group Perm      WWN Perm        Effective Perm
--------------------------------------------------------------------------------
0     0   default    --              --              none            none
1     1   default    --              --              none            none
2     2   default    --              --              none            none
3     3   default    --              --              rw              rw
--------------------------------------------------------------------------------
Okay, check what your host sees now.
host# format
Searching for disks...done
c3t1d3: configured with capacity of 409.56GB

AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1f,0/pci@1/scsi@8/sd@0,0
       1. c1t1d0 <SEAGATE-ST373307LSUN72G-0507-68.37GB>
          /pci@1f,0/pci@1/scsi@8/sd@1,0
       2. c3t1d3 <SUN-T4-0302 cyl 34949 alt 2 hd 192 sec 128>
          /pci@1f,0/pci@1/SUNW,qlc@5/fp@0,0/ssd@w20030003baccc738,3
Specify disk (enter its number): ^D
Here you can also see the 6120 controller's WWN, which is 20030003baccc738 Let's examine FC HBA on our host. We see it's actually the PCI card with 2 FC ports. And we see port's WWN.
host# fcinfo hba-port
HBA Port WWN: 210000e08b176611
        OS Device Name: /dev/cfg/c3
        Manufacturer: QLogic Corp.
        Model: 375-3108-xx
        Firmware Version: 3.03.27
        FCode/BIOS Version:  fcode: 1.13;
        Serial Number: not available
        Driver Name: qlc
        Driver Version: 20081115-2.29
        Type: L-port
        State: online
        Supported Speeds: 1Gb 2Gb
        Current Speed: 2Gb
        Node WWN: 200000e08b176611
HBA Port WWN: 210100e08b376611
        OS Device Name: /dev/cfg/c4
        Manufacturer: QLogic Corp.
        Model: 375-3108-xx
        Firmware Version: 3.03.27
        FCode/BIOS Version:  fcode: 1.13;
        Serial Number: not available
        Driver Name: qlc
        Driver Version: 20081115-2.29
        Type: unknown
        State: offline
        Supported Speeds: 1Gb 2Gb
        Current Speed: not established
        Node WWN: 200100e08b376611
Below command looks for attached systems to your host:
host# luxadm probe
No Network Array enclosures found in /dev/es
Found Fibre Channel device:
  Node WWN:10000003baccc738  Device Type:Disk device
    Logical Path:/dev/rdsk/c3t1d3s2
Below command displays info about attached system 6120. You see that argument is logical path to your system and you get this from previous command.
host# luxadm display /dev/rdsk/c3t1d3s2
DEVICE PROPERTIES for disk: /dev/rdsk/c3t1d3s2
  Vendor:               SUN
  Product ID:           T4
  Revision:             0302
  Serial Num:           Unsupported
  Unformatted capacity: 419412.000 MBytes
  Write Cache:          Enabled
  Read Cache:           Enabled
    Minimum prefetch:   0x0
    Maximum prefetch:   0x0
  Device Type:          Disk device
  Path(s):
  /dev/rdsk/c3t1d3s2  --> logical path
  /devices/pci@1f,0/pci@1/SUNW,qlc@5/fp@0,0/ssd@w20030003baccc738,3:c,raw  ------- --> physical path
    LUN path port WWN:          20030003baccc738			  	  ||
    Host controller port WWN:   210000e08b176611				  ||
    Path status:                O.K.						  ||
Now you have physical path to 6120, and WWNs on both ends of that path. || \ / You can also verify WWN info with running below command: \/ Note that for this command I take physical LUN path and replace /ssd@w20030003baccc738,3:c,raw with :devctl
host# luxadm -e dump_map /devices/pci@1f,0/pci@1/SUNW,qlc@5/fp@0,0:devctl
Pos AL_PA ID Hard_Addr Port WWN         Node WWN         Type
0     e8  1     e8     20030003baccc738 10000003baccc738 0x0  (Disk device) note: slice on the 6120
1     1   7d    0      210000e08b176611 200000e08b176611 0x1f (Unknown Type,Host Bus Adapter)
Also verify connected status with command (example shows one FC HBA with 2 ports, so one ports is not connected)
host# luxadm -e port
/devices/pci@1f,0/pci@1/SUNW,qlc@5/fp@0,0:devctl                   CONNECTED
/devices/pci@1f,0/pci@1/SUNW,qlc@5,1/fp@0,0:devctl                 NOT CONNECTED
Let's now assign read-write permissions on LUN 0 to specific host's WWN (or you can say I am registering this WWN).
6120# lun perm lun 0 rw wwn 210000e08b176611

6120# lun perm list
lun  slice WWN  	       Group Name      Group Perm      WWN Perm        Effective Perm
----------------------------------------------------------------------------------------------
0     0   default             --              --              none            none
0     0   210000e08b176611    --              --              rw              rw
1     1   default             --              --              none            none
2     2   default             --              --              none            none
3     3   default             --              --              rw              rw	
----------------------------------------------------------------------------------------------
And the host can see 2 volume slices (disks) now:
host# format										
Searching for disks...done									
c3t1d0: configured with capacity of 146.00GB							
c3t1d3: configured with capacity of 409.56GB							
AVAILABLE DISK SELECTIONS:									
       0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>						
          /pci@1f,0/pci@1/scsi@8/sd@0,0								
       1. c1t1d0 <SEAGATE-ST373307LSUN72G-0507-68.37GB>
          /pci@1f,0/pci@1/scsi@8/sd@1,0								
       2. c3t1d0 <SUN-T4-0302 cyl 59802 alt 2 hd 40 sec 128>					
          /pci@1f,0/pci@1/SUNW,qlc@5/fp@0,0/ssd@w20030003baccc738,0 (0= slice 0)
       3. c3t1d3 <SUN-T4-0302 cyl 34949 alt 2 hd 192 sec 128>			
          /pci@1f,0/pci@1/SUNW,qlc@5/fp@0,0/ssd@w20030003baccc738,3 (3 = slice 3)
Specify disk (enter its number):

Host# cfgadm -al
Ap_Id                          Type         Receptacle   Occupant     Condition
c3                             fc-private   connected    configured   unknown
c3::20030003baccc738           disk         connected    configured   unknown
c4                             fc           connected    unconfigured unknown
Host cannot recognize slices until they are labeled with format command.
Host # format
Searching for disks...done
c3t1d0: configured with capacity of 146.00GB
c3t1d3: configured with capacity of 409.56GB
AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1f,0/pci@1/scsi@8/sd@0,0
       1. c1t1d0 <SEAGATE-ST373307LSUN72G-0507-68.37GB>
          /pci@1f,0/pci@1/scsi@8/sd@1,0
       2. c3t1d0 <SUN-T4-0302 cyl 59802 alt 2 hd 40 sec 128>
          /pci@1f,0/pci@1/SUNW,qlc@5/fp@0,0/ssd@w20030003baccc738,0
       3. c3t1d3 <SUN-T4-0302 cyl 34949 alt 2 hd 192 sec 128>
          /pci@1f,0/pci@1/SUNW,qlc@5/fp@0,0/ssd@w20030003baccc738,3
Specify disk (enter its number): 2
selecting c3t1d0
[disk formatted]
Disk not labeled.  Label it now? y

-	Also check partitions and see that 6120 was used before.

partition> p
Current partition table (original):
Total disk cylinders available: 59802 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -    51      130.00MB    (52/0/0)       266240
  1       swap    wu      52 -   103      130.00MB    (52/0/0)       266240
  2     backup    wu       0 - 59801      146.00GB    (59802/0/0) 306186240
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm       0                0         (0/0/0)             0
  6        usr    wm     104 - 59801      145.75GB    (59698/0/0) 305653760
  7 unassigned    wm       0                0         (0/0/0)             0

You can delete partitions as follow ...

partition> 0
Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -    51      130.00MB    (52/0/0)       266240
Enter partition id tag[root]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[266240b, 52c, 51e, 130.00mb, 0.13gb]: 0
And repeat this for all other partitions except partition 2 (which represents whole disk). Create new FS on the disk (which is slice 0 on the 6120)
Host# newfs -v /dev/rdsk/c3t1d0s2
newfs: construct a new file system /dev/rdsk/c3t1d0s2: (y/n)? y
etc etc 
Create /storage directory and add line in /etc/vfstab file
/dev/dsk/c3t1d0s2 /dev/rdsk/c3t1d0s2 /storage ufs 2 yes -
Host# mount /storage
Check the size of new FS.
Host# df -h /storage
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c3t1d0s2      144G    64M   142G     1%    /storage
And we have FS, size of our slice.
Back to the main page