Re: pvcreate to raid1 fails

2010-03-14 Thread Jerry Feldman
I just want to add the response to my bugzilla submission. Note that there is an LVM2 as well as kernel issue. Both are fixed, but neither is in the latest Fedora 12 updates. When I have some time I will install LVM2 2.02.62 either by building from source or binary install from the repo. I may

Re: pvcreate to raid1 fails

2010-03-07 Thread Jerry Feldman
On 03/06/2010 06:55 PM, Benjamin Scott wrote: > On Sat, Mar 6, 2010 at 2:15 PM, Jerry Feldman wrote: > >> First I booted into Knoppix 6.2.1, started raid1, pvcreate failed, >> stopped mdadm and did a pvcreate on /dev/sdc2. >> Booted back into Fedora, and I have successfully done a vgextend to

Re: pvcreate to raid1 fails

2010-03-06 Thread Benjamin Scott
On Sat, Mar 6, 2010 at 2:15 PM, Jerry Feldman wrote: > First I booted into Knoppix 6.2.1, started raid1, pvcreate failed, > stopped mdadm and did a pvcreate on /dev/sdc2. > Booted back into Fedora, and I have successfully done a vgextend to > /dev/md1 ... Ummm... I'm not sure, but I think that

Re: pvcreate to raid1 fails

2010-03-06 Thread Jerry Feldman
I've finally done a successful pvcreate. First I booted into Knoppix 6.2.1, started raid1, pvcreate failed, stopped mdadm and did a pvcreate on /dev/sdc2. Booted back into Fedora, and I have successfully done a vgextend to /dev/md1, and am now moving the extents over. Once I have everything moved,

Re: pvcreate to raid1 fails

2010-03-04 Thread Jerry Feldman
On 03/04/2010 06:09 PM, Benjamin Scott wrote: > Wow. That's an expensive cat. :-( > > True -- Jerry Feldman Boston Linux and Unix PGP key id: 537C5846 PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB CA3B 4607 4319 537C 5846 signature.asc Description: OpenPGP digital signature ___

Re: pvcreate to raid1 fails

2010-03-04 Thread Benjamin Scott
On Thu, Mar 4, 2010 at 2:34 PM, Jerry Feldman wrote: > I'm wondering if I can boot from a live cd and do that step > from something like gparted or Knoppix. Oh, that's a good point! pvcreate doesn't do anything in the LVM database or Volume Group; it essentially just does some sanity checks and

Re: pvcreate to raid1 fails

2010-03-04 Thread Jerry Feldman
On 03/04/2010 11:23 AM, Benjamin Scott wrote: > On Thu, Mar 4, 2010 at 7:34 AM, Jerry Feldman wrote: > >> On 03/03/2010 09:53 PM, Benjamin Scott wrote: >> >>> md1 (currently only on sdc2) is bigger than sda2. You will not be >>> able to mirror md1 back on to sda2 without repartitioning

Re: pvcreate to raid1 fails

2010-03-04 Thread Benjamin Scott
On Thu, Mar 4, 2010 at 7:34 AM, Jerry Feldman wrote: > On 03/03/2010 09:53 PM, Benjamin Scott wrote: >>   md1 (currently only on sdc2) is bigger than sda2.  You will not be >> able to mirror md1 back on to sda2 without repartitioning sda, which >> will mean removing sda1 from md0. >> > That is int

Re: pvcreate to raid1 fails

2010-03-04 Thread Jerry Feldman
On 03/04/2010 09:50 AM, Tom Buskey wrote: > > > FWIW, BSD (& Solaris) also uses cylinder boundries. 8 slices per disk > (0-7). Slice 2 is the full disk cylinders 0-N and shouldn't be used > for anything. Overlapping cylinders will lead to data loss eventually > and newer versions of Solaris prev

Re: pvcreate to raid1 fails

