Oracle® Solaris Cluster System Administration Guide

Exit Print View

Updated: October 2015

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

  1. Assume the root role on the global-cluster node whose namespace location you want to change.
  2. Evacuate services off the node and reboot the node into noncluster mode.

    Do this to ensure that global devices are not served from this node while you perform this procedure. For instructions, see How to Boot a Node in Noncluster Mode.

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

  4. 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 -n node- 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

  5. Unmount the global devices partition /global/.devices/node@nodeID.
  6. Remove the lofi device that is associated with the /.globaldevices file.
    # lofiadm -d /.globaldevices
  7. Delete the /.globaldevices file.
    # rm /.globaldevices
  8. 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.

  9. Repeat these steps on other nodes whose global-devices namespace you might want to migrate from a lofi device to a partition.
  10. Boot into cluster mode and populate the global-devices namespace.
    1. From one node in the cluster, populate the global-devices namespace.
      # /usr/cluster/bin/cldevice populate
    2. 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 cldevice populate

      The global-devices namespace now resides on the dedicated partition.

  11. Migrate to the node any services that you want to run on that node.