From: Urs Thuermann <urs@isnogud.escape.de>
To: linux-lvm@sistina.com
Subject: [linux-lvm] Problem with LVM over RAID-1
Date: 14 Oct 2001 11:01:10 +0200 [thread overview]
Message-ID: <m2u1x238a1.fsf@isnogud.escape.de> (raw)
This problem has occrued on this mailing list before by another user
but I haven't read a solution to it here.
We want to setup LVM over a RAID-1 array, i.e. LVM on /dev/md0. But
the pvcreate on /dev/md0 fails:
oker:~# uname -a
Linux oker 2.4.7oker #1 SMP Sat Oct 13 18:31:47 CEST 2001 i586 unknown
oker:~# dmesg|grep -i lvm
LVM version 0.9.1_beta2 by Heinz Mauelshagen (18/01/2001)
lvm -- Driver successfully initialized
oker:~# pvcreate --version
pvcreate: Logical Volume Manager 1.0.1-rc3
Heinz Mauelshagen, Sistina Software 01/10/2001 (IOP 10)
oker:~# grep md/0 /proc/partitions
9 0 17775808 md/0
oker:~# pvcreate -v /dev/md0
pvcreate -- locking logical volume manager
pvcreate -- checking physical volume name "/dev/md0"
pvcreate -- getting physical volume size
pvcreate -- device "/dev/md0" has a partition table
pvcreate [-d|--debug] [-f[f]|--force [--force]] [-h|--help] [-y|--yes]
[-v|--verbose] [--version] PhysicalVolume [PhysicalVolume...]
oker:~# dd if=/dev/zero of=/dev/md0 count=256 bs=512
256+0 records in
256+0 records out
oker:~# pvcreate -v /dev/md0
pvcreate -- locking logical volume manager
pvcreate -- checking physical volume name "/dev/md0"
pvcreate -- getting physical volume size
pvcreate -- device "/dev/md0" has a partition table
pvcreate [-d|--debug] [-f[f]|--force [--force]] [-h|--help] [-y|--yes]
[-v|--verbose] [--version] PhysicalVolume [PhysicalVolume...]
However, /dev/md0 seems to be ok. I can dd to/from it, I can mkfs on
it. The RAID-array is configured as
oker:~# cat /etc/raidtab
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1
device /dev/sdb3
raid-disk 0
device /dev/sda3
failed-disk 1
/dev/sda3 is marked as "failed" currently, since there is now an ext2
FS on sda3 on which the system was installed and is currently running
(debain sid, BTW). We plan to install LVM on /dev/md0, copy
everything over to it and then mirror sdb3 to sda3.
Can anyone help us with creating a PV on /dev/md0, please?
Another question on Linux-Software RAID-1: We want to use it to get
more reliability by mirroring. But I'd like to know if the Linux
kernel will also make use of both disks to increase the read
performance, i.e. when reading a large file, read some parts from one
disk, other parts from the other disk. Or when accessing two files,
read one file from one disk and the other file from the second disk.
Will the Linux kernel do this?
urs
next reply other threads:[~2001-10-14 9:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-14 9:01 Urs Thuermann [this message]
2001-10-14 9:26 ` [linux-lvm] Problem with LVM over RAID-1 svetljo
2001-10-14 16:18 ` José Luis Domingo López
2001-10-15 11:02 ` yves.alloyer
2001-10-15 12:08 ` Luca Berra
2001-10-15 12:51 ` yves.alloyer
2001-10-15 19:25 ` Urs Thuermann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2u1x238a1.fsf@isnogud.escape.de \
--to=urs@isnogud.escape.de \
--cc=linux-lvm@sistina.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox