No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Administrator Guide 15

OceanStor 5300 V3, 5500 V3, 5600 V3, 5800 V3, and 6800 V3 Storage System V300R003

Routine maintenance activities are the most common activities for the storage device, including powering on or off the storage device, managing users, modifying basic parameters of the storage device, and managing hardware components. This document applies to the system administrators who are responsible for carrying out routine maintenance activities, monitoring the storage device, and rectifying common device faults.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Making Storage Space Available (Solaris)

Making Storage Space Available (Solaris)

This section describes how to enable a Solaris-based application server to use the space of a storage system.

Procedure

  1. Log in to the Solaris-based application server as user root.
  2. Run the cfgadm -al command to scan for the LUNs mapped to the application server.

    The following output is displayed.
    # cfgadm -al
    Ap_Id                          Type         Receptacle   Occupant     Condition
    c1                             scsi-bus     connected    configured   unknown
    c1::dsk/c1t1d0                 disk         connected    configured   unknown
    c2                             fc-private   connected    unconfigured unknown
    c2::2201123456789012           disk         connected    unconfigured unknown
    c3                             fc-private   connected    unconfigured unknown
    c3::2210123456789012           disk         connected    unconfigured unknown
    usb0/1                         unknown      empty        unconfigured ok
    usb0/2                         unknown      empty        unconfigured ok
    usb0/3                         unknown      empty        unconfigured ok
    usb1/1                         unknown      empty        unconfigured ok
    usb1/2                         unknown      empty        unconfigured ok
    usb2/1                         unknown      empty        unconfigured ok
    usb2/2                         usb-storage  connected    configured   ok
    usb2/3                         unknown      empty        unconfigured ok
    usb2/4                         usb-hub      connected    configured   ok
    usb2/4.1                       unknown      empty        unconfigured ok
    usb2/4.2                       unknown      empty        unconfigured ok
    usb2/4.3                       unknown      empty        unconfigured ok
    usb2/4.4                       unknown      empty        unconfigured ok
    usb2/5                         unknown      empty        unconfigured ok
    
    NOTE:
    If no new logical disk is detected, troubleshoot the fault and rescan for logical disks. Possible faults include:
    • The application server is incorrectly connected to the storage system after the network cable has been removed and reinserted.
    • The link between the application server and storage system is down.
    • The rate of the Fibre Channel host port is inconsistent with that of the Fibre Channel HBA on the application server.
    • The HBA driver has been uninstalled.
    • The storage pool fails.
    • Multipathing software is not installed or an incorrect version is installed.
    • The device file on the application server is lost.

    For details, see Failure to Discover LUNs by an Application Server in the OceanStor 5300 V3&5500 V3&5600 V3&5800 V3&6800 V3 Storage System V300R003 Troubleshooting.

  3. Partition and format a disk.
    1. Run the format command to query the information about all disks on the application server.

      # format
      Searching for disks...done
      AVAILABLE DISK SELECTIONS:
      0. c1t0do <SUN146G cy1 14087 alt 2 hd 24 sec 848>
                /pci@0/pci@0/pci@2/scsi@0/sd@0, 0
      1. c1t1d0 <DEFAULT cyl 6398 alt 2 hd sec 256>
                           /iscsi/disk@0000iqn.2006-08.com.huawei%3Aoceanstor%3A2100001882afe72c%3Anotconfig%3A13.13.13.110003,          
      Specify disk (enter its number):
      

      The output shows that the c1t1d0 logical disk (ID is 1) is mapped to the host.

    2. Enter the ID of the disk to be formatted after Specify disk (enter its number).

      Searching for disks...done
      AVAILABLE DISK SELECTIONS:
      0. c1t0do <SUN146G cy1 14087 alt 2 hd 24 sec 848>
                /pci@0/pci@0/pci@2/scsi@0/sd@0, 0
      1. c1t1d0 <DEFAULT cyl 6398 alt 2 hd sec 256>
                           /iscsi/disk@0000iqn.2006-08.com.huawei%3Aoceanstor%3A2100001882afe72c%3Anotconfig%3A13.13.13.110003, 0          
      Specify disk (enter its number): 1
      Selecting c1t1d0
      [disk formatted]
      Disk not labeled.  Label it now?
      

    3. Enter y after Label it now?.

      [disk formatted]
      Disk not labeled.  Label it now? y
      
      Format MENU:
             disk      - select a disk
             type      - select (define) a disk type
             partition - select (define) a partition table
             current   - describe the current disk
             format    - format and analyze the disk
             repair    - repair the defective disk
             label     - write label to the disk
             analyze   - surface analysis
             defect    - defect list management
             back up   - search for backup labels
             verify    - read and display labels
             save      - save new disk/partition definitions
             inquiry   - show vendor, product and revision
             volname   - set 8-character volume name
             !<cmd>    - execute <cmd>, then return
             quit 
      NOTE:

      After the format command is executed, several partitions including s0 and s1 are automatically created.

    4. View the partition table.

      Run the partition command and then run the print command.
      format> partition
      PARTITION MENU
      0            - change'0' partition
      1            - change'1' partition
      2            - change'2' partition
      3            - change'3' partition
      4            - change'4' partition
      5            - change'5' partition
      6            - change'6' partition
      7            - change'7' partition
      Select       - select a predefined table
      modify       - modify a predefined partition table
      name         - name the current table
      print        - display the current table
      label        - write partition map and label to the disk
      !<cmd>    - execute <cmd>, then return
      quit
      partition> print
      current partition table (original):
      Total disk cylinders available: 6398 + 2 (reserved cylinders)
      Part    Tag    Flag   Cylinders       Size             Blocks
      0       root   wm     0 -    15       128.00MB         (16/0/0) 262144
      1       swap   wu     16 -   31       128.00MB         (16/0/0) 262144
      2       backup wu     0 -  6397        49.98GB         104824832
      3   unassigned wm     0               0                (0/0/0) 0
      4   unassigned wm     0               0                (0/0/0) 0
      5   unassigned wm     0               0                (0/0/0) 0
      6          usr wm     32 -  6397      49.98GB          (6366/0/0) 262144
      7   unassigned wm     0               0                (0/0/0) 0
      NOTE:

      In normal cases, the partition whose Part is 2 indicates the logical disk mapped to the host.

    5. Enter quit to exit the Partition command output screen.
    6. Enter quit to exit the Format command output screen.
  4. Configure the multipathing software.

    Solaris supports UltraPath and StorEdge Traffic Manager Software (STMS).

    • UltraPath is developed by Huawei.
    • STMS is delivered with the Solaris host system.
    STMS is used as an example to describe how to configure the multipathing software. For details about how to install and configure UltraPath, see the user guide specific to your product.

    • Solaris 10
      The method used to enable the multipathing software on the host system varies according to different ALUA modes (enabled or disabled).
      • ALUA is enabled.
        After ALUA is enabled on the storage system, you do not need to configure the host system. Run the stmsboot -D fp -e command directly.
        # stmsboot -D fp -e
        
        WARNING: This operation will require a reboot.
        
        Do you want to continue ? [y/n] (default: y) y
        
        The changes will come into effect after rebooting the system.
        
        Reboot the system now ? [y/n] (default: y) y
        
        updating /platform/sun4u/boot_archive
        
        After the command is executed, the operating system will restart.
      • ALUA is disabled.

        If ALUA is disabled on the storage system, you must modify the configuration file on the host system. In this way, the multipathing software can take over the LUNs that are mapped by the storage system.

        1. Run the format command, select a mapped disk, and click inquiry to query Vendor ID and Product ID of the LUN.
        2. Modify the /kernel/drv/scsi_vhci.conf configuration file and add Vendor ID and Product ID of the LUN to the configuration file. For example, if Vendor ID is HUAWEI and Product ID is XXXXXX, configure the file as follows:
          device-type-scsi-options-list =
          
          "HUAWEI   XXXXXX", "symmetric-option";
          
        3. Run the stmsboot -D fp -e command to activate the STMS function. The STMS takes effect after the operating system restarts.
    • Solaris 11

      The method used to enable the multipathing software on the host system varies according to different ALUA modes (enabled or disabled).

      • ALUA is enabled.

        The configuration method is the same as that in Solaris 10.

      • ALUA is disabled.
        1. Run the format command, select a mapped disk, and click inquiry to query Vendor ID and Product ID of the LUN.
        2. Run the cp /kernel/drv/scsi_vhci.conf /etc/driver/drv/scsi_vhci.conf command to copy content of the /kernel/drv/scsi_vhci.conf file to the /etc/driver/drv/scsi_vhci.conf file.
        3. Modify the /etc/driver/drv/scsi_vhci.conf configuration file and add Vendor ID and Product ID of the LUN to the configuration file. For example, if Vendor ID is HUAWEI and Product ID is XXXXXX, configure the file as follows:
          scsi-vhci-failover-override =
          
          "HUAWEI   XXXXXX", "f_sym";
          
        4. Run the stmsboot -D fp -e command to activate the STMS function. The STMS takes effect after the operating system restarts.
  5. Run the following newfs command to create a file system:

    newfs /dev/dsk/c1t1d0s2

    In this example, the file system is created on /dev/rdsk/c1t1d0s2, where c1t1d0 indicates the name of the logical disk mapped to the host, and s2 indicates the second partition of the logical disk.

    The following output is displayed.
    newfs: construct a new file system /dev/rdsk/c1t1d0s2: (y/n) y
    
    /dev/rdsk/c1t1do0s2 12566128 sectors in 3068 cylinders of 128 tracks, 32 sectors
    6136.0 MB in 118 cyl groups (26 c/g, 52.00 MB/g, 6400 i/g)
    super-block backups (for fsck -F ufs -o b=#) at:
    32, 106560, 213088, 319616, 426144, 532672, 639200, 745728, 852256, 958784,
    11505056, 11611584, 11718112, 11824640, 11931168, 12037696, 12144224,
    12250725, 12357280, 12463830

  6. Create a file directory.

    Run the following command to create a file directory:
    mkdir /directory

    In this example, the /directory directory is created.

  7. Mount the partitioned logical disk to the directory.

    Run the following command to mount the logical disk:
    mount /dev/dsk/c1t1d0s2 /directory

    In this example, the /dev/dsk/c1t1d0s2 logical disk is mounted to /directory.

Result

Successful mounting ensures that the application server can read and write the logical disk as a normal disk. Run the mount command to check whether the logical disk is properly mounted. If the following output is displayed, the mounting was successful:
# mount
/directory /dev/dsk/c1t1d0s2 read/write/setuid/devices/intr/largefiles/logging/xattr/oneerror=panic/dev=800302 on Fri Jun 10 14:25:12 2011
Translation
Download
Updated: 2019-04-17

Document ID: EDOC1000084191

Views: 85618

Downloads: 2297

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next