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 (AIX)

Making Storage Space Available (AIX)

This task guides you through enabling an AIX-based application server to use the storage space provided by a storage system.

Context

An AIX-based application server manages its storage space using physical volumes and logical volumes. Table 4-3 describes the commands used to manage physical and logical volumes.
Table 4-3  Commands used to manage physical and logical volumes

Command

Use to

cfgmgr

Scans for LUNs.

lspv

Lists the information about physical volumes.

mkvg

Creates a physical volume group.

mklv

Creates a logical volume in a physical volume group.

crfs

Creates a file system.

rmdev

Deletes a physical volume.

rmlv

Deletes a logical volume.

Precaution

If you need to configure SAN boot while UltraPath of a higher version is not installed for connecting an AIX host to a Huawei storage device, see "Installing AIX ODM for MPIO" of the AIX ODM for MPIO User Guide to install AIX ODM for MPIO before performing the following operations.

Procedure

  1. Log in to the AIX-based application server as user root.
  2. Run the cfgmgr command to scan for the LUNs mapped to the application server.
  3. Run the lspv command to query the PVID allocated to the newly mapped disk.

    The following output is displayed.
    # lspv
    hdisk0          000c6ce67e98ce56                    rootvg          active
    updisk0         000c6ce66fc2cfc6                    vg1             
    updisk1         000c6ce66fc2cfc6                    vg1             
    updisk2         000c6ce67ed787c1                    vg2             
    updisk3         None                                None  
    The output shows that PVID of the newly mapped disk is updisk3 and the disk is inactive.
    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.

  4. Create a physical volume group.

    Run the following command to create a physical volume group:
    # mkvg -y testvg updisk3
    0516-1254 mkvg: Changing the PVID in the ODM. 
    testvg

    In this example, the testvg physical volume group is created for the updisk3 logical disk.

    After the physical volume group is successfully created, run the lspv command to query the status. As shown in the following, the status of the physical volume group becomes active.
    # lspv
    hdisk0          000c6ce67e98ce56                    rootvg          active
    updisk0         000c6ce66fc2cfc6                    vg1             
    updisk1         000c6ce66fc2cfc6                    vg1             
    updisk2         000c6ce67ed787c1                    vg2             
    updisk3         000c6ce67ee9fc27                    testvg          active
    

  5. Create a logical volume.

    Run the following command to create a logical volume:
    # mklv -y testlv -t jfs testvg 100
    testlv

    In this example, the testlv logical volume is created in the testvg physical volume group and is allocated 100 physical partitions.

  6. Create the directory for mounting the logical volume.

    Run the following command to create a directory for mounting the logical volume:
    # mkdir /test

    In this example, the test directory is created.

  7. Run the following command to create a file system on the logical volume and mount the file system to the newly created directory:

    # crfs -v jfs -d /dev/testlv -m /test -A yes -a size=1024
    crfs: Warning: device name given, size parameter ignored.
    Based on the parameters chosen, the new /test JFS file system
    is limited to a maximum size of 134217728 (512 byte blocks)

    In this example, a jfs file system containing 1024 data blocks (512 bytes each) is created on the testlv logical volume.

    NOTE:
    The following describes the parameters in the crfs command:
    • -v jfs: A JFS file system will be created.
    • -d: name of the logical volume on which the file system is located.
    • -m: directory to which the file system will be mounted.
    • -A yes: file system auto mounting upon the application server re-startup will be enabled.
    • -a: default values will be configured for the properties of the file system.
    • size=: capacity of the file system, expressed in data blocks (512 bytes each).
    After the file system has been created, run the lsvg command to view the file system created in the specified directory. For example, to view the file system created in the testvg directory, run the following command.
    # lsvg -l testvg
    testvg:
    LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
    testlv              jfs        100     100     1    open/syncd    /test
    loglv01             jfslog     1       1       1    open/syncd    N/A

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
  node mounted     mounted over    vfs       date        options      
-------- ---------------  ---------------  ------ ------------ --------------- 
   /dev/hd4         /                jfs2   Aug 04 02:31 rw,log=/dev/hd8 
         /dev/hd2         /usr             jfs2   Aug 04 02:31 rw,log=/dev/hd8 
         /dev/hd9var      /var             jfs2   Aug 04 02:31 rw,log=/dev/hd8 
         /dev/hd3         /tmp             jfs2   Aug 04 02:31 rw,log=/dev/hd8 
         /dev/fwdump      /var/adm/ras/platform jfs2   Aug 04 02:32 rw,log=/dev/hd8 
         /dev/hd1         /home            jfs2   Aug 04 02:32 rw,log=/dev/hd8 
         /dev/hd11admin   /admin           jfs2   Aug 04 02:32 rw,log=/dev/hd8 
         /proc            /proc            procfs Aug 04 02:32 rw              
         /dev/hd10opt     /opt             jfs2   Aug 04 02:32 rw,log=/dev/hd8 
         /dev/livedump    /var/adm/ras/livedump jfs2   Aug 04 02:32 rw,log=/dev/hd8 
         /dev/testlv      /test            jfs    Aug 05 04:07 rw,log=/dev/loglv01
Translation
Download
Updated: 2019-04-17

Document ID: EDOC1000084191

Views: 85696

Downloads: 2300

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