Friday, March 8, 2019

Openstack can't mount volume

sudo mkfs.ext4 /dev/vdb
mke2fs 1.44.1 (24-Mar-2018)
The file /dev/vdb does not exist and no size was specified.


Solution:
sudo sed '/^\/dev\/vdb/ d' -i /etc/fstab sudo reboot & ( sleep 30; echo 'b' > /proc/sysrq-trigger )

sudo mkfs.ext4 /dev/vdb sudo mount /dev/vdb /mnt sudo chown -R ubuntu: /mnt cd /mnt && dd if=/dev/zero of=deleteme oflag=direct bs=1M count=1024 && rm deleteme

No comments:

Post a Comment