linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* Re: [linux-lvm] Help: Mount point does not report full size of LV.
@ 2007-02-28 18:07 Nick Gyma
  2007-02-28 18:12 ` Bryn M. Reeves
  2007-02-28 18:43 ` Matt P
  0 siblings, 2 replies; 6+ messages in thread
From: Nick Gyma @ 2007-02-28 18:07 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1356 bytes --]

 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

[-- Attachment #2: Type: text/html, Size: 1658 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [linux-lvm] Help: Mount point does not report full size of LV.
@ 2007-02-28 16:10 Nick Gyma
  2007-02-28 16:34 ` Bryn M. Reeves
  0 siblings, 1 reply; 6+ messages in thread
From: Nick Gyma @ 2007-02-28 16:10 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1889 bytes --]

Hey all, linux n00b here runing ubuntu:

I added a 3rd hdd to my system today and tried to extend the logical volume
i currently had with the new added space. it was previously a windows NTFS
disk (formatted clean before transfer). after going through the steps it all
displays properly under "vgdisplay -v" but when i actually go and check the
mount point folder size it is still the same as before and has not increased
along w/ the volume group and logical volume.

I've tried to remove the hdd from the VG to try and redo it but i get errors
when trying to use "vgreduce" to remove the PV, saying "physical volume
"dev/hdd1" still in use", even after running a "pvmove" command which
resulted in "no extents avail for allocation".

Here's what I did wrong in setting it up, even though it displays correct:

I first ran fdisk on /dev/hdd1, the partition, instead of the whole disk
/dev/hdd (first mistake). I created a partition, sized it to take the full
space, changed it to 8e, which gave me /dev/hdd1p1. which i really didn't
want, but it happened anyway.

I then did a pvcreate /dev/hdd1, not hdd1p1, then did "vgextend VGforMyth
/dev/hdd1" then did "lvextend --size +79.3G /dev/VGforMyth/video"

Somewhere along the way i realized what i was doing wrong and went back and
fdisk'ed /dev/hdd to remove the two partitions (hdd1, hdd1p1) and create a
new correct partition /dev/hdd1 set to 8e and extending the entire disk.
Now, /dev/hdd1 was still part of the VG while "fixing" the issue. I'm
guessing doing all that screwed it up somewhere along the way.

Is there a way to fix the LV as it is so that the mount point
/home/nick/video is correct? or should i wipe it all out and start over? if
so, how do i go about doing that? do i delete all data on the LV then do a
vgremove then fdisk everything, deleting all partitions and start over?

Thanks in advance for your help!
-Nick

[-- Attachment #2: Type: text/html, Size: 2169 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-03-01  6:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-28 18:07 [linux-lvm] Help: Mount point does not report full size of LV Nick Gyma
2007-02-28 18:12 ` Bryn M. Reeves
2007-02-28 18:43 ` Matt P
2007-02-28 23:30   ` Nick Gyma
  -- strict thread matches above, loose matches on Subject: below --
2007-02-28 16:10 Nick Gyma
2007-02-28 16:34 ` Bryn M. Reeves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).