How to Assign a New Minor Number to a Disk Device Group
If disk device group registration fails because of a minor-number conflict with another disk group, you must assign the new disk group a new, unused minor number. Perform this procedure to reminor a disk group.
Become superuser on a node of the cluster.
Determine the minor numbers in use.
# ls -l /global/.devices/node@1/dev/vx/dsk/*
Choose any other multiple of 1000 that is not in use to become the base minor number for the new disk group.
Assign the new base minor number to the disk group.
# vxdg reminor diskgroup base-minor-number
Go to Step 5 of How to Create and Register a Disk Group to register the disk group as a Sun Cluster disk device group.
Example--How to Assign a New Minor Number to a Disk Device Group
This example uses the minor numbers 16000-16002 and 4000-4001. The vxdg reminor command reminors the new disk device group to use the base minor number 5000.
# ls -l /global/.devices/node@1/dev/vx/dsk/* /global/.devices/node@1/dev/vx/dsk/dg1 brw------- 1 root root 56,16000 Oct 7 11:32 dg1v1 brw------- 1 root root 56,16001 Oct 7 11:32 dg1v2 brw------- 1 root root 56,16002 Oct 7 11:32 dg1v3 /global/.devices/node@1/dev/vx/dsk/dg2 brw------- 1 root root 56,4000 Oct 7 11:32 dg2v1 brw------- 1 root root 56,4001 Oct 7 11:32 dg2v2 # vxdg reminor dg3 5000 |
How to Verify the Disk Group Configuration
Perform this procedure on each node of the cluster.
Verify that only the local disks are included in the root-disk group (rootdg), and disk groups are imported on the current primary node only.
# vxdisk list
Verify that all disk groups have been registered as Sun Cluster disk device groups and are online.
# scstat -D
Configure the cluster.
Go to Configuring the Cluster.
How to Unencapsulate the Root Disk
Perform this procedure to unencapsulate the root disk.
Ensure that only Solaris root file systems are present on the root disk.
The Solaris root file systems are root (/), swap, the global devices namespace, /usr, /var, /opt, and /home. If any other file systems reside on the root disk, back them up and remove them from the root disk.
Become superuser on the node that you intend to unencapsulate.
Move all resource groups and device groups from the node.
# scswitch -S -h from-node
-S Moves all resource groups and device groups
-h from-node Specifies the name of the node from which to move resource or device groups
Unmount the global-devices file system for this node, where N is the node ID number that is returned in Step 4.
# umount /global/.devices/node@N
View the /etc/vfstab file and determine which VxVM volume corresponds to the global-devices file system.
# vi /etc/vfstab #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # #NOTE: volume rootdiskxNvol (/global/.devices/node@N) encapsulated #partition cNtXdYsZ
Remove the VxVM volume that corresponds to the global-devices file system from the rootdg disk group.
# vxedit -rf rm rootdiskxNvol
Caution - Do not store data other than device entries for global devices in the global-devices file system. All data in the global-devices file system is destroyed when you remove the VxVM volume. Only data that is related to global devices entries is restored after the root disk is unencapsulated.
Unencapsulate the root disk.
Note - Do not accept the shutdown request from the command.
# /etc/vx/bin/vxunroot
See your VxVM documentation for details.
Use the format(1M) command to add a 512-Mbyte partition to the root disk to use for the global-devices file system.
Tip - Use the same slice that was allocated to the global-devices file system before the root disk was encapsulated, as specified in the /etc/vfstab file.
Set up a file system on the partition that you created in Step 9.
# newfs /dev/rdsk/cNtXdYsZ
Determine the DID name of the root disk.
# scdidadm -l cNtXdY 1 phys-schost-1:/dev/rdsk/cNtXdY /dev/did/rdsk/dN
In the /etc/vfstab file, replace the path names in the global-devices file system entry with the DID path that you identified in Step 11.
The original entry would look similar to the following.
# vi /etc/vfstab /dev/vx/dsk/rootdiskxNvol /dev/vx/rdsk/rootdiskxNvol /global/.devices/node@N ufs 2 no global
The revised entry that uses the DID path would look similar to the following.
/dev/did/dsk/dNsX /dev/did/rdsk/dNsX /global/.devices/node@N ufs 2 no global
Mount the global-devices file system.
# mount /global/.devices/node@N
From one node of the cluster, repopulate the global-devices file system with device nodes for any raw disk and Solstice DiskSuite/Solaris Volume Manager devices.
# scgdevs
VxVM devices are recreated during the next reboot.
Reboot the node.
# reboot
Repeat this procedure on each node of the cluster to unencapsulate the root disk on those nodes.



