Skip to contentSkip to conversation

Help: Mount point does not report full size of LV.

linux-lvm Nick Gyma 3 participants 4 messages Feb 28, 2007 – Mar 1, 2007

lore
Share & tools
lore

Nick Gyma

author
#0 lore raw

Thanks for the reply. The other two disks are file system ext3. Is it possible to change this 3rd disk to be ext3 as well from the current state i'm in? and then resize to fill?

Thanks for helping. here are the results of vgdisplay: (the 208.31GB is correct)

nick@ubuntu:~$ sudo vgdisplay -v
Finding all volume groups
Finding volume group "VGforMyth"
--- Volume group ---
VG Name VGforMyth
System ID
Format lvm2
Metadata Areas 3
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 3
Act PV 3
VG Size 208.31 GB
PE Size 64.00 MB
Total PE 3333
Alloc PE / Size 3333 / 208.31 GB
Free PE / Size 0 / 0
VG UUID C8kSGQ-rAw1-GmUi-7oKx-zatX-8D1A-bYuK35

--- Logical volume ---
LV Name /dev/VGforMyth/video
VG Name VGforMyth
LV UUID q6mYAL-6r5u-92bK-xeIc-qttc-Zmxk-00e0rS
LV Write Access read/write
LV Status available

# open 0
LV Size 208.31 GB
Current LE 3333
Segments 3
Allocation inherit
Read ahead sectors 0
Block device 253:0

--- Physical volumes ---
PV Name /dev/hda4
PV UUID 9VmJ6M-UxhP-7LRF-SAOE-ix3l-pSWe-a2ueRL
PV Status allocatable
Total PE / Free PE 950 / 0

PV Name /dev/hdb1
PV UUID tCKbgt-nBvc-r8FS-OxEd-u9XW-NiOA-00q0BI
PV Status allocatable
Total PE / Free PE 1192 / 0

PV Name /dev/hdd1
PV UUID KEBtSE-LKcc-l79g-2NSh-6VLQ-HKoG-l0zciX
PV Status allocatable
Total PE / Free PE 1191 / 0

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 7 lines · Nick Gyma

Thanks for the reply. The other two disks are file system ext3. Is it possible to change this 3rd disk to be ext3 as well from the current state i'm in? and then resize to fill?

Thanks for helping. here are the results of vgdisplay: (the 208.31GB is correct)

I'm not completely sure what you mean here, but generally if you want to change a file system type you need to do a full backup of the old file system then create the new one and restore.

It tends to be that the only "in place" conversion tools are to update one version of a file system to a later one, e.g. ext2->ext3 or gfs1->gfs2.

Otoh, if the 208.31G is correct for your size you should be ready to resize the NTFS file system on it.

Regards,
Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFF5cYO6YSQoMYUY94RAnDEAJ96mrC5ze9RNkiYolW0ZCE1JQ/+kgCeOR2a hOype56F942Z+/Ajj9va+Wk=
=K+3p
-----END PGP SIGNATURE-----

#2 lore raw
In reply to Nick Gyma

To be safe unmount the filesystem you want to grow. Then you'll use the resize2fs command. From what you've provided so far, and assuming you want to use all the available space on the LV, the command line will probably look something like:

resize2fs -p /dev/VGforMyth/video

I'd recommending reading the man page for resize2fs before proceeding.

Quoted 65 lines · Nick Gyma

Thanks for the reply. The other two disks are file system ext3. Is it possible to change this 3rd disk to be ext3 as well from the current state i'm in? and then resize to fill?

Thanks for helping. here are the results of vgdisplay: (the 208.31GB is correct)

nick@ubuntu:~$ sudo vgdisplay -v
Finding all volume groups
Finding volume group "VGforMyth"
--- Volume group ---
VG Name VGforMyth
System ID
Format lvm2
Metadata Areas 3
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 3
Act PV 3
VG Size 208.31 GB
PE Size 64.00 MB
Total PE 3333
Alloc PE / Size 3333 / 208.31 GB
Free PE / Size 0 / 0
VG UUID C8kSGQ-rAw1-GmUi-7oKx-zatX-8D1A-bYuK35

--- Logical volume ---
LV Name /dev/VGforMyth/video
VG Name VGforMyth
LV UUID q6mYAL-6r5u-92bK-xeIc-qttc-Zmxk-00e0rS LV Write Access read/write
LV Status available

# open 0
LV Size 208.31 GB
Current LE 3333
Segments 3
Allocation inherit
Read ahead sectors 0
Block device 253:0

--- Physical volumes ---
PV Name /dev/hda4
PV UUID 9VmJ6M-UxhP-7LRF-SAOE-ix3l-pSWe-a2ueRL PV Status allocatable
Total PE / Free PE 950 / 0

PV Name /dev/hdb1
PV UUID tCKbgt-nBvc-r8FS-OxEd-u9XW-NiOA-00q0BI PV Status allocatable
Total PE / Free PE 1192 / 0

PV Name /dev/hdd1
PV UUID KEBtSE-LKcc-l79g-2NSh-6VLQ-HKoG-l0zciX PV Status allocatable
Total PE / Free PE 1191 / 0
_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

author
#3 lore raw

you know what. i think that was the final step i just missed. funny because i was following the guide on the mythtv site. thanks for helping me out guys.

for those following along:
i unmounted the path, it had me run "sudo e2fsck -f /dev/VGforMyth/video" first, then i ran "sudo resize2fs -p /dev/VGforMyth/video", then remounted it to /home/nick/video

it now shows up as 194.4GB under the file browser, which i guess is right even though VGforMyth shows up as 208.31GB?

thanks again...