Oracle® Solaris Cluster System Administration Guide

Exit Print View

Updated: October 2015

How to Change the Size of a lofi Device That Is Used for the Global-Devices Namespace

If you use a lofi device for the global-devices namespace on one or more nodes of the global cluster, perform this procedure to change the size of the device.

  1. Assume a role that provides solaris.cluster.modify RBAC authorization on a node whose lofi device for the global-devices namespace you want to resize.
  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. Unmount the global-device file system and detach its lofi device.

    The global-devices file system mounts locally.

    phys-schost# umount /global/.devices/node\@`clinfo -n` > /dev/null 2>&1
    Ensure that the lofi device is detached
    phys-schost# lofiadm -d /.globaldevices
    The command returns no output if the device is detached

    Note -  If the file system is mounted by using the –m option, no entry is added to the mnttab file. The umount command might report a warning similar to the following:
    umount: warning: /global/.devices/node@2 not in mnttab    ====>>>>
    not mounted

    This warning is safe to ignore.

  4. Delete and recreate the /.globaldevices file with the required size.

    The following example shows the creation of a new /.globaldevices file that is 200 Mbytes in size.

    phys-schost# rm /.globaldevices
    phys-schost# mkfile 200M /.globaldevices
  5. Create a new file system for the global-devices namespace.
    phys-schost# lofiadm -a /.globaldevices
    phys-schost# newfs `lofiadm /.globaldevices` < /dev/null
  6. Boot the node into cluster mode.

    The global devices are now populated on the new file system.

    phys-schost# reboot
  7. Migrate to the node any services that you want to run on that node.