[linux-lvm] Strange behavior adding LUN
Stuart Browne
stuart.browne at ausregistry.com.au
Mon Feb 20 22:47:36 UTC 2012
Huh, nice to know I missed such an obvious step.
Cheers ;)
Stuart
> -----Original Message-----
> From: linux-lvm-bounces at redhat.com [mailto:linux-lvm-bounces at redhat.com]
> On Behalf Of Ray Morris
> Sent: Tuesday, 21 February 2012 7:41 AM
> To: linux-lvm at redhat.com
> Subject: Re: [linux-lvm] Strange behavior adding LUN
>
> > So, weird. Why is the 'pvcreate' seeing the new LUN, seeing that it
> > is 2.93TB, but not creating any PE's for use.
>
> You need to vgextend. The PE size is a property of the VG, so until
> it's added to a VG there's no way of knowing how big the PEs are and
> therefore how many will fit on the PV.
> --
> Ray Morris
> support at bettercgi.com
>
> Strongbox - The next generation in site security:
> http://www.bettercgi.com/strongbox/
>
> Throttlebox - Intelligent Bandwidth Control
> http://www.bettercgi.com/throttlebox/
>
> Strongbox / Throttlebox affiliate program:
> http://www.bettercgi.com/affiliates/user/register.php
>
>
>
>
> On Mon, 20 Feb 2012 10:26:05 +1100
> Stuart Browne <stuart.browne at ausregistry.com.au> wrote:
>
> > Hi,
> >
> > We've been cleaning up some of our storage recently and migrating to
> > new disks etc. when I came across this issue.
> >
> > I've re-allocated some old storage back to a server as a new array,
> > but lvm is refusing to allow the LUN to participate. Here's what I
> > see:
> >
> > [root at office ~]# pvcreate /dev/mpath/backup1
> > Physical volume "/dev/mpath/backup1" successfully created
> > [root at office ~]# pvdisplay /dev/mpath/backup1
> > "/dev/mpath/backup1" is a new physical volume of "2.93 TB"
> > --- NEW Physical volume ---
> > PV Name /dev/mpath/backup1
> > VG Name
> > PV Size 2.93 TB
> > Allocatable NO
> > PE Size (KByte) 0
> > Total PE 0
> > Free PE 0
> > Allocated PE 0
> > PV UUID ipTgcI-kjdJ-Aucx-cUVs-TWKr-wAFO-Rkd0u8
> >
<snip>
> >
> > Given that it looks, well, 'ok' to me, I thought I'd 'pvremove' it
> > and validate that the disk is empty. It was (^@'s all the way, for
> > the first 10MB at least), and re-add it. New UUID, but basically the
> > same.
> >
> > So, weird. Why is the 'pvcreate' seeing the new LUN, seeing that it
> > is 2.93TB, but not creating any PE's for use.
> >
> > Anybody have any idea what I should try next?
> >
> > Stuart J. Browne
> > Senior Unix Administrator, Network Administrator, Database
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
More information about the linux-lvm
mailing list