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).
Adding LUNs for Storage Space Expansion

Adding LUNs for Storage Space Expansion

You can add LUNs to expand capacity for existing services, so that application servers can use added storage space.

Adding LUNs at the Storage Side

Create new LUNs and map them to application servers' LUN groups so that application servers can use the added storage space.

Prerequisites

  • You have performed Performing the Pre-expansion Check and the storage system environment is normal.
  • Communication is normal between a storage system and an application server that requires expanded storage space.
  • You have confirmed an application server to which a new LUN is mapped and the size of the LUN.
  • The storage system has a storage pool that provides sufficient storage space to create LUNs. For details about how to expand a storage pool, see "Expand a storage pool" in Expanding a LUN.
  • If a Fibre Channel network is used, ensure that the world wide name (WWN) of a Fibre Channel initiator has been obtained.
  • If an Internet Small Computer Systems Interface (iSCSI) network is used, ensure that the iSCSI qualified name (IQN) of an iSCSI initiator has been obtained.

Procedure

  1. Locate the LUN group.
    1. Log in to the CLI.
    2. Run the show initiator initiator_type=? [ wwn=? | iscsi_iqn_name=? ] command to view the information about the corresponding host based on the initiator WWN or IQN.

      Parameter

      Description

      Value

      initiator_type=? Initiator type.

      Possible values are FC and iSCSI, where:

      • iSCSI: indicates an iSCSI initiator.
      • FC: indicates a Fibre Channel initiator.
      wwn=? WWN of a Fibre Channel initiator. This parameter is available only when initiator_type=? is FC.

      To obtain the value, run the show initiator command without parameters.

      iscsi_iqn_name=? IQN of an iSCSI initiator. This parameter is available only when initiator_type=? is iSCSI.

      To obtain the value, run the show initiator command without parameters.

      admin:/>show initiator initiator_type=FC wwn=21000024ff53b640
      
      WWN               : 21000024ff53b640
      Running Status    : Online
      Free              : Yes
      Alias             : suse2_01
      Host ID           : 2
      Multipath Type    : Default
      

      The value of Host ID is the ID of the host corresponding to the WWN.

    3. Run the show host host_group host_id=? command to query the information about the owning host group of the host.

      admin:/>show host host_group host_id=2
      Host Group ID Host Group Name
      ------------- ---------------
      1             HostGroup000
      

    4. Run the show host_group mapping_view host_group_id=? to query the information about the mapping view added to the host group.

      admin:/>show host_group mapping_view host_group_id=1
      Mapping View ID Mapping View Name
      --------------- -----------------
      0               testing
      

    5. Run the show mapping_view lun_group mapping_view_id=? to query the information about the LUN group added to the mapping view.

      admin:/>show mapping_view lun_group mapping_view_id=0
      LUN Group ID    LUN Group Name
      ------------    --------------
      1               lun_group_001
      

  2. In the navigation tree on the right, click .
    The Provisioning page is displayed.
  3. Create LUNs.
    1. In the Block Storage Service area, click LUN.
      Go to the LUN management page
    2. Click Create.
      The Create LUN page is displayed.
    3. Set parameters as required by the new added LUN. Table 5-4 describes the parameters.

      Table 5-4  Main parameters for creating a LUN

      Parameter

      Description

      SmartThin

      Enables SmartThin for you to create thin LUNs. A thin LUN is first allocated an initial amount of storage space, and the storage space increases as data is written onto the thin LUN.

      Capacity

      Indicates the actual storage space assigned to the LUN. The capacity you set is the actual capacity that can be used by the LUN.

      Quantity

      Indicates the quantity of LUNs to be created. The storage system allows you to create multiple LUNs at a time. Each LUN is assigned the same capacity and automatically named.

    4. Click OK. The LUN creation is complete.
  4. Add the newly created LUNs to a LUN group.
    1. On the LUN management page, click the LUN Group tab.
      Go to the LUN group page.
    2. Select a LUN group to which you want add the LUNs and click Add Object.
      Go to the Add Object page.
    3. In the Available LUN area, select the newly created LUNs, click , and add the LUNs to the Selected LUN area.
    4. Click OK.

Follow-up Procedure

After adding the newly created LUNs to the LUN group, you need to discover them at the application server side as instructed in Adding LUNs at the Application Server Side.

Adding LUNs at the Application Server Side

Adding LUNs at the Application Server Side (in Windows)

After creating LUNs and adding them to a LUN group at the storage system side, you need to perform necessary configurations at the application server side to identify and use the added storage space. Using Windows Server 2008 as an example, this section describes how to add LUNs at the application server side. For application servers running other versions of Windows operating systems, adjust the operations based on actual conditions.

