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 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 Reset the system, are you sure? [N]: y Disabling controllers Enabling controllers Resetting myself Etc, etc |
# 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 |
# 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 |
# vol stat vol1 vol1: mounted u1d01: mounted u1d02: mounted u1d03: mounted u1d04: mounted u1d05: mounted u1d06: mounted Standby: u1d07: mounted |
# 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 |
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 |
6120# port list port targetid addr_type status host wwn u1p1 1 hard online sun 20030003baccc738 |
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 -------------------------------------------------------------------------------- |
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 |
6120# lun default lun 3 rw |
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 -------------------------------------------------------------------------------- |
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 |
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 |
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 |
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. || |
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) |
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 |
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 ---------------------------------------------------------------------------------------------- |
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 # 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 |
Host# newfs -v /dev/rdsk/c3t1d0s2 newfs: construct a new file system /dev/rdsk/c3t1d0s2: (y/n)? y etc etc |
/dev/dsk/c3t1d0s2 /dev/rdsk/c3t1d0s2 /storage ufs 2 yes - |
Host# mount /storage |
Host# df -h /storage Filesystem size used avail capacity Mounted on /dev/dsk/c3t1d0s2 144G 64M 142G 1% /storage |