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

OceanStor 2800 V5 V500R007

This document is applicable to OceanStor 2800 V5. 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 is intended for 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 on the Storage System

Create new LUNs on the storage system and map them to application servers' LUN groups.

Prerequisites
  • Communication is normal between the storage system and the application server to which storage space is being expanded.
  • You have determined the size of the new LUNs.
  • The storage pool on the storage system has sufficient space for the new LUNs.
  • If a Fibre Channel network is used, the WWN of the Fibre Channel initiator has been obtained.
  • If an iSCSI network is used, the IQN of the 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=100000109b1c80ba
      
        WWN               : 100000109b1c80ba
        Running Status    : Online
        Free              : No
        Alias             : --
        Host ID           : 0
        Multipath Type    : Default
        Failover Mode     : --
        Path Type         : --
        Special Mode Type : --

      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 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 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 DeviceManager, click .

    The Provisioning page is displayed.

  3. Create LUNs.

    1. In the Block Storage Service area, click LUN.
    2. Click Create.

      The Create LUN page is displayed.

    3. Set parameters as required. Table 5-50 describes the parameters.
      Table 5-50 Main parameters for creating a LUN

      Parameter

      Description

      Capacity

      Indicates the actual storage space assigned to 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 allocated with the same capacity and automatically named.

    4. Click OK. The LUN creation is complete.

  4. Add the new LUNs to the LUN group.

    1. On the LUN management page, click the LUN Group tab.
    2. Select the LUN group to which you want to add the LUNs and click Add Object.
    3. In the Available LUNs area, select the new LUNs, click to add them to the Selected LUNs area.
    4. Click OK.

Adding LUNs on the Application Server

Adding LUNs on a Windows Application Server

After creating LUNs and adding them to the LUN group on the storage system, configure the application server to identify and use the added storage space. This section uses an application server running Windows Server 2008 as an example. 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 on the storage system.

Procedure
  1. Log in to the application server as an administrator.
  2. Right-click Computer and choose Manage from the shortcut menu.

    The Server Manager dialog box is displayed.

  3. Scan for new logical disks on the application server.

    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 on the right (using Disk 3 as an example), as shown in Figure 5-46. (The display varies by disk size).
      Figure 5-46 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.
      NOTE:

      If no new disk is detected, possible causes are:

      • 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 front-end 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 Troubleshooting.

  4. Initialize the new logical disks.

    1. Right-click Disk 3 and choose Online from the shortcut menu. The status of Disk 3 changes to Not Initialized.
      Figure 5-47 Online disk list

    2. Right-click Disk 3 and choose Initialize Disk from the shortcut menu.
      Figure 5-48 Initializing disks

    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.

    Right-click Disk 3 and choose Convert to GPT Disk from the shortcut menu, as shown in Figure 5-49.

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

    After a successful conversion, two partitions of the logical disk will combine, as shown in Figure 5-50.

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

  6. Partition and format the logical disks.

    NOTE:

    When formatting a logical disk for the first time, do not read or write the 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 on a SUSE Application Server

After creating LUNs and adding them to the LUN group on the storage system, configure the application server to identify and use the added storage space. This section uses an application server running SUSE 11.0 as an example. 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 on the storage system.
  • 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 name of the volume group is thin, the logical volume to be expanded is lvthin, and the file system's mount directory is /dev/thin/lvthin.

Procedure
  1. Scan for disks on the application server.

    1. Run the upadmin show vlun command to query the existing LUNs. In this example, 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 again to query the current 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.

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

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

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

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

    # 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 on an AIX Application Server

After creating LUNs and adding them to the LUN group on the storage system, configure the application server to identify and use the added storage space. This section uses an application server running AIX 6.1 as an example. 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 on the storage system.
  • 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's 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 check the capacity of the volume group to be expanded (which is thinvg in this example).
  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.
  7. Run the chfs -a size=+49G /thin command to expand the file system.
Translation
Download
Updated: 2019-07-11

Document ID: EDOC1000181576

Views: 18473

Downloads: 25

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