Using LUNs on Hosts
Solaris SPARC and Solaris x86 systems use LUNs in different ways.
SPARC
After the host detects the mapped LUNs, you can use raw devices to configure services, or create file systems on the LUNs.
In the Solaris SPARC system, you can create file systems using the drive letters, or use the system's volume management software to manage disks and then create file systems on the managed disks.
The following is an example of creating a file system using the drive letter:
bash-3.2# newfs /dev/rdsk/c8t4d1s2
newfs: construct a new file system /dev/rdsk/c8t4d1s2: (y/n)? y
/dev/rdsk/c8t4d1s2: 8384640 sectors in 4367 cylinders of 30 tracks, 64 sectors
4094.1MB in 86 cyl groups (51 c/g, 47.81MB/g, 6016 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98016, 196000, 293984, 391968, 489952, 587936, 685920, 783904, 881888,
7442720, 7540704, 7638688, 7736672, 7834656, 7932640, 8030624, 8128608,
8226592, 8324576
bash-3.2#
bash-3.2# mount /dev/dsk/c8t4d1s2 /mountpoint/mnt1/
In the preceding command, a UFS file system is created on the c8t4d1 drive and then mounted to the /mountpoint/mnt1/ directory.
When creating a file system using a drive letter, you must add s2 to the end of the drive letter, where s indicates the disk segment and s2 indicates the entire disk.
x86
In the Solaris x86 system, you must create partitions on the LUNs before using them.
Run the fdisk command to create partitions. The following is an example:
bash-3.00# format -e
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <DEFAULT cyl 35027 alt 2 hd 255 sec 63>
/pci@0,0/pci8086,25e3@3/pci1028,1f0c@0/sd@0,0
1. c0t1d0 <DEFAULT cyl 35537 alt 2 hd 255 sec 63>
/pci@0,0/pci8086,25e3@3/pci1028,1f0c@0/sd@1,0
2. c0t2d0 <DEFAULT cyl 2767 alt 2 hd 255 sec 63>
/pci@0,0/pci8086,25e3@3/pci1028,1f0c@0/sd@2,0
3. c4t60022A11000AFD57000370FB00000000d0 <DEFAULT cyl 1021 alt 2 hd 64 sec 32>
/scsi_vhci/disk@g60022a11000afd57000370fb00000000
4. c4t60022A11000AFD57000377C800000001d0 <DEFAULT cyl 1020 alt 2 hd 64 sec 32>
/scsi_vhci/disk@g60022a11000afd57000377c800000001
5. c4t60022A11000AFD57000557D700000002d0 <DEFAULT cyl 1021 alt 2 hd 64 sec 32>
/scsi_vhci/disk@g60022a11000afd57000557d700000002
6. c4t60022A11000AFD57000613A60000000Ad0 <DEFAULT cyl 13052 alt 2 hd 255 sec 63>
/scsi_vhci/disk@g60022a11000afd57000613a60000000a
7. c4t60022A11000AFD57000613D40000000Bd0 <DEFAULT cyl 13052 alt 2 hd 255 sec 63>
/scsi_vhci/disk@g60022a11000afd57000613d40000000b
8. c4t60022A11000AFD57000872C90000000Ed0 <DEFAULT cyl 1021 alt 2 hd 64 sec 32>
/scsi_vhci/disk@g60022a11000afd57000872c90000000e
Specify disk (enter its number): 5
selecting c4t60022A11000AFD57000557D700000002d0
[disk formatted]
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
fdisk - run the fdisk program
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
scsi - independent SCSI mode selects
cache - enable, disable or query SCSI disk cache
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> fdisk
No fdisk table exists. The default partition for the disk is:
a 100% "SOLARIS System" partition
Type "y" to accept the default partition, otherwise type "n" to edit the
partition table.
y
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
9 - change `9' 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 cylinders available: 1020 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 - 1019 1020.00MB (1020/0/0) 2088960
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 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 1.00MB (1/0/0) 2048
9 unassigned wm 0 0 (0/0/0) 0
partition>
For details on how to use the host's volume management software, see Appendix A Volume Management.
If you use multipathing software, see Configuring Multipathing in HyperMetro Scenarios or Configuring Multipathing in Non-HyperMetro Scenarios.