2010-03-04 Thread Tom Buskey
On Wed, Mar 3, 2010 at 9:53 PM, Benjamin Scott wrote: > On Wed, Mar 3, 2010 at 9:23 AM, Jerry Feldman wrote: > > I am running Fedora 12 with kernel 2.6.31.12-174.2.3.fc12.x86_64 > > LVM is lvm2-2.02.53-2.fc12.x86_64 > > Does Fedora have an updates for the kernel or LVM (or device mapper, > etc

Re: pvcreate to raid1 fails

2010-03-04 Thread Jerry Feldman
On 03/03/2010 09:53 PM, Benjamin Scott wrote: > Neat. Whoever wrote that code split the error message across > multiple adjacent C literal strings. Sometimes I wonder if > programmers are deliberately making our lives harder. > You should have seen how we did it in lint on Tru64. Part of it u

Re: pvcreate to raid1 fails

2010-03-04 Thread Jerry Feldman
On 03/03/2010 09:53 PM, Benjamin Scott wrote: > Your two disks (eventually to be mirrored) are identical in size, > but the partition tables are different. That is okay, but it may > confuse people and/or software. For example: > > md1 (currently only on sdc2) is bigger than sda2. You will no

Re: pvcreate to raid1 fails

2010-03-03 Thread Benjamin Scott
On Wed, Mar 3, 2010 at 9:23 AM, Jerry Feldman wrote: > I am running Fedora 12 with kernel 2.6.31.12-174.2.3.fc12.x86_64 > LVM is lvm2-2.02.53-2.fc12.x86_64 Does Fedora have an updates for the kernel or LVM (or device mapper, etc.) to install? > I've posted the details at: http://pastebin.com/4

Re: pvcreate to raid1 fails

2010-03-03 Thread Jerry Feldman
On 03/03/2010 12:59 AM, Benjamin Scott wrote: > On Tue, Mar 2, 2010 at 7:51 AM, Jerry Feldman wrote: > >> The difference between the way I did it an your suggestion is I had >> missing before the /dev/sdc2. >> > I'm pretty sure that doesn't matter. > > Going back to the OP: > > On Mon,

Re: pvcreate to raid1 fails

2010-03-03 Thread Jerry Feldman
Sure, I'll paste a full dump later on - not to the listserv. I am running Fedora 12 with kernel 2.6.31.12-174.2.3.fc12.x86_64 Processor is an AMD Opteron Quad Core. 6GB memory. LVM is lvm2-2.02.53-2.fc12.x86_64 The error message was copied and pasted: [...@gaf ~]$ sudo pvcreate /dev/md1 /dev/md1:

Re: pvcreate to raid1 fails

2010-03-02 Thread Benjamin Scott
On Tue, Mar 2, 2010 at 7:51 AM, Jerry Feldman wrote: > The difference between the way I did it an your suggestion is I had > missing before the /dev/sdc2. I'm pretty sure that doesn't matter. Going back to the OP: On Mon, Mar 1, 2010 at 5:48 PM, Jerry Feldman wrote: > [r...@gaf gaf]# pvcre

Re: pvcreate to raid1 fails

2010-03-02 Thread Jerry Feldman
On 03/01/2010 07:41 PM, Benjamin Scott wrote: > On Mon, Mar 1, 2010 at 5:48 PM, Jerry Feldman wrote: > >> pe_align (128 sectors) must not be less than pe_align_offset >> (36028797018963967 sectors) >> > By my calculations, the second number of sectors works out to 16 > million terabytes,

Re: pvcreate to raid1 fails

2010-03-01 Thread Benjamin Scott
On Mon, Mar 1, 2010 at 5:48 PM, Jerry Feldman wrote: > pe_align (128 sectors) must not be less than pe_align_offset > (36028797018963967 sectors) By my calculations, the second number of sectors works out to 16 million terabytes, which makes me suspect the diagnostic itself is broken, or being

pvcreate to raid1 fails

2010-03-01 Thread Jerry Feldman
I am migrating my system to a raid 1. Given: Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x0003a96c Device Boot Start End Blocks Id System /dev/sdc1