Skip to content

Replacing a storage disk

Cristi Pufu edited this page Nov 28, 2016 · 1 revision
  • Unmount the disk:
umount /dev/sdb 
  • Remove the disk and replace it with a new one (verify that the OS recognized the disk)
dmesg | tail 
  • Format the disk
mkfs.xfs /dev/sdb 
  • Mount the disk
mount -a 
  • Ensure that the folder where the drive is mounted is owned by the account used by the swift demons
chown -R swift:swift /srv/node/sdb 

That's it! Swift notices that the new disk is empty and begins the replication process. Check the logs to make sure everything is ok.

tail /var/log/syslog -n 50 
Clone this wiki locally