SUMMARY : Moving disks between HSG's

From: balaji (balaji@temple.edu)
Date: Wed Jul 03 2002 - 11:00:27 EDT


Hello managers

Sorry for this delayed reply. Following is the summary

I would like to thank for there replies.(Attached)

LHERCAUD@bouyguestelecom.fr
Binkley Robert
alan@nabeth.cxo.cpqcorp.net

==============================================================================
====
The new UNITs you will create will keep the data but will be "seen" as
    differents disks by the OS.
    Depending on the OS version (4.0* or 5.1*), this will have to be done in
    different manners

    Lucien HERCAUD
    Consultant Systeme UNIX en mission chez Bouygues T‚l‚com
    DCSI/DEB/HSI/INL/INX

    * Tel. Fixe +33 1 3945 4260 * BOUYGUES Telecom
    * Tel. Mobile +33 6 0944 2880 * 24 Avenue de l'Europe
    * Fax +33 1 3945 4322 * 78944 VELIZY Cedex
    * lhercaud@bouyguestelecom.fr
==============================================================================
=======
Robert BInkley

This is the procedures for moving a raidset/unit from being online with one
    HSG80 to the other.

    NOTE: It is recommended that you try to quiesce the application if at all
    possible.

    STEP 1: This is what you are wanting to change. The State shows it
"ONLINE
    to this controller" but the PREFERRED_PATH = OTHER_CONTROLLER. For load
    balancing purposes across the HSG80 Pair this unit d2 really needs to be
    "ONLINE to the other controller" to match the PREFERRED_PATH.

    HSG8013T> sho d2
       LUN Uses Used by

    ----------------------------------------------------------------------

      D2 R2

            LUN ID: 6000-1FE1-000F-E2D0-0009-1050-6837-00BB

            IDENTIFIER = 132

            Switches:

              RUN NOWRITE_PROTECT READ_CACHE

              READAHEAD_CACHE WRITEBACK_CACHE

              MAX_READ_CACHED_TRANSFER_SIZE = 256

              MAX_WRITE_CACHED_TRANSFER_SIZE = 256

            Access:

                    ALL

            State:

              ONLINE to this controller

              Not reserved

              PREFERRED_PATH = OTHER_CONTROLLER

            Size: 355486275 blocks

            Geometry (C/H/S): ( 69978 / 20 / 254 )

    STEP 2: Get the serial numbers of the HSG8013T dual redundant controllers.

    HSG8013T> sho this
    Controller:
            HSG8013T ZG94213577 Software V85F-0, Hardware E05
            NODE_ID = 5000-1FE1-0005-FAF0

    HSG8013T> sho other
    Controller:
            HSG8013T ZG03408473 Software V85F-0, Hardware E05
            NODE_ID = 5000-1FE1-0005-FAF0

    Step 3: For each unit/device that will need to be moved from one HSG80 to
    the other we need to get the BUS, TARGET, and LUN of each VALID path using
    hwmgr. Grepping for the IDENTIFIER from Step 1, enter the following
    command.

    HOSTNAME:/=> hwmgr -v d -cate disks | grep 132
      562: /dev/disk/dsk132c DEC HSG80 IDENTIFIER=132

    Step 4: Now using the HWID that was obtained from the last command enter
    this command. This will give you the First and every Valid Path.

    HOSTNAME:/=> hwmgr -show scsi -ful -id 562

            SCSI DEVICE DEVICE DRIVER NUM DEVICE FIRST
     HWID: DEVICEID HOSTNAME TYPE SUBTYPE OWNER PATH FILE VALID
PATH
    ----------------------------------------------------------------------
      562: 115 samson disk none 2 32 dsk132 [6/8/2]

          WWID:01000010:6000-1fe1-000f-e2d0-0009-1050-6837-00bb

          BUS TARGET LUN PATH STATE
          ------------------------------
          6 8 2 valid
          6 9 2 valid
          8 8 2 valid
          8 9 2 valid
          13 8 2 valid
          13 9 2 valid
          15 8 2 valid
          15 9 2 valid
          21 8 2 valid
          21 9 2 valid
          23 8 2 valid
          23 9 2 valid
          27 8 2 valid
          27 9 2 valid
          29 8 2 valid
          29 9 2 valid
          35 16 2 valid
          35 17 2 valid
          37 16 2 valid
          37 17 2 valid
          41 16 2 valid
          41 17 2 valid
          43 16 2 valid
          43 17 2 valid
          49 16 2 valid
          49 17 2 valid
          51 16 2 valid
          51 17 2 valid
          55 16 2 valid
          55 17 2 valid
          57 16 2 valid
          57 17 2 valid

    Step 5: Then run scu and specify the nexus of the first BUS, TARGET and
LUN
    that was obtained from hwmgr for the unit/device that will be moved.

    HOSTNAME:/=> scu
    scu> set nexus bus 6 target 8 lun 2
    Device: HSG80, Bus: 6, Target: 8, Lun: 2, Type: Direct Access

    - OR - (you can use this other command, which means "set bus target lun")

    scu> sbtl 6 8 2
    Device: HSG80, Bus: 6, Target: 8, Lun: 2, Type: Direct Access

    Step 6: Issue a show inquiry command from scu.
    - On the second screen of output from the inquiry reply there will be two
    serial numbers listed in the hex data. The first serial number is the
    serial number of the controller you are talking to. If this is the SAME
    serial number that the unit is currently online to, you need to issue the
    scu> set nexus command to the NEXT BUS, TARGET, and LUN from the hwmgr
    display for that disk. Then do the scu> show inquiry again until the
