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.