Linux: System Storage Manager (SSM) - Paiet/Tech-Journal-for-Everything GitHub Wiki

  • Install the SSM
    • yum install system-storage-manager
  • Display current configrution
    • ssm list
  • List logical volumes
    • ssm list volumes
  • Create physical volumes, volume group and logical volume and mount all at once
    • ssm create -s 100G -n website --fstype xfs -p vg1 /dev/sdb /dev/sdc /website
  • Add a physical disk to a pool and resize a volume
    • ssm add -p vg1 /dev/sdd
    • ssm resize -s +100G /dev/vg1/website
    • or
    • ssm resize -s +100G /dev/vg1/website /dev/sdd
  • Check consistency
    • umount /website
    • ssm check /dev/vg1/website
    • mount /dev/vg1/website /website
  • Create a thin provisioned disk
    • ssm create -s 1G --virtual-size 1T -n images --fstype xfs -p vg1 /images
  • Snapshot a volume
    • ssm snapshot /dev/vg1/website
    • ssm list snapshots
  • Restore a snapshot
    • umount /website
    • lvconvert --merge <snapshot_file>
  • Remove volumes
    • umount /website /images
    • ssm remove vg1
  • Create a RAID 0 array
    • ssm create --raid 0 -n website --fstype xfs -p vg1 /dev/sdb /dev/sdc /website
  • Create a RAID 1 array
    • umount /website
    • ssm remove vg1
    • ssm create --raid 1 -s 1G -n website --fstype xfs -p vg1 /dev/sdb /dev/sdc /website