Skip to contentSkip to conversation

Problem with lvm2 and softwareraid

linux-lvm Johannes Ullmann 2 participants 2 messages Oct 28, 2005

lore
Share & tools
lore
#0 lore raw

Hello!

I'm building a backup to disk system and i have strange problem with lvm on top of 2 software raid 5 devices.
Each SW Raid-5 has 7x400GB HDDs (=2,4TB). On top of these two SW Raid devices I created one big LV with 4,8TB.
I use Reiserfs as filesystem. I worked fine while the disk usage was below 1,5TB, above that, the Filesystem was destroyed. I tried the same with ext3 and had the same results. So I't not the Filesystem. I also checked the Softwareraid and the LV for any Problems but i haven't found anything. After reading many Mails/howtos/man-pages I quess that LVM can't handle PV's which are larger than 2TB is this correct?
I haven't found anything in the documentation about the maximum PV size.

thanks for any help.

My setup looks like this:
Debian testing 2.6.12-1-686-smp
lvm2 2.01.04-5
mdadm 1.12.0-1

14x400GB SATA Hdds on two 3-Ware controllers.
mdadm --create /dev/md0 --chunk=64 --level=raid5 --raid-devices=7 /dev/sd[bcdefgh]1 mdadm --create /dev/md1 --chunk=64 --level=raid5 --raid-devices=7 /dev/sd[ijklmno]1

pvcreate /dev/md0 (Softwareraid controller1)
pvcreate /dev/md1 (Softwareraid controller2)
vgcreate vg0 --physicalextentsize 16M /dev/md0 /dev/md1 lvcreate --stripes 2 --stripesize 64 -l <extends> --name backup vg0

I get this Filesystem errors:

Oct 21 15:30:02 backup1 kernel: ReiserFS: warning: is_tree_node: node level 42225 does not match to the expected one 2
Oct 21 15:30:02 backup1 kernel: ReiserFS: dm-0: warning: vs-5150: search_by_key: invalid format found in block 73668. Fsck?
Oct 21 15:30:02 backup1 kernel: ReiserFS: dm-0: warning: zam-7001: io error in reiserfs_find_entry
Signature · 10 lines
Johannes Ullmann
IT-Services

EVVA-Werk Gesellschaft m.b.H. & Co. KG
Wienerbergstra�e 59-65
A-1120 Wien
Tel.: +43-1-811 65 / 505
Fax: +43-1-811 65 / 16
e-mail: [email protected]
homepage: http://www.evva.com
#1 lore raw

Quoting Johannes Ullmann <[email protected]>:

Quoted 14 lines

Hello!

I'm building a backup to disk system and i have strange problem with lvm on top of 2 software raid 5 devices.
Each SW Raid-5 has 7x400GB HDDs (=2,4TB). On top of these two SW Raid devices I created one big LV with 4,8TB.
I use Reiserfs as filesystem. I worked fine while the disk usage was below 1,5TB, above that, the Filesystem was destroyed. I tried the same with ext3 and had the same results. So I't not the Filesystem. I also checked the Softwareraid and the LV for any Problems but i haven't found anything.
After reading many Mails/howtos/man-pages I quess that LVM can't handle PV's which are larger than 2TB is this correct?
I haven't found anything in the documentation about the maximum PV size.

Yes and No. There was a max pv size. If you use metadata format for version 1 it has a hard limit of 2 TiB for a pv size. Using metadata format version 2 it is an unsigned long int so the max pv size is 4 exabytes in length. If you feel that the pv size is holding you back you can force metadata version 2 when you execute pvcreate (e.g. pvcreate -M1 for metadata version 1 or pvcreate -M2 for metadata version 2).

Quoted 1 line

thanks for any help.

I hope that helps. I can't imagine it actually being in reiser so I'd try recreating the pvs.

Zac Slade
[email protected]

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/