Become superuser on the global-cluster voting node whose namespace location you want to change.
On a local disk of the node, create a new partition that meets the following requirements:
Is at least 512 MByte in size
Uses the UFS file system
Add an entry to the /etc/vfstab file for the new partition to be mounted as the global-devices file system.
Determine the current node's node ID.
# /usr/sbin/clinfo -nnode ID |
Create the new entry in the /etc/vfstab file, using the following format:
blockdevice rawdevice /global/.devices/node@nodeID ufs 2 no global |
For example, if the partition that you choose to use is /dev/did/rdsk/d5s3, the new entry to add to the /etc/vfstab file would then be as follows: /dev/did/dsk/d5s3 /dev/did/rdsk/d5s3 /global/.devices/node@3 ufs 2 no global
Unmount the global devices partition /global/.devices/node@nodeID.
Remove the lofi device that is associated with the /.globaldevices file.
# lofiadm -d /.globaldevices |
Delete the /.globaldevices file.
# rm /.globaldevices |
Disable and re-enable the globaldevices and scmountdev SMF services.
# svcadm disable globaldevices# svcadm disable scmountdev# \ svcadm enable scmountdev# svcadm enable globaldevices |
The partition is now mounted as the global-devices namespace file system.
Repeat these steps on other nodes whose global-devices namespace you might want to migrate from a lofi device to a partition.
From one node in the cluster, run the cldevice populate command to populate the global-devices namespace.
# /usr/cluster/bin/cldevice populate |
Ensure that the process completes on all nodes of the cluster before you perform any further action on any of the nodes.
# ps -ef | grep scgdevs |
The global-devices namespace now resides on the dedicated partition.