Zoning is already done and LUNs are provisioned from Sun 7410 appliance
bash-3.00# format
Searching for disks…done
AVAILABLE DISK SELECTIONS: // there are 2 new drives in addition to root drive
0. c0d0
/virtual-devices@100/channel-devices@200/disk@0
1. c3t2100001B329A5064d4
/pci@600/pci@0/pci@9/bfa@0/fp@0,0/ssd@w2100001b329a5064,4
2. c4t2100001B329A1F65d4
/pci@600/pci@0/pci@c/bfa@0/fp@0,0/ssd@w2100001b329a1f65,4
Specify disk (enter its number): 1
selecting c3t2100001B329A5064d4
[disk formatted]
Disk not labeled. Label it now? y
FORMAT MENU:
disk – select a disk
type – select (define) a disk type
partition – select (define) a partition table
current – describe the current disk
format – format and analyze the disk
repair – repair a defective sector
label – write label to the disk
analyze – surface analysis
defect – defect list management
backup – search for backup labels
verify – read and display labels
save – save new disk/partition definitions
inquiry – show vendor, product and revision
volname – set 8-character volume name
!
quit
format> q
bash-3.00# cfgadm -a // list FC disks
Ap_Id Type Receptacle Occupant Condition
c3 fc-fabric connected configured unknown
c3::2100001b329a5064 disk connected configured unknown
c4 fc-fabric connected configured unknown
c4::2100001b329a1f65 disk connected configured unknown
bash-3.00# cfgadm -c configure c3::2100001b329a5064 ///discover LUNs on all paths
bash-3.00# cfgadm -c configure c4::2100001b329a1f65
bash-3.00# format
Searching for disks…done
c3t2100001B329A5064d6: configured with capacity of 1023.95GB
AVAILABLE DISK SELECTIONS: // 2 LUNs with 2 paths each, total 4 disks visible to OS
0. c0d0
/virtual-devices@100/channel-devices@200/disk@0
1. c3t2100001B329A5064d4
/pci@600/pci@0/pci@9/bfa@0/fp@0,0/ssd@w2100001b329a5064,4
2. c3t2100001B329A5064d6
/pci@600/pci@0/pci@9/bfa@0/fp@0,0/ssd@w2100001b329a5064,6
3. c4t2100001B329A1F65d4
/pci@600/pci@0/pci@c/bfa@0/fp@0,0/ssd@w2100001b329a1f65,4
4. c4t2100001B329A1F65d6
/pci@600/pci@0/pci@c/bfa@0/fp@0,0/ssd@w2100001b329a1f65,6
Specify disk (enter its number): 2
selecting c3t2100001B329A5064d6
[disk formatted]
Disk not labeled. Label it now? y
FORMAT MENU:
disk – select a disk
type – select (define) a disk type
partition – select (define) a partition table
current – describe the current disk
format – format and analyze the disk
repair – repair a defective sector
label – write label to the disk
analyze – surface analysis
defect – defect list management
backup – search for backup labels
verify – read and display labels
save – save new disk/partition definitions
inquiry – show vendor, product and revision
volname – set 8-character volume name
!
quit
format> p
PARTITION MENU:
0 – change `0′ partition
1 – change `1′ partition
2 – change `2′ partition
3 – change `3′ partition
4 – change `4′ partition
5 – change `5′ partition
6 – change `6′ partition
7 – change `7′ partition
select – select a predefined table
modify – modify a predefined partition table
name – name the current table
print – display the current table
label – write partition map and label to the disk
!
quit
partition> p
Current partition table (default):
Total disk cylinders available: 44556 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 0 0 (0/0/0) 0
1 swap wu 0 0 (0/0/0) 0
2 backup wu 0 – 44555 1023.95GB (44556/0/0) 2147376420
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 0 – 44555 1023.95GB (44556/0/0) 2147376420
7 unassigned wm 0 0 (0/0/0) 0
partition> q
FORMAT MENU:
disk – select a disk
type – select (define) a disk type
partition – select (define) a partition table
current – describe the current disk
format – format and analyze the disk
repair – repair a defective sector
label – write label to the disk
analyze – surface analysis
defect – defect list management
backup – search for backup labels
verify – read and display labels
save – save new disk/partition definitions
inquiry – show vendor, product and revision
volname – set 8-character volume name
!
quit
format> disk
AVAILABLE DISK SELECTIONS:
0. c0d0
/virtual-devices@100/channel-devices@200/disk@0
1. c3t2100001B329A5064d4
/pci@600/pci@0/pci@9/bfa@0/fp@0,0/ssd@w2100001b329a5064,4
2. c3t2100001B329A5064d6
/pci@600/pci@0/pci@9/bfa@0/fp@0,0/ssd@w2100001b329a5064,6
3. c4t2100001B329A1F65d4
/pci@600/pci@0/pci@c/bfa@0/fp@0,0/ssd@w2100001b329a1f65,4
4. c4t2100001B329A1F65d6
/pci@600/pci@0/pci@c/bfa@0/fp@0,0/ssd@w2100001b329a1f65,6
Specify disk (enter its number)[2]: 1
selecting c3t2100001B329A5064d4
[disk formatted]
format> p
PARTITION MENU:
0 – change `0′ partition
1 – change `1′ partition
2 – change `2′ partition
3 – change `3′ partition
4 – change `4′ partition
5 – change `5′ partition
6 – change `6′ partition
7 – change `7′ partition
select – select a predefined table
modify – modify a predefined partition table
name – name the current table
print – display the current table
label – write partition map and label to the disk
!
quit
partition> p
Current partition table (original):
Total disk cylinders available: 16250 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 0 0 (0/0/0) 0
1 swap wu 0 0 (0/0/0) 0
2 backup wu 0 – 16249 499.91GB (16250/0/0) 1048385000
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 0 – 16249 499.91GB (16250/0/0) 1048385000
7 unassigned wm 0 0 (0/0/0) 0
partition> q
FORMAT MENU:
disk – select a disk
type – select (define) a disk type
partition – select (define) a partition table
current – describe the current disk
format – format and analyze the disk
repair – repair a defective sector
label – write label to the disk
analyze – surface analysis
defect – defect list management
backup – search for backup labels
verify – read and display labels
save – save new disk/partition definitions
inquiry – show vendor, product and revision
volname – set 8-character volume name
!
quit
format> disk
AVAILABLE DISK SELECTIONS:
0. c0d0
/virtual-devices@100/channel-devices@200/disk@0
1. c3t2100001B329A5064d4
/pci@600/pci@0/pci@9/bfa@0/fp@0,0/ssd@w2100001b329a5064,4
2. c3t2100001B329A5064d6
/pci@600/pci@0/pci@9/bfa@0/fp@0,0/ssd@w2100001b329a5064,6
3. c4t2100001B329A1F65d4
/pci@600/pci@0/pci@c/bfa@0/fp@0,0/ssd@w2100001b329a1f65,4
4. c4t2100001B329A1F65d6
/pci@600/pci@0/pci@c/bfa@0/fp@0,0/ssd@w2100001b329a1f65,6
Specify disk (enter its number)[1]:
selecting c3t2100001B329A5064d4
[disk formatted]
format> q
There are 2 LUNs which show as 4 disks (2 paths each), so we run ‘stmboot -e’ to configure multipath devices for the new LUNs
bash-3.00# stmsboot -e
WARNING: stmsboot operates on each supported multipath-capable controller
detected in a host. In your system, these controllers are
/pci@600/pci@0/pci@9/bfa@0/fp@0,0
/pci@600/pci@0/pci@c/bfa@0/fp@0,0
If you do NOT wish to operate on these controllers, please quit stmsboot
and re-invoke with -D { fp | mpt | mpt_sas} to specify which controllers you wish
to modify your multipathing configuration for.
Do you wish to continue? [y/n] (default: y) y
WARNING: This operation will require a reboot.
Do you want to continue ? [y/n] (default: y) y
The changes will come into effect after rebooting the system.
Reboot the system now ? [y/n] (default: y) y
updating /platform/sun4v/boot_archive
After the reboot:
bash-3.00# format
Searching for disks…done
AVAILABLE DISK SELECTIONS:
0. c0d0
/virtual-devices@100/channel-devices@200/disk@0
1. c5t600144F0B16CBD0D00004BFD867B0004d0
/scsi_vhci/ssd@g600144f0b16cbd0d00004bfd867b0004
2. c5t600144F0B16CBD0D00004C29EFC80002d0
/scsi_vhci/ssd@g600144f0b16cbd0d00004c29efc80002
Specify disk (enter its number): ^D
Now there are only 2 disks visible because multipathing is now configured and only 1 disk is visible (instead of previous 2).
With ‘luxadm’ command we can see disk info and path for that disk:
bash-3.00# luxadm display /dev/rdsk/c5t600144F0B16CBD0D00004BFD867B0004d0s2
DEVICE PROPERTIES for disk: /dev/rdsk/c5t600144F0B16CBD0D00004BFD867B0004d0s2
Vendor: SUN
Product ID: Sun Storage 7410
Revision: 1.0
Serial Num:
Unformatted capacity: 512000.000 MBytes
Read Cache: Enabled
Minimum prefetch: 0×0
Maximum prefetch: 0×0
Device Type: Disk device
Path(s):
/dev/rdsk/c5t600144F0B16CBD0D00004BFD867B0004d0s2
/devices/scsi_vhci/ssd@g600144f0b16cbd0d00004bfd867b0004:c,raw
Controller /devices/pci@600/pci@0/pci@9/bfa@0/fp@0,0
Device Address 2100001b329a5064,4
Host controller port WWN 100000051ea29ba5
Class primary
State ONLINE
Controller /devices/pci@600/pci@0/pci@c/bfa@0/fp@0,0
Device Address 2100001b329a1f65,4
Host controller port WWN 100000051e7dd29d
Class secondary
State STANDBY
There are 2 paths, 1 is active (Online) other one is standby path.
bash-3.00# luxadm -v display /dev/rdsk/c5t600144F0B16CBD0D00004BFD867B0004d0s2
Displaying information for: /dev/rdsk/c5t600144F0B16CBD0D00004BFD867B0004d0s2
DEVICE PROPERTIES for disk: /dev/rdsk/c5t600144F0B16CBD0D00004BFD867B0004d0s2
Vendor: SUN
Product ID: Sun Storage 7410
Revision: 1.0
Serial Num:
Unformatted capacity: 512000.000 MBytes
Read Cache: Enabled
Minimum prefetch: 0×0
Maximum prefetch: 0×0
Device Type: Disk device
Path(s):
/dev/rdsk/c5t600144F0B16CBD0D00004BFD867B0004d0s2
/devices/scsi_vhci/ssd@g600144f0b16cbd0d00004bfd867b0004:c,raw
Controller /devices/pci@600/pci@0/pci@9/bfa@0/fp@0,0
Device Address 2100001b329a5064,4
Host controller port WWN 100000051ea29ba5
Class primary
State ONLINE
Controller /devices/pci@600/pci@0/pci@c/bfa@0/fp@0,0
Device Address 2100001b329a1f65,4
Host controller port WWN 100000051e7dd29d
Class secondary
State STANDBY
Same thing is for the 2nd disk.
‘mpathadm’ shows similar information:
bash-3.00# mpathadm list LU
/dev/rdsk/c5t600144F0B16CBD0D00004C29EFC80002d0s2
Total Path Count: 2
Operational Path Count: 2
/dev/rdsk/c5t600144F0B16CBD0D00004BFD867B0004d0s2
Total Path Count: 2
Operational Path Count: 2
Extended ‘mpathadm’ info:
bash-3.00# mpathadm list logical-unit /dev/rdsk/c5t600144F0B16CBD0D00004BFD867B0004d0s2
mpath-support: libmpscsi_vhci.so
/dev/rdsk/c5t600144F0B16CBD0D00004BFD867B0004d0s2
Total Path Count: 2
Operational Path Count: 2
bash-3.00# mpathadm show logical-unit /dev/rdsk/c5t600144F0B16CBD0D00004BFD867B0004d0s2
Logical Unit: /dev/rdsk/c5t600144F0B16CBD0D00004BFD867B0004d0s2
mpath-support: libmpscsi_vhci.so
Vendor: SUN
Product: Sun Storage 7410
Revision: 1.0
Name Type: unknown type
Name: 600144f0b16cbd0d00004bfd867b0004
Asymmetric: yes
Current Load Balance: round-robin
Logical Unit Group ID: NA
Auto Failback: on
Auto Probing: NA
Paths:
Initiator Port Name: 100000051ea29ba5
Target Port Name: 2100001b329a5064
Override Path: NA
Path State: OK
Disabled: no
Initiator Port Name: 100000051e7dd29d
Target Port Name: 2100001b329a1f65
Override Path: NA
Path State: OK
Disabled: no
Target Port Groups:
ID: 1
Explicit Failover: no
Access State: active optimized
Target Ports:
Name: 2100001b329a5064
Relative ID: 257
ID: 0
Explicit Failover: no
Access State: standby
Target Ports:
Name: 2100001b329a1f65
Relative ID: 1
To see traffic going through each path run:
bash-3.00# iostat -xYnt 1
tty
tin tout
1 38
extended device statistics
r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c5t600144F0B16CBD0D00004C29EFC80002d0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c5t600144F0B16CBD0D00004C29EFC80002d0.t2100001b329a5064
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c5t600144F0B16CBD0D00004C29EFC80002d0.t2100001b329a5064.fp2
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c5t600144F0B16CBD0D00004C29EFC80002d0.t2100001b329a1f65
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c5t600144F0B16CBD0D00004C29EFC80002d0.t2100001b329a1f65.fp3
0.1 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c5t600144F0B16CBD0D00004BFD867B0004d0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c5t600144F0B16CBD0D00004BFD867B0004d0.t2100001b329a5064
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c5t600144F0B16CBD0D00004BFD867B0004d0.t2100001b329a5064.fp2
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c5t600144F0B16CBD0D00004BFD867B0004d0.t2100001b329a1f65
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c5t600144F0B16CBD0D00004BFD867B0004d0.t2100001b329a1f65.fp3
4.5 3.2 355.9 86.3 0.0 0.3 0.0 43.7 0 4 c0d0
To see mapping of non-STMS to STMS devices:
bash-3.00# stmsboot -L
non-STMS device name STMS device name
——————————————————————
/dev/rdsk/c4t2100001B329A1F65d4 /dev/rdsk/c5t600144F0B16CBD0D00004BFD867B0004d0
/dev/rdsk/c3t2100001B329A5064d4 /dev/rdsk/c5t600144F0B16CBD0D00004BFD867B0004d0
/dev/rdsk/c3t2100001B329A5064d6 /dev/rdsk/c5t600144F0B16CBD0D00004C29EFC80002d0
/dev/rdsk/c4t2100001B329A1F65d6 /dev/rdsk/c5t600144F0B16CBD0D00004C29EFC80002d0