I'm switching back and forth between two tutorials for mounting the EBS volume and I have an issue. I'd rather make sure that I'm doing it right, rather than somehow compromise my instance (especially since I haven't created an AMI yet...).
I've attached the EBS at /dev/sda1. In the respective tutorials, it's mounted at dev/sdh. I assumed that wasn't a big deal at all.
I just changed the initial command to create the filesystem to:
I received the following message:
mkfs.xfs: /dev/sda contains a mounted filesystem (....) <devicename> is required unless -d name=xxx is given.
Per one of the tutorials that doesn't seem like the correct response. Can I just go ahead with the following series of linux commands and be fine?
grep -q xfs /proc/filesystems || sudo modprobe xfs sudo mkfs.xfs /dev/sda1 echo "/dev/sdh /vol xfs noatime 0 0" | sudo tee -a /etc/fstab sudo mkdir -m 000 /vol sudo mount /vol