When I try to resize my partition, I keep getting the following:
open: Is a directory while opening /mnt/mymount/
These are my steps:
1 pvcreate /dev/xvdf1
2 vgcreate battlestar /dev/xvdf1
3 lvcreate -L 192M -n galactica battlestar
4 mkdir /mnt/mymount
5 mount /dev/battlestar/galactica /mnt/mymount
6 mkfs.ext4 /dev/battlestar/galactica
7 mount /dev/battlestar/galactica /mnt/mymount
8 lvextend -L +60 /dev/battlestar/galactica
9 resize2fs /mnt/mymount/
10 resize2fs /dev/mapper/battlestar-galactica
line 9 does not work but line 10 does. Why?
Why doesn't the size of mymount increase after line 8? Why do I need to type resize2fs
Also, could someone please verify my understanding of pv,lg,lv (diagram is found here: http://imgur.com/qVtTcrE
At first, I partitioned xvdf (1GB).
Next, I created a physical volume, and then a volume group. This volume group may have multiple physical volumes, but at the moment, we only have 1(xvdf1). After that, I created a logical volume, essentially, carving out 200MB of memory from PV.
Once the LV is created, this "storage device" needs a filesystem. I used the mkfs.ext4 command to do this. Once this was created, I now need to mount this storage device using the mount command.