Prerequisites

LUNs have been created and added to a LUN group at the storage side.

Procedure

  1. Log in to the application server as administrator.
  2. Go to the Server Manager dialog box.

    Right-click Computer and choose Manage from the shortcut menu.

  3. In the navigation tree, click Disk Management and scan for new logical disks.
    1. In the navigation tree of the Server Manager dialog box, choose Storage > Disk Management.
    2. Right-click Disk Management and choose Rescan Disks from the shortcut menu.

      • After the scanning is complete, new logical disks are displayed in the right area (using Disk 3 as an example), as shown in the red square in Figure 5-16. (The display varies with the disk size).
        Figure 5-16  Viewing new logical disks

      • If no new logical disk is detected, perform the following operations:
        1. Choose Server Manager > Diagnostics > Device Manager > Disk Drives.
        2. Right-click Disk Drives and choose Scan for hardware changes from the shortcut menu.
        3. Rescan for logical disks. If no new logical disk is detected, troubleshoot the fault and rescan for logical disks.
      NOTE:
      If no mapped disk is detected, possible causes are:
      • The application server is not correctly 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 is not installed.
      • A fault occurs in the storage pool.
      • UltraPath has not been installed or an incorrect version has been installed.
      • The device file on the application server is lost.

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

  4. Initialize the new logical disks.
    1. Optional: Right-click Disk 3 (as shown in the red square in Figure 5-17) and choose Online from the shortcut menu. The status of Disk 3 is Not Initialized.

      Figure 5-17  Online disk list

    2. Right-click Disk 3 (as shown in the red square in Figure 5-18) and choose Initialize Disk from the shortcut menu.

      Figure 5-18  Initialized Disk

    3. In the Initialize Disk dialog box that is displayed, select the logical disks that you want to initialize and click OK.

      Wait about one minute. When the status of Disk 3 becomes Online, the initialization is successful.

  5. Optional: If a new logical disk is larger than 2 TB, convert it into a GPT disk; otherwise, it is inaccessible.
    1. Right-click Disk 3 and choose Convert to GPT Disk from the shortcut menu, as shown in the red square in Figure 5-19.

      Figure 5-19  Converting a logical disk into a GPT disk

      After a successful conversion, two partitions of a logical disk will form into one, as shown in the red square in Figure 5-20.

      Figure 5-20  Successful conversion of a logical disk into a GPT disk

  6. Partition and format the logical disks.

    NOTE:

    After formatting the logical disks for the first time, do not read or write a logical disk until its status becomes Healthy; otherwise, the formatting may fail. If formatting fails, cancel the formatting operation and try again.

  7. Right-click the new logical disk and choose Open from the shortcut menu. You can read and write the logical disk.
Adding LUNs at the Application Server Side (in SUSE)

After creating LUNs and adding them to a LUN group at the storage system side, you need to perform necessary configurations at the application server side to identify and use the added storage space. Using SUSE 11.0 as an example, this section describes how to add LUNs at the application server side. For application servers running other versions of SUSE operating systems, adjust the operations based on actual conditions.

Prerequisites

  • LUNs have been created and added to a LUN group at the storage side.
  • UltraPath has been installed on the application server.

Context

In this example, two LUNs have been mapped to the application server. The names of the two LUNs are sdb and sdc. A new thin LUN of 50 GB has been created and mapped to the application server using drive letter sdd. The names of the volume group and logical volume to be expanded and the file system mount directory are thin, lvthin, and /dev/thin/lvthin respectively.

