If the end-user didn't add a new storage device after installing SSFE, the file will write to the root partition and the partition will be full soon.
This article shows how to move files to another device.
Prerequisites:
- The customer's SSFE version should be 3.2.
- Check if SSFE has more than 2 storage devices. If the total of the storage devices is less than 3, add another storage device from admin portal.
To move files:
- Secure Shell (SSH) login to the SSFE server.
- Input the following commands:
# get the root permission
sudo su# please set the $target_dev_id to the device id that need to be drain (i.e. 11, 21 etc...)
# for example target_id_dev=11
target_dev_id=ID && ( [ "$target_dev_id" = "ID" ] && echo "please enter the valid target_dev_id" ) || ( [ "$(hostname)" = "appliance1" ] && s_host="osdp-store1" || s_host="osdp-store2" && mogadm device mark $s_host $target_dev_id drain) 2> /dev/nullmogadm fsck reset && mogadm fsck start
watch -n 1 mogadm fsck status
# wait status to 100%# check if the file number of drain device is close to zero
watch -n 1 'stats=$(mogstats 2> /dev/null) && last=$(echo "$stats" | grep -n "Statistics for file ids" | cut -d":" -f1) && echo "$stats" | sed -n "1,${last}p"'# if the storage type is local
# for example: /opt/SingleInstaller/nodeControl/bin/mount-local.bash --dead dev11
/opt/SingleInstaller/nodeControl/bin/mount-local.bash --dead dev$devid# if the storage type is iscsi
# for example: /opt/SingleInstaller/nodeControl/bin/mount-iscsi.bash --dead dev11
/opt/SingleInstaller/nodeControl/bin/mount-iscsi.bash --dead dev$devid# FINISH