When I was working on T3-2 to get the LUN from StorageTek 2540, T3-2 saw 2 disks (c1t0d1 and c4t2d1). Both show 2.7TB.
I knew it can not possibly use both because I have RAID 1 on the disk array and the capacity should be just 2.7TB.
I purposely tried to put both disks into zfs pool and it failed, of course.
I then opened a ticket with Oracle/SUN asking about this.
I was told by the tech support that I did not enable the multipathing on fiber channel controllers.
He introduced me to "stmsboot -e" command. I checked on the man page and tried it:
Code: Select all
%stmsboot -e
WARNING: stmsboot operates on each supported multipath-capable controller
detected in a host. In your system, these controllers are
/pci@400/pci@2/pci@0/pci@8/SUNW,emlxs@0/fp@0,0
/pci@500/pci@2/pci@0/pci@a/SUNW,emlxs@0/fp@0,0
/pci@400/pci@2/pci@0/pci@e/scsi@0/iport@1
/pci@400/pci@2/pci@0/pci@e/scsi@0/iport@2
/pci@400/pci@2/pci@0/pci@e/scsi@0/iport@4
/pci@400/pci@2/pci@0/pci@e/scsi@0/iport@8
/pci@400/pci@2/pci@0/pci@e/scsi@0/iport@80
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) n
After I saw so many controllers could be impacted, I canceled the action.
After reading the man page further, I decided to enable multipathing on fiber channels only by issuing the following command:
Code: Select all
%stmsboot -D fp -e
WARNING: This operation will require a reboot.
Do you want to continue ? [y/n] (default: y)
The changes will come into effect after rebooting the system.
Reboot the system now ? [y/n] (default: y)
updating /platform/sun4v/boot_archive
It rebooted the server.
After the reboot, I tried "format" command again and now it shows:
Code: Select all
%format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c3t3EDC40EB4E13BFC7d0 <LSI-Logical Volume-3000-278.46GB>
/pci@400/pci@2/pci@0/pci@e/scsi@0/iport@v0/disk@w3edc40eb4e13bfc7,0
1. c3t3718410C46D7BFE8d0 <LSI-LogicalVolume-3000 cyl 65533 alt 2 hd 64 sec 139>
/pci@400/pci@2/pci@0/pci@e/scsi@0/iport@v0/disk@w3718410c46d7bfe8,0
2. c9t600A0B800075F94F000002D94DBEC363d0 <SUN-LCSM100_F-0735-2.73TB>
/scsi_vhci/ssd@g600a0b800075f94f000002d94dbec363
Specify disk (enter its number)[0]: 2
selecting c9t600A0B800075F94F000002D94DBEC363d0
[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
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
!<cmd> - execute <cmd>, then return
quit
partition> p
Current partition table (original):
Total disk sectors available: 5855353822 + 16384 (reserved sectors)
Part Tag Flag First Sector Size Last Sector
0 usr wm 256 2.73TB 5855353822
1 unassigned wm 0 0 0
2 unassigned wm 0 0 0
3 unassigned wm 0 0 0
4 unassigned wm 0 0 0
5 unassigned wm 0 0 0
6 unassigned wm 0 0 0
8 reserved wm 5855353823 8.00MB 5855370206
Notice: The device's target number "600A0B800075F94F000002D94DBEC363" is the volume's WWN from the StorageTek 2540 disk array:
Code: Select all
World Wide Name:
60:0A:0B:80:00:75:F9:4F:00:00:02:D9:4D:BE:C3:63
Then, I tried to create a new pool oracledatapool and use this newly found device:
Code: Select all
zpool create oracledatapool c9t600A0B800075F94F000002D94DBEC363d0
Check if it created the pool and mount point:
Code: Select all
%df -h /oracledatapool
Filesystem size used avail capacity Mounted on
oracledatapool 2.7T 21K 2.7T 1% /oracledatapool
The multipathing is now enabled and the volume / LUN has been recognized and put into a newly created ZFS pool.