Complete these tasks to configure disk devices for use with Oracle Automatic Storage Management (Oracle ASM).
# vxdiskconfig # /usr/sbin/vxdisk list
List the disks attached to the system:
# /usr/sbin/format
The output from this command is similar to the following:
AVAILABLE DISK SELECTIONS: AVAILABLE DISK SELECTIONS: 0. c0t0d0 < ST34321A cyl 8892 alt 2 hd 15 sec 63 > /pci@1f,0/pci@1,1/ide@3/dad@0,0 1. c1t5d0 < SUN9.0G cyl 4924 alt 2 hd 27 sec 133 > /pci@1f,0/pci@1/scsi@1/sd@5,0
This command displays information about each disk attached to the system, including the device name. For example, cxtydz
.
Enter the number corresponding to the disk that you want to use.
Use the fdisk
command to create an Oracle Solaris partition on the disk if one does not already exist.
Oracle Solaris fdisk
partitions must start at cylinder 1, not cylinder 0. If you create an fdisk
partition, then you must label the disk before continuing.
Enter the partition
command, followed by the print
command to display the partition table for the disk that you want to use.
If necessary, create a single whole-disk slice, starting at cylinder 1.
Note:
To prevent Automatic Storage Management from overwriting the partition table, you cannot use slices that start at cylinder 0 (for example, slice 2).Make a note of the number of the slice that you want to use.
If you modified a partition table or created a new one, then enter the label
command to write the partition table and label to the disk.
Enter q to return to the format menu.
If you have finished creating slices, then enter q to quit the format
utility. Else, enter the disk command to select a new disk and repeat steps b to g to create or identify the slices on that disks.
# df -h /tmp
cxtydzsn
, where sn
is the slice number.# chown grid:asmadmin /dev/rdsk/cxtydzs6 # chmod 660 /dev/rdsk/cxtydzs6
In this example, the device name specifies slice 6.
Note:
If you are using a multi-pathing disk driver with Oracle Automatic Storage Management, then ensure that you set the permissions only on the correct logical device name for the disk.