Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] Resizing a volume group
@ 2005-01-07  6:01 Dean Takemori
  2005-01-12  8:53 ` Sam Vilain
  0 siblings, 1 reply; 2+ messages in thread
From: Dean Takemori @ 2005-01-07  6:01 UTC (permalink / raw)
  To: linux-lvm

Hello,

I'm running a Fedora Core 1 box using LVM on RAID (lvm-1.0.3-13)  I 
moved
from a pair of RAID1 hard drives to a larger pair of drives by 
strategically
failing and replacing the drives.

This has left me with the following situation : Volume group lv0 (26GB) 
resides
on /dev/md1, which are a pair of 250GB partitions.  But the lvm tools 
only see
/dev/md1 as being 26GB (which is what it was on the old hard drives).  
(Oddly,
vgdisplay does note that the maximum lv size is 250GB).

Is it possible to resize the pv and lv so that they use up the full 
space of
the partition?


~ > pvdisplay /dev/md1
--- Physical volume ---
PV Name               /dev/md1
VG Name               lv0
PV Size               26.44 GB [55453952 secs] / NOT usable 4.19 MB 
[LVM: 154 KB]
PV#                   1
PV Status             available
Allocatable           yes (but full)
Cur LV                7
PE Size (KByte)       4096
Total PE              6768
Free PE               0
Allocated PE          6768
PV UUID               nrQNYO-Iva3-UP0M-64U5-M2L9-YT7o-tRhTBV

~ > vgdisplay lv0
--- Volume group ---
VG Name               lv0
VG Access             read/write
VG Status             available/resizable
VG #                  0
MAX LV                256
Cur LV                7
Open LV               7
MAX LV Size           255.99 GB
Max PV                256
Cur PV                1
Act PV                1
VG Size               26.44 GB
PE Size               4 MB
Total PE              6768
Alloc PE / Size       6768 / 26.44 GB
Free  PE / Size       0 / 0
VG UUID               OLmdue-W62m-fr8z-Eo4N-gS0A-4Tfm-E9wuM4


-dean takemori

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

* Re: [linux-lvm] Resizing a volume group
  2005-01-07  6:01 [linux-lvm] Resizing a volume group Dean Takemori
@ 2005-01-12  8:53 ` Sam Vilain
  0 siblings, 0 replies; 2+ messages in thread
From: Sam Vilain @ 2005-01-12  8:53 UTC (permalink / raw)
  To: deant; +Cc: LVM general discussion and development

Dean Takemori wrote:
> I'm running a Fedora Core 1 box using LVM on RAID (lvm-1.0.3-13)  I moved
> from a pair of RAID1 hard drives to a larger pair of drives by 
> strategically
> failing and replacing the drives. 
> This has left me with the following situation : Volume group lv0 (26GB) 
> resides
> on /dev/md1, which are a pair of 250GB partitions.  But the lvm tools 
> only see
> /dev/md1 as being 26GB (which is what it was on the old hard drives).  
> (Oddly,
> vgdisplay does note that the maximum lv size is 250GB).
> 
> Is it possible to resize the pv and lv so that they use up the full 
> space of
> the partition?

so, blockdev -s /dev/md1 shows 26 or 250GB ?

I'm struggling to see how you would have changed the size of a block
device with "strategically failing and replacing" drives.

> ~ > pvdisplay /dev/md1
> PV Size               26.44 GB [55453952 secs] / NOT usable 4.19 MB 

If /dev/md1 really is 250GB then you might have some surgical disk 
partitioning to do.  ie, get it back to the size it was, then add the
rest of the disk as another /dev/md PV.

Sam.

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

end of thread, other threads:[~2005-01-12  8:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-07  6:01 [linux-lvm] Resizing a volume group Dean Takemori
2005-01-12  8:53 ` Sam Vilain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox