How do I expand the storage pool or volume capacity#

How do I expand the storage pool or volume capacity#

Environment

RAID Model: SR1000 or SR1010, SR1001
Host Hardware: Intel, AMD
Operating System: Linux 

Issue

User would like to expand the Volume or storage.

Resolution

1. Set up the LVM with SupremeRAID solution wit original size.
   # graidctl c pd /dev/nvme0-7
  # graidctl c dg raid5 0-7
  # graidctl c vd 0 
  # pvcreate /dev/gdg0n1
  # vgcreate vg-graid /dev/gdg0n1
  # lvcreate -n graid vg-graid -l 100%VG



 2. create mount point and mount device (take "ext4" filesystem format as example)
  # mkdir -p /mnt/graid
  # mkfs.ext4 /dev/vg-graid/graid
  # mount -o noatime,nodiratime,nobarrier /dev/vg-graid/graid /mnt/graid
 3. Setup fstab for auto-mount 
  a. add the "ExecStartPost=vgchange -ay" at the next of "Execstart" in the "/lib/systemd/system/graid.service"
     # vim /lib/systemd/system/graid.service
     

  b. query the uuid by "/dev/disk/by-uuid/" to get the lvm's uuid
   # ls -al /dev/disk/by-uuid/
  c. edit "/etc/fstab/ by add the following parameter
   [fs_spec] [fs_file] [fs_vfstype] [fs_mntops] [fs_freq] [fs_passno]
   
UUID=[lvm's uuid] [mount point] [filesystem format] x-systemd.wants=graid.service,x-systemd.automount,x-systemd.idle-timeout=600,nofail  0 0
   example:
   UUID=cac5749b-d7d0-4600-bdc1-c5153365313d /mnt/graid ext4 x-systemd.wants=graid.service,x-systemd.automount,x-systemd.idle-timeout=600,nofail,noatime,nodiratime,nobarrier 0 0
4. extend lvm size and mount point
  a. extend lvm size
    # vgdiplay vg-graid
    # lvdisplay --maps /dev/vg-graid/graid 
    create a new pd/dg/vd for extend volume
    #  graidctl c pd /dev/nvme8-15
    # graidctl c dg raid5 8-15
    # graidctl c vd 1 
    # pvcreate /dev/gdg1n1
    extend lvm size
    #  vgextend vg-graid /dev/gdg1n1
    # vgdiplay vg-graid
     # lvextend -l +100%free /dev/vg-graid/graid
     # lvdisplay --maps /dev/vg-graid/graid 
    # 
resize2fs /dev/vg-graid/graid
    

Now your mount point is already extended with the new volume.

    • Related Articles

    • How to get basic information from Graid log collection tool(Linux)?#

      Environment RAID Model: All Host Hardware: All Operating System: Linux Issue This script collects config and logs information that graid support requires to troubleshoot issues effectively. Resolution 1. Download the log collection script and make it ...
    • How to Configure QEMU with SupremeRAID RAID as a Datastore for Virtual Machines #

      Environment RAID Model: All Supreme RAID model Host Hardware: AMD/Intel Operating System: Linux RHEL QEMU Description Virtualization has become an essential tool for modern computing, enabling multiple virtual machines (VMs) to operate on a single ...
    • fstab#

      Environment RAID Model: SR1000 or SR1010 etc Host Hardware: AMD/Intel Operating System: Linux Issue The Appendix of the User manual suggest that the UUID is used as shown below. This method may not have the desired affects on some Linux distro's. ...
    • Enabling Secure Boot with SupremeRAID™ on Ubuntu

      Environment RAID Model: SR1000 or SR1010 etc Host Hardware: AMD/Intel/Supermicro model etc Operating System: Linux Ubuntu etc Issue Setting up Secure Boot with SupremeRAID™ requires proper key enrollment for loading both the SupremeRAID and NVIDIA ...
    • License not expired but when you apply fail show [Apply license failed : License expired]#

      Environment RAID Model: All Supreme RAID model Host Hardware: AMD/Intel Operating System: Linux SupremeRAID driver: 1.3.x or later Description If you check the license product expiry date not expired, but when you apply license still failed and show ...