Sun Cluster System Administration Guide for Solaris OS

ProcedureHow to Migrate the Global-Devices Namespace From a lofi Device to a Dedicated Partition

  1. Become superuser on the global-cluster voting node whose namespace location you want to change.

  2. 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

  3. 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

  4. Unmount the global devices partition /global/.devices/node@nodeID.

  5. Remove the lofi device that is associated with the /.globaldevices file.

    # lofiadm -d /.globaldevices
  6. Delete the /.globaldevices file.

    # rm /.globaldevices
  7. 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.

  8. Repeat these steps on other nodes whose global-devices namespace you might want to migrate from a lofi device to a partition.

  9. 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.