Procedure

  1. Scan for disks on the application server.
    1. Run the upadmin show vlun command to view the current number of LUNs. Two LUNs are displayed.

      # upadmin show vlun
      Vlun ID      Disk          Name                   Lun WWN                Status Capacity   Ctrl(Own/Work)    Array Name   
          0         sdb       SUSE11_LUN_01  6200bc71001faad3017fbf6b00000007  Normal 50.00GB        0B/0B       Huawei.Storage 
          1         sdc       SUSE11_LUN_02  6200bc71001faad3017fc65b00000008  Normal 50.00GB        0B/0B       Huawei.Storage
      

    2. Run the hot_add command to scan for disks.
    3. Run the upadmin show vlun command to view the current number of LUNs. Three LUNs are displayed.

      # upadmin show vlun
      Vlun ID      Disk          Name                   Lun WWN                Status Capacity   Ctrl(Own/Work)    Array Name   
          0         sdb       SUSE11_LUN_01  6200bc71001faad3017fbf6b00000007  Normal 50.00GB        0B/0B       Huawei.Storage 
          1         sdc       SUSE11_LUN_02  6200bc71001faad3017fc65b00000008  Normal 50.00GB        0B/0B       Huawei.Storage
          2         sdd       SUSE11_LUN_003  6200bc71001faad302429b1a0000000b Normal 50.00GB        0A/0A       Huawei.Storage
      

  2. Run the pvcreate /dev/sdd command to create a physical volume (PV).

    # pvcreate /dev/sdd
      Physical volume "/dev/sdd" successfully created
    

  3. Run the vgextend thin /dev/sdd command to expand the volume group (VG).

    # vgextend thin /dev/sdd
      Volume group "thin" successfully extended

  4. Run the lvextend -L +49G /dev/thin/lvthin command to expand the logical volume (LV).

    # lvextend  -L +49G /dev/thin/lvthin
      Extending logical volume lvthin to 148.00 GiB
      Logical volume lvthin successfully resized
    

  5. Run the resize2fs /dev/thin/lvthin command to expand the file system.

    # resize2fs /dev/thin/lvthin
    resize2fs 1.41.9 (22-Aug-2009)
    Filesystem at /dev/thin/lvthin is mounted on /thin; on-line resizing required
    old desc_blocks = 7, new_desc_blocks = 10
    Performing an on-line resize of /dev/thin/lvthin to 38797312 (4k) blocks.
    The filesystem on /dev/thin/lvthin is now 38797312 blocks long.
    

Adding LUNs at the Application Server Side (in AIX)

After creating LUNs and adding them to a LUN group at the storage system side, you need to perform necessary configurations at the application server side to identify and use the added storage space. Using AIX 6.1 as an example, this section describes how to add LUNs at the application server side. For application servers running other versions of AIX operating systems, adjust the operations based on actual conditions.

Prerequisites

  • LUNs have been created and added to a LUN group at the storage side.
  • UltraPath has been installed on the application server.

Context

In this example, two LUNs have been mapped to the application server, which are named hdisk2 and hdisk3. A new thin LUN of 50 GB has been created and mapped to the application server using drive letter hdisk4. The names of the volume group and the file system mount directory are thinvg and /thin respectively.

Procedure

  1. Run the lsdev -Cc disk command to view the information about identified disks.

    # lsdev -Cc disk
    hdisk0 Available 00-08-00 SAS Disk Drive
    hdisk1 Available 00-08-00 SAS Disk Drive
    hdisk2 Available 05-00-01 Huawei XXXX FC Disk Drive
    hdisk3 Available 05-00-01 Huawei XXXX FC Disk Drive
    

    In the command output, XXXX indicates the product model or brand.

  2. Run the lsvg thinvg command to view the capacity of the volume group to be expanded whose name is thinvg.
  3. Run the lsdev -Cc adapter | grep fcs and cfgmgr -vl fcsX commands to scan for disks.

    # lsdev -Cc adapter | grep fcs
    fcs0    Available 05-00 4GB FC PCI Express Adapter (df10000fe)
    
    # cfgmgr -vl fcsX   ;X=0,1,2,...
    

  4. Run the lsdev -Cc disk command again to view the information about identified disks.

    # lsdev -Cc disk
    hdisk0 Available 00-08-00 SAS Disk Drive
    hdisk1 Available 00-08-00 SAS Disk Drive
    hdisk2 Available 05-00-01 Huawei XXXX FC Disk Drive
    hdisk3 Available 05-00-01 Huawei XXXX FC Disk Drive
    hdisk4 Available 05-00-01 Huawei XXXX FC Disk Drive

  5. In the multipathing mode, run the upadm show vlun command to view LUN information.

    # upadm show vlun
    Vlun ID    Host Lun ID  Disk Name      Vlun Name                 Vlun WWN                 Status       In Use    Capacity  Controller(Own/Work)    Array Name           Array SN       
         2          1         hdisk2     aix7_LUN_001    6200BC71001FAAD300E9891C0000000D    Available      Yes        50GB           0B/0B           Huawei.Storage   210235G7FC10D8000001 
         3          2         hdisk3     aix7_LUN_002    6200BC71001FAAD300E990520000000E    Available      Yes        50GB           0A/0A           Huawei.Storage   210235G7FC10D8000001
         4          3         hdisk4     aix7_LUN_003    6200bc71001faad301045cae0000000f    Available      Yes        50GB           0A/0A           Huawei.Storage   210235G7FC10D8000001
    

  6. Run the extendvg thinvg hdisk4 command to expand the volume group (VG).
  7. Run the chfs -a size=+49G /thin command to expand the file system.
Translation
Download
Updated: 2019-04-17

Document ID: EDOC1000084191

Views: 85803

Downloads: 2300

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