Dynamic expansion of SCST shared disk

Time:2021-10-23

SCST shared disks support online capacity expansion. The operation is as follows:

SCST server

First, there is a ZFS storage volume, and now its capacity is expanded from 15g to 20g.

zfs set volsize=20G tank/vol

Modify the size attribute of device in SCST

scstadmin -set_dev_attr device1 -attributes size=21474836480 -noprompt

ISCSI client

Rescan target

iscsiadm -m node --target <target_name> -R

Expand the disk capacity. If the disk stores mount status, umount first.

resize2fs /dev/sdX
e2fsck -f /dev/sdX
resize2fs /dev/sdX

Remount, usedf  You can find that the capacity of the disk has been modified.

FC client

Rescan FC host

echo "- - -" > /sys/class/scst_host/hostX/scan

Expand the disk capacity as above.