Re: raid10 and lvm problem on new lenny install

2011-03-20 Thread Jim Green
On 20 March 2011 04:09, Jonathan Matthews  wrote:
> On 20 March 2011 02:24, Jim Green  wrote:
>> http://www.gagme.com/greg/linux/raid-lvm.php
>
> That looks like an LVM1 article.
>
> Here's a readable one about LVM2:
> http://www.ibm.com/developerworks/library/l-lvm2/
>
> "With LVM2, there's no limit on the maximum numbers of extents per PV/LV."

Thanks!

>
> Jonathan
> --
> Jonathan Matthews
> London, UK
> http://www.jpluscplusm.com/contact.html
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> Archive: 
> http://lists.debian.org/AANLkTi=K0fDpyWeEjzGT=8iflk__ro9fko_vwa_nz...@mail.gmail.com
>
>


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/AANLkTim4yP=x8ndgcacb_yff2nhqdtdguplrwuj+0...@mail.gmail.com



Re: raid10 and lvm problem on new lenny install

2011-03-20 Thread Jonathan Matthews
On 20 March 2011 02:24, Jim Green  wrote:
> http://www.gagme.com/greg/linux/raid-lvm.php

That looks like an LVM1 article.

Here's a readable one about LVM2:
http://www.ibm.com/developerworks/library/l-lvm2/

"With LVM2, there's no limit on the maximum numbers of extents per PV/LV."

Jonathan
-- 
Jonathan Matthews
London, UK
http://www.jpluscplusm.com/contact.html


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/AANLkTi=K0fDpyWeEjzGT=8iflk__ro9fko_vwa_nz...@mail.gmail.com



Re: raid10 and lvm problem on new lenny install

2011-03-19 Thread Jim Green
Thank you for the excellent explanation!


http://www.gagme.com/greg/linux/raid-lvm.php
from this link I read

"The maximum number of physical extents is approximately 65k so take
your maximum volume size and divide it by 65k then round it to the
next nice round number. "

looks like I already have

 Total PE  953799

this is bigger than 65k,

does anyone know the current maximum number PE in debian lenny?

Jim

On 19 March 2011 22:15, Gregory Seidman
 wrote:
> On Sat, Mar 19, 2011 at 10:02:24PM -0400, Jim Green wrote:
>> this is what I have from fdisk -l, I have lvm on /dev/md1, md1 is a
>> raid10 array with 4x2T drives.
>> Disk /dev/md1: 4000.5 GB, 4000525058048 bytes
>> 2 heads, 4 sectors/track, 976690688 cylinders
>> Units = cylinders of 8 * 512 = 4096 bytes
>> Sector size (logical/physical): 512 bytes / 512 bytes
>> I/O size (minimum/optimal): 524288 bytes / 2097152 bytes
>> Disk identifier: 0x
>
> Note that 4000525058048 != 4 x 2^40 (4398046511104)
>
>> this is what I have from pvdisplay
>>   --- Physical volume ---
>>   PV Name               /dev/md1
>>   VG Name               2600k
>>   PV Size               3.64 TiB / not usable 0
>>   Allocatable           yes
>>   PE Size               4.00 MiB
>>   Total PE              953799
>>   Free PE               831052
>>   Allocated PE          122747
>>   PV UUID               WUpkTR-xyCK-HGOc-Hk7Q-OfBp-Mqsz-GubCy7
>
> 2^40 = 1099511627776
>
> 4000525058048 / 1099511627776 = 3.6384563446044921875 ~= 3.64
>
>> I don't know why I only have a 3.64T pv size, it should be 4T I think,
>> in the installation of lenny i use ext3 for all the partitions,
>> also I set the unused space for each partition as 1%.
>>
>> Thank you if you  have an explanation or if you have ways to reclaim
>> the 0.36 T from my arrays.
>
> The difference is between what vendors use to describe their drives (TB,
> meaning trillions of bytes) and what sane computer systems use (TiB,
> meaning 2^40 bytes).
>
>> Jim
> --Greg
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> Archive: http://lists.debian.org/20110320021554.ga29...@anthropohedron.net
>
>


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/AANLkTinQ=5oZdBVrc0X48ojS8KmsFTEgGgCcxsUQ69=t...@mail.gmail.com



Re: raid10 and lvm problem on new lenny install

2011-03-19 Thread Gregory Seidman
On Sat, Mar 19, 2011 at 10:02:24PM -0400, Jim Green wrote:
> this is what I have from fdisk -l, I have lvm on /dev/md1, md1 is a
> raid10 array with 4x2T drives.
> Disk /dev/md1: 4000.5 GB, 4000525058048 bytes
> 2 heads, 4 sectors/track, 976690688 cylinders
> Units = cylinders of 8 * 512 = 4096 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 524288 bytes / 2097152 bytes
> Disk identifier: 0x

Note that 4000525058048 != 4 x 2^40 (4398046511104)

> this is what I have from pvdisplay
>   --- Physical volume ---
>   PV Name   /dev/md1
>   VG Name   2600k
>   PV Size   3.64 TiB / not usable 0
>   Allocatable   yes
>   PE Size   4.00 MiB
>   Total PE  953799
>   Free PE   831052
>   Allocated PE  122747
>   PV UUID   WUpkTR-xyCK-HGOc-Hk7Q-OfBp-Mqsz-GubCy7

2^40 = 1099511627776

4000525058048 / 1099511627776 = 3.6384563446044921875 ~= 3.64

> I don't know why I only have a 3.64T pv size, it should be 4T I think,
> in the installation of lenny i use ext3 for all the partitions,
> also I set the unused space for each partition as 1%.
> 
> Thank you if you  have an explanation or if you have ways to reclaim
> the 0.36 T from my arrays.

The difference is between what vendors use to describe their drives (TB,
meaning trillions of bytes) and what sane computer systems use (TiB,
meaning 2^40 bytes).

> Jim
--Greg


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110320021554.ga29...@anthropohedron.net