Platform Notes: Using luxadm Software

Preparing to Replace the Disk Drive

The following procedure describes how to unconfigure a disk being used by one or more UFS file systems.

  1. Stop any application processes on the file systems to be unconfigured.

  2. Back up your system.

  3. Determine what file system(s) are on the disk:

    # mount | grep cwtxdysz

    For example, if the device to be removed is c2t1d0, enter the following:

    # mount | grep c2t3d0
    /export/home   (/dev/dsk/c2t1d0s7 ):   98892 blocks   142713 files
    /export/home2  (/dev/dsk/c2t1d0s5 ):  153424 blocks   112107 files

  4. Determine and save the partition table for the disk.

    If the replacement disk is the same type as the faulty disk, you can use the format command to save the partition table of the disk. Use the save command in format to save a copy of the partition table to the /etc/format.dat file. This enables you to configure the replacement disk so that its layout matches the current disk.

    Refer to the format(1M) man page for more information.

  5. Unmount any file systems on the disk.

    Note -

    If the file system(s) is on a disk that is failing or has failed, the umount operation may not complete. A large number of error messages may be displayed in the system console and in the /var directory during the umount operation. If the umount operation does not complete, you may have to reboot the system.

    For each file system from Step 3 returned, type:

    # umount filesystem

    where filesystem is the first field for each line returned in Step 3.

    For example:

    # umount /export/home
    # umount /export/home2

  6. Using the df command, verify that the file system has been unmounted.