Platform Notes: Ultra 450 Workstation and Ultra Enterprise 450 Server

Preparing to Replace the Disk Drive

  1. Type su and your superuser password.

  2. Identify activities or applications attached to the device you plan to remove.

    Commands to use are mount, showmount -a, and ps -ef. See the mount(1M), showmount(1M), and ps(1) man pages for more details.

    For example, where the controller number is 1 and the target ID is 2:


    # mount | grep c1t2
    /export/home1 on /dev/dsk/c1t2d0s2 setuid/read/write on
    # showmount -a | grep /export/home1
    cinnamon:/export/home1/archive
    austin:/export/home1
    swlab1:/export/home1/doc
    # ps -f | grep c1t2
    root  1225   450   4 13:09:58  pts/2   0:00 grep c1t2

    In this example, the file system /export/home1 on the faulty disk is being remotely mounted by three different systems--cinnamon, austin, and swlab1. The only process running is grep, which has finished.

  3. Stop any activity or application processes on the file systems to be deconfigured.

  4. Back up your system.

  5. Determine what file systems are on the disk:


    # mount | grep cwtx
    

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


# mount | grep c1t2
/export/home   (/dev/dsk/c1t2d0s7 ):   98892 blocks   142713 files
/export/home2  (/dev/dsk/c1t2d0s5 ):  153424 blocks   112107 files

  1. 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 will allow you to configure the replacement disk so that its layout matches the current disk.

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

  2. Unmount any file systems on the disk.

    For each file system returned, type:


     # umount filesystem
    

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

For example:


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


Note -

If the file systems are 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 restart the system.