first
    serial number is the controller you want the unit/device to be online.
The
    other key here is that when the first serial number is the controller you
    want the device to be online with, the Peripheral Qualifier below will say
    (Peripheral Device NOT Connected).

    scu> sho inq

    Inquiry Information:

                Peripheral Device Type: 0 (Direct Access)
                  Peripheral Qualifier: 0 (Peripheral Device Connected)
                  Device Type Modifier: 0
                       Removable Media: No
                          ANSI Version: 2 (Complies to ANSI X3.131-1994,
SCSI-2)
                          ECMA Version: 0
                           ISO Version: 0
                  Response Data Format: 2 (SCSI-2)
                 Terminate I/O Process: No
                     Additional Length: 247
                    Soft Reset Support: No
               Command Queuing Support: Yes
               Target Transfer Disable: No
                Linked Command Support: No
            Synchronous Data Transfers: Yes
          Support for 16 Bit Transfers: Yes
          Support for 32 Bit Transfers: No
           Relative Addressing Support: No
                 Vendor Identification: DEC
                Product Identification: HSG80
               Firmware Revision Level: V86F
                  Vendor Specific Data: 5a 47 30 33 34 30 38 34 37 33 5a
    "ZG03408473" This is
    the controller that the disk is
    currently on. Need to select the next BUS,TARGET
    and LUN using scu>.
                                        47 39 34 32 31 33 35 37 37 00 00
    "ZG94213577"
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 70 94 00 00 00 00 "
p
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 50 00 1f e1 00 "
    P "
                                        0f e2 d0 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 01 01 00 00 00 "
    "
                                        00 00 00 00 00 00 00 "
    "

    scu> sbtl 8 8 2
    Device: HSG80, Bus: 8, Target: 8, Lun: 2, Type: Direct Access
    scu> sho inq

    Inquiry Information:

                Peripheral Device Type: 0 (Direct Access)
                  Peripheral Qualifier: 0x1 (Peripheral Device NOT Connected)
                  Device Type Modifier: 0
                       Removable Media: No
                          ANSI Version: 2 (Complies to ANSI X3.131-1994,
SCSI-2)
                          ECMA Version: 0
                           ISO Version: 0
                  Response Data Format: 2 (SCSI-2)
                 Terminate I/O Process: No
                     Additional Length: 247
                    Soft Reset Support: No
               Command Queuing Support: Yes
               Target Transfer Disable: No
                Linked Command Support: No
            Synchronous Data Transfers: Yes
          Support for 16 Bit Transfers: Yes
          Support for 32 Bit Transfers: No
           Relative Addressing Support: No
                 Vendor Identification: DEC
                Product Identification: HSG80
               Firmware Revision Level: V86F
                  Vendor Specific Data: 5a 47 30 33 34 30 38 34 37 33 5a
    "ZG94213577" This is the controller that you want
    The unit/device to be online.
                                        47 39 34 32 31 33 35 37 37 00 00
    "ZG03408473"
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 70 94 00 00 00 00 "
p
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 50 00 1f e1 00 "
    P "
                                        0f e2 d0 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 00 00 00 00 00 "
    "
                                        00 00 00 00 00 00 01 01 00 00 00 "
    "
                                        00 00 00 00 00 00 00 "
    "

    Step 7: The next thing to do will be to issue a start to bring the
    unit/device online with the controller which you have specified. You're
    finished, so now quit scu.

    scu> start
    scu> quit

    Step 8: Check the device on the HSG8013T to verify that the device has
    moved.

    HSG8013T> sho d2
       LUN Uses Used by

    ----------------------------------------------------------------------

      D2 R2

            LUN ID: 6000-1FE1-000F-E2D0-0009-1050-6837-00BB

            IDENTIFIER = 132

            Switches:

              RUN NOWRITE_PROTECT READ_CACHE

              READAHEAD_CACHE WRITEBACK_CACHE

              MAX_READ_CACHED_TRANSFER_SIZE = 256

              MAX_WRITE_CACHED_TRANSFER_SIZE = 256

            Access:

                    ALL

            State:

              ONLINE to the other controller

              Not reserved

              PREFERRED_PATH = OTHER_CONTROLLER

            Size: 355486275 blocks

            Geometry (C/H/S): ( 69978 / 20 / 254 )

    
==============================================================================
=======

==============================================================================
============
Alan Nabeth

Deconstruct the logical units on the source HSG:

            DELETE unit-name
            DELETE storage-set-name
            DELETE device-name ...

            Move the disks and reconstruct the units on the target
            HSG:

            ADD DISK ...
            ...
            ADD MIRROR ...
            ADD UNIT ...

            Be sure to skip the INIT step, since that WILL cause the
            data on those disks to disappear.

            TRANSPORTABLE is a characteristic supported by the HS
            family operating system that doesn't allocate space
            on the disk for the operating system's metadata. The
            intent is to allow disks to be used on the HS family
            subsystem and then moved to a non-HS family subsystem
            such as a bare SCSI adapter.

            The HS family allocates some part of the space of a device
            for its metadata. This is used to keep track of bad blocks,
            so that it can replace the block, but remember that the data
            in that block was wrong. It also allows the feature of taking
            a bare disk, and turning it into a member of a mirror set.
            The data has lots of uses, but takes away some of the capacity
            that would be presented to the host. TRANSPORTABLE doesn't
            allocate this space, with the attendent loss of features.
==============================================================================
==========



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:45 EDT