Top
PRIMECLUSTER DR/PCI Hot Plug User's Guide 4.5
FUJITSU Software

2.2.1 Detaching the disk

  1. Prior check

    Check if the GDS mirror disk that is connected to the system board using the following steps. In the following example, the "sd" driver is used to control the disk.

    1. Check the name of the disk device that is connected to the system board. For details, see the following each document.

      For details, see "Fujitsu SPARC M12 and Fujitsu M10/SPARC M10 Domain Configuration Guide" or "DR User's Guide."

    2. Check the disk is under the GDS control, then find the SDX disk name.

      # sdxinfo -D | grep c1t1d0
      disk   disk01  mirror  class01    grp01  c1t1d0   8493876  *        ENABLE  

      If the disk is not under the GDS control, remove the system board using DR after checking whether the I/O path is redundant for non-GDS software, or if the disk is not used.

    3. Check if there are ACTIVE slices configuring a mirror volume on the mirrored disk other than the disk that is connected to the system board.

      # sdxinfo  -S  -o disk01
      OBJ    CLASS   GROUP   DISK    VOLUME  STATUS
      ------ ------- ------- ------- ------- --------
      slice  class01 grp01   disk01  v01     ACTIVE   
      slice  class01 grp01   disk01  v02     ACTIVE   
      slice  class01 grp01   disk02  v01     ACTIVE   
      slice  class01 grp01   disk02  v02     ACTIVE   

      If there's no ACTIVE slice, you cannot remove the system board using DR.

  2. Before the system board is removed

    1. When the target disk is SPARC M10 and M12 internal disk (other than ZFS mirroring)

      1. Detaching the disk from the mirror disk group

        Detach the target disk from the mirror disk group.

        # sdxdisk -D  -c class01  -g grp01  -d disk01
      2. Removing the disk from the disk class

        Remove the target disk from the disk class

        # sdxdisk -R  -c class01  -d disk01
    2. When the target disk is not SPARC M10 and M12 internal disk (other than ZFS mirroring)

      1. Detach the target disk with the sdxswap command.

        # sdxswap  -O  -c class01  -d disk01
      2. Check if the target disk is correctly detached (changed to the SWAP state).

        # sdxinfo  -D  -o disk01
         OBJ     NAME     TYPE    CLASS   GROUP   DEVNUM  DEVBLKS  DEVCONNECT STATUS
         ------ ------- ------ ------- ------- ------ -------- ---------- ------
         disk   disk01   mirror  class01  grp01  c1t1d0  8493876    *          SWAP
    3. When the target disk is a system disk and it is being mirrored (ZFS mirroring)

      1. Check the status of the mirror configuration. Check if all STATEs are ONLINEs.

        # zpool status rpool
               pool: rpool
              state: ONLINE
               scan: resilvered 17.8G in 0h3m with 0 errors on Wed Apr 16 13:06:34 2014
             config:
        
                     NAME                               STATE     READ WRITE CKSUM
                     rpool                              ONLINE       0     0     0
                       mirror-0                         ONLINE       0     0     0
                         /dev/sfdsk/class01/dsk/v01     ONLINE       0     0     0
                         /dev/sfdsk/class01/dsk/v02     ONLINE       0     0     0
        
             errors: No known data errors
      2. Detach the GDS volume consisted by the target disk from the ZFS mirroring.

        # zpool detach rpool /dev/sfdsk/class01/dsk/v01
      3. Stop and remove the detached volume.

        # sdxvolume -F -c class01 -v v01
        # sdxvolume -R -c class01 -v v01
      4. Detach the target disk from the disk group.

        # sdxdisk -D -c class01 -g grp01 -d disk01
      5. Remove the target disk from the disk class.

        # sdxdisk -R -c class01 -d disk01