Increase Logical Drive Capacity: Additional Instructions for Linux – ext2 and ext3 File Systems

Use this procedure to make sure that an increase in capacity for a is recognized by a running the Linux Red Hat Advanced Server 2.1 operating system, the Red Hat Professional 8.0 operating system, the SUSE SLE 8.0 operating system, or the SUSE Professional 8.1 operating system, using ext2 or ext3 file systems.

If an increase in capacity for a standard logical drive is performed, the host does not immediately recognize the increase in logical drive capacity. Using the ext2resize tool to perform the actual increase, either you must reload the driver or you must remove or add a SCSI-level scan to make sure that the increase is recognized.

  1. Start the storage management software.
  2. Perform a logical drive expansion operation by using one of these three methods:
  3. In the Script View, type this command with the appropriate syntax, as follows:

    start increaseVolCapacity logical drive =<“logical driveLabel”> incrementalCapacity=<capacity> disk drives=<(disk drive list)>; 
    

    For more information about the syntax and required parameters for the start increaseVolCapacity command, refer to the online help topics in the Enterprise Management Window.

  4. Run the script by selecting either Tools >> Verify and Execute or Tools >> Execute Only in the Script Editor dialog.
  5. Go to step 7.
  6. At the command prompt, type this command, and press Enter:

    SMcli arrayname -c “start increaseVolCapacity logical drive =<“logical driveLabel”> incrementalCapacity=<capacity> disk drives=<(disk drive list)>;”,
    

    For more information about the syntax and required parameters for SMcli, refer to the How to Use the Command Line Interface online help topic in the Enterprise Management Window. For more information about the syntax and required parameters for the start increaseVolCapacity command, refer to the online help topics in the Enterprise Management Window.

  7. Launch a terminal window. At the host prompt, type this command, and press Enter:

    df
    

    A list of all mounted storage partitions recognized by the host appears, including the available space, used space, and the directory to which the logical drive is mounted.
  8. Locate the storage subsystem being resized in the list, and make sure that enough free space exists for an increase in capacity.
  9. Determine the file system used on the expanded logical drive. At the host prompt, type this command, and press Enter:

    [root@<directoryname> root] # mount
    

    A list of each storage partition and its respective file system type appears.
  10. Unmount the logical drive from its host. At the host prompt, type this command, and press Enter:

     unmount /dev/sXY
    

    In this command, X is the disk drive, and Y is the storage partition number of the logical drive that you are resizing.


    Important:

    Unmount all logical drives that are recognized by the driver before you unload the driver.

  11. Unload the driver from the host. At the host prompt, type this command, and press Enter:

    modprobe -r qla2x00
    

    If you are using a driver other than qla2x00, substitute its name instead.


    Note:

    If this command does not work, reboot the host to unmount the driver.

  12. Reload the driver on the host. At the host prompt, type this command, and press Enter:

    modprobe qla2x00
    


    Note:

    If you are using a driver other than qla2x00, substitute its name instead.

  13. Resize the file system, by using the appropriate resizing tool supported by the file system:
  14. To resize an ext2 file system, perform these steps:
    1. Start the ext2resize tool.
    2. At the host prompt, type this command, and press Enter:

      resize2fs /dev/sdxx
      

      In this command, /dev/sdxx is the storage subsystem being resized.

      If the file system was successfully resized, a confirmation message appears.
    3. Go to step 16.
  15. To resize an ext3 file system, perform these steps:


    Important:

    You cannot resize an ext3 file system unless it is first converted to an ext2 file system, resized using the ext2resize tool, and converted back to an ext3 file system.

    1. Start the ext2resize tool.
    2. At the host prompt, type this command, and press Enter:

      #tune2fs -o^has_journal /dev/sdXY
      

      In this command, X is the disk drive, and Y is the storage partition number.

    3. Check the file system for errors. At the host prompt, type this command, and press Enter:

      #e2fsck -f /dev/sdXY
      

      In this command, X is the disk drive, and Y is the storage partition number.

    4. Resize the file system. At the host prompt, type this command, and press Enter:

      #resize2fs -p /dev/sdxx
      

      In this command, /dev/sdxx is the storage subsystem being resized.

    5. Re-create the journal. At the host prompt, type this command, and press Enter:

      #tune2fx -j /dev/sdXY
      

      In this command, X is the disk drive, and Y is the storage partition number.

    6. Go to step 16.
  16. Remount the storage subsystem to the host. At the host prompt, type this command, and press Enter:

    mount /dev/sdxx
    

    In this command, /dev/sdxx is the storage subsystem being remounted.

  17. Exit all applications, and reboot the .
  18. Launch a terminal window. At the host prompt, type this command, and press Enter:

     df
    

    A list of all the mounted storage partitions recognized by the host appears. Make sure that the file system was successfully resized.

Related Links: