Displaying 3 results from an estimated 3 matches for "lvmname".
Did you mean:
lv_name
2016 May 06
4
resize lvm
I have a laptop that I put centos 7 on and I started out with a 30gig partition.? I resized the other part of the disk to allow more space for centos.? I then created an unformated partition in the available space,? ran
pvcreate /dev/sda4
vgextend lvname /dev/sda4
lvextend -L 184.46G /dev/lvname/root
but when I run:
sudo resize2fs /dev/lvname/root
I get:
resize2fs: Bad magic
2016 May 06
0
resize lvm
...dev/lvname/root
I find it easiest to do lvextend -l 100%VG /dev/lvname/rootI find it
easiest to do lvextend -l 100%VG /dev/lvname/root.
(Then, if practical, and since it's a laptop, I'm guessing it's not a
production machine), reboot from a livecd or whatever and doing e2fsk -f
/dev/lvmname/root
I don't know if it will solve your issue, but may be worth trying.
>
>
> but when I run:
>
>
>
> sudo resize2fs /dev/lvname/root
>
>
> I get:
>
>
>
> resize2fs: Bad magic number in super-block while trying to open /dev/lvname/root
>...
2016 May 06
2
resize lvm
...I find it easiest to do lvextend -l 100%VG /dev/lvname/rootI find it
> easiest to do lvextend -l 100%VG /dev/lvname/root.
> (Then, if practical, and since it's a laptop, I'm guessing it's not a
> production machine), reboot from a livecd or whatever and doing e2fsk -f
> /dev/lvmname/root
>
> I don't know if it will solve your issue, but may be worth trying.
I found this:
# lvextend -l +100%FREE /dev/myvg/testlv
doing a search. What's the difference between 100%VG and 100%FREE?
Thanks,
-wes