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
- Log in to the application server as an administrator.
- Right-click Computer and choose Manage from the shortcut menu.
The Server Manager dialog box is displayed.
- Scan for new logical disks on the application server.
- In the navigation tree of the Server Manager dialog box, choose Storage > Disk Management.
- 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 13-17. (The display varies by disk size).If no new logical disk is detected, perform the following operations:
- Choose Server Manager > Diagnostics > Device Manager > Disk Drives.
- Right-click Disk Drives and choose Scan for hardware changes from the shortcut menu.
- Rescan for logical disks.
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.
- Initialize the new logical disks.
- Right-click Disk 3 and choose Online from the shortcut menu. The status of Disk 3 changes to Not Initialized.Figure 13-18 Online disk list
- Right-click Disk 3 and choose Initialize Disk from the shortcut menu.Figure 13-19 Initializing disks
- 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.
- Right-click Disk 3 and choose Online from the shortcut menu. The status of Disk 3 changes to Not Initialized.
- (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 13-20.
After a successful conversion, two partitions of the logical disk will combine, as shown in Figure 13-21.
- Partition and format the logical disks.
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.
- 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
- Scan for disks on the application server.
- 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
- Run the hot_add command to scan for disks.
- 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
- Run the upadmin show vlun command to query the existing LUNs. In this example, two LUNs are displayed.
- Run the pvcreate /dev/sdd command to create a physical volume.
# pvcreate /dev/sdd Physical volume "/dev/sdd" successfully created
- Run the vgextend thin /dev/sdd command to expand the volume group.
# vgextend thin /dev/sdd Volume group "thin" successfully extended
- 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
- 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
- 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.
- Run the lsvg thinvg command to check the capacity of the volume group to be expanded (which is thinvg in this example).
- 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,...
- 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
- 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
- Run the extendvg thinvg hdisk4 command to expand the volume group.
- Run the chfs -a size=+49G /thin command to expand the file system.