Compaq diskarray problems
Hi,
I can't pvcreate LUN's on a Compaq raid controller. This LUN is 10 Gb. I've compiled 8.0final.
(I had to comment #include "gnu/types.h" out in liblvm.h).
Greateful for any help.
Regards
J�rgen
Compaq Proliant DL380 with 3 striped disks and 5 LUNs' Redhat 7 with 2.4.0-0.26
----------------------------------------------------------------
# cat /proc/lvm LVM driver version 0.8final (15/02/2000)
Total: 0 VGs 0 PVs 0 LVs (0 LVs open) Global: 143 bytes malloced IOP version: 6 5:20:33 active
-------------------------------------------------------------
# fdisk /dev/ida/c0d1 Command (m for help): p Disk /dev/ida/c0d1: 255 heads, 32 sectors, 2510 cylinders Units = cylinders of 8160 * 512 bytes
Device Boot Start End Blocks Id System
Command (m for help): q
# pvcreate /dev/ida/c0d1 pvcreate -- invalid partition type 0x83 for "/dev/ida/c0d1" (must be 0x8e) --------------------------------------------------------------
I've now added a partition with type LVM
# fdisk /dev/ida/c0d1
Command (m for help): p
Disk /dev/ida/c0d1: 255 heads, 32 sectors, 2510 cylinders
Units = cylinders of 8160 * 512 bytes
Device Boot Start End Blocks Id System
/dev/ida/c0d1p1 1 2510 10240784 8e Linux LVM
Command (m for help): q
# pvcreate /dev/ida/c0d1p
pvcreate -- invalid partition type 0x83 for "/dev/ida/c0d1p1" (must be
0x8e)
--------------------------------------------------------------output from dmesg
cpqarray: Device 1000 has been found at 0 8 Compaq SMART2 Driver (v 2.4.0)
Found 1 controller(s)
cpqarray: Finding drives on ida0 (Integrated Array) cpqarray ida/c0d0: blksz=512 nr_blks=20481600 cpqarray ida/c0d1: blksz=512 nr_blks=20481600 cpqarray ida/c0d2: blksz=512 nr_blks=20481600 cpqarray ida/c0d3: blksz=512 nr_blks=20481600 cpqarray ida/c0d4: blksz=512 nr_blks=24732960
cpqarray: Starting firmware's background processing Partition check:
ida/c0d0: p1 p2 < p5 p6 p7 p8 p9 p10 p11 p12 > ida/c0d1:
ida/c0d2:
ida/c0d3:
ida/c0d4:
---------------------------------------------------------------
A message that is not in the archive (sent off-list or not yet received): [email protected]
Justin
I did try that to begin with. Look further down my posting. Pvcreate complains on the partition type whatever i change it to. It always says it has 0x83.
J�rgen
Quoted 77 lines · Justin Hamilton
Within fdisk, you need to select option t (to change the type of the partition) and select 8e for the type.
Your pvcreate should work just fine after this.
Justin
Quoted 69 lines · J�rgen Winqvist
Hi,
I can't pvcreate LUN's on a Compaq raid controller. This LUN is 10 Gb. I've compiled 8.0final.
(I had to comment #include "gnu/types.h" out inliblvm.h).Greateful for any help.
Regards
J�rgen
Compaq Proliant DL380 with 3 striped disks and 5 LUNs' Redhat 7 with 2.4.0-0.26
----------------------------------------------------------------# cat /proc/lvm LVM driver version 0.8final (15/02/2000)Total: 0 VGs 0 PVs 0 LVs (0 LVs open) Global: 143 bytes malloced IOP version: 6 5:20:33 active-------------------------------------------------------------
# fdisk /dev/ida/c0d1 Command (m for help): p Disk /dev/ida/c0d1: 255 heads, 32 sectors, 2510 cylinders Units = cylinders of 8160 * 512 bytesDevice Boot Start End Blocks Id System
Command (m for help): q
# pvcreate /dev/ida/c0d1 pvcreate -- invalid partition type 0x83 for "/dev/ida/c0d1" (must be 0x8e) --------------------------------------------------------------I've now added a partition with type LVM
# fdisk /dev/ida/c0d1 Command (m for help): p Disk /dev/ida/c0d1: 255 heads, 32 sectors, 2510 cylinders Units = cylinders of 8160 * 512 bytes Device Boot Start End Blocks Id System /dev/ida/c0d1p1 1 2510 10240784 8e Linux LVM Command (m for help): q # pvcreate /dev/ida/c0d1p pvcreate -- invalid partition type 0x83 for "/dev/ida/c0d1p1" (must be 0x8e) --------------------------------------------------------------output from dmesg
cpqarray: Device 1000 has been found at 0 8 Compaq SMART2 Driver (v 2.4.0)
Found 1 controller(s)
cpqarray: Finding drives on ida0 (Integrated Array) cpqarray ida/c0d0: blksz=512 nr_blks=20481600 cpqarray ida/c0d1: blksz=512 nr_blks=20481600 cpqarray ida/c0d2: blksz=512 nr_blks=20481600 cpqarray ida/c0d3: blksz=512 nr_blks=20481600 cpqarray ida/c0d4: blksz=512 nr_blks=24732960
cpqarray: Starting firmware's background processing Partition check:
ida/c0d0: p1 p2 < p5 p6 p7 p8 p9 p10 p11 p12 > ida/c0d1:
ida/c0d2:
ida/c0d3:
ida/c0d4:
---------------------------------------------------------------
Jorgen Winqvist, you write:
Quoted 5 lines
I can't pvcreate LUN's on a Compaq raid controller. This LUN is 10 Gb. I've compiled 8.0final.
(I had to comment #include "gnu/types.h" out inliblvm.h).Greateful for any help.
Try the updated lvm tools (SRPM) at:
ftp://ftp.stelias.com/pub/adilger/
This includes a number of patches to the 0.8 final tools that were posted on this list, but are not in the "official" tools.
Cheers, Andreas
[linux-lvm] Thanks! and Swap on LVM?
Quoted 3 lines · Andreas Dilger
Try the updated lvm tools (SRPM) at:
ftp://ftp.stelias.com/pub/adilger/
Thank you!!! I usually stay away from SRPM's, but now that I've got alien, it's not so bad. 'alien --to-tgz' is a dream. A plus side to all of this, my pvscan no longer segfaults! ;-) Neither does my vgscan! ;-) I was actually going to sit down with gdb tonight and do some backtracing when I saw your update. Very nice to have a 1:00 in the morning. ;-) Again, thanks!
OH. I've noticed a problem as of late. While trying lvm on both the 2.4.0-test9 and 2.2.17, I have not been able to use an lv device as a swap device. The computer starts acting like it's got bad memory and segfaults during compile time, most notably during kernel compiles.
Has anyone successfully used a lv parition as a swap device???
{good thing I had an extra HD}
Signature · 2 lines
Chad "^chewie, gunnarr" Walstrom <[email protected]> http://wookimus.net/chewie
Re: [linux-lvm] Thanks! and Swap on LVM?
Quoted 7 lines · ^chewie
Quoted 3 lines · Andreas Dilger
Try the updated lvm tools (SRPM) at:
ftp://ftp.stelias.com/pub/adilger/
Thank you!!! I usually stay away from SRPM's, but now that I've got alien, it's not so bad. 'alien --to-tgz' is a dream. A plus side to
also dd | gzip -dc | cpio :)))))
....
Quoted 3 lines
Has anyone successfully used a lv parition as a swap device???
[pts/5]bluca@Moskowskaya:~% uname -a
Linux Moskowskaya 2.4.0-test8 #1 Sun Sep 10 09:48:24 CEST 2000 i586 unknown [pts/5]bluca@Moskowskaya:~% swapon -s
Filename Type Size Used Priority /dev/vg01/lvol2 partition 262136 29416 -1
L.
Signature · 2 lines
Luca Berra -- [email protected] Communication Media & Services S.r.l.