Skip to contentSkip to conversation

ide / debian

linux-lvm Thomas Krichel 2 participants 4 messages May 10, 2005 – May 11, 2005

lore
Share & tools
lore
#0 lore raw

I want to combine hdb hdc and hdd to one logical volume. Each is 80G. All had a single partition. I have a 2.6.8 kernel. I run the latest Debian testing version of lvm2.

The first attempt only got me only 149G for the vg. So I followed the route suggested in the howto to delete the partition tables on every disk and use the devices. This give me a 220G vg. But there were some error messages about not opening /dev/hdb1 etc, which I ignored. I create an lv to fill the volume group and make an ext2 file system on it.

After the first reboot, the lv was not found. Inconsistent metaadata was reported, which I fixed with the suggested syntax, then tried to create the vg again, but got a much smaller size.

I want to start from scratch for the third time.

fafner:~# vgremove /dev/vg1
  Volume group "vg1" not found or inconsistent.
  Consider vgreduce --removemissing if metadata is inconsistent.
fafner:~# vgreduce --removemissing vg1
  Volume group "vg1" not found
fafner:~# vgscan 
  Reading all physical volumes.  This may take a while...
fafner:~# vgcreate vg1 /dev/hdb /dev/hdc /dev/hdd
  /dev/vg1: already exists in filesystem

My general impression is that maybe with ide or Debian, this technology is not quite mature. If anyone wants to check out this problem, I will be happy to allow access to the machine.

Cheers,

Thomas Krichel mailto:[email protected]

                                 http://openlib.org/home/krichel
                             RePEc:per:1965-06-05:thomas_krichel
#1 lore raw

Thomas Krichel writes

Quoted 3 lines

I want to combine hdb hdc and hdd to one logical volume. Each is 80G. All had a single partition. I have a 2.6.8 kernel. I run the latest Debian testing version of lvm2.

I played on and found:

* OS sees all three disks
* I can pvcreate all disks
* pvscan does not find hdc

In command language, starting from scratch

fafner:~# pvscan
  No matching physical volumes found
fafner:~# pvdisplay
fafner:~# fdisk -l /dev/hdb

Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/hdb doesn't contain a valid partition table

fafner:~# fdisk -l /dev/hdc

Disk /dev/hdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/hdc doesn't contain a valid partition table

fafner:~# fdisk -l /dev/hdd

Disk /dev/hdd: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders Units = cylinders of 1008 * 512 = 516096 bytes

Disk /dev/hdd doesn't contain a valid partition table

fafner:~# pvcreate /dev/hdb ; pvcreate /dev/hdc ; pvcreate /dev/hdd  ;
  Physical volume "/dev/hdb" successfully created
  Physical volume "/dev/hdc" successfully created
  Physical volume "/dev/hdd" successfully created
fafner:~# pvdisplay
  --- NEW Physical volume ---
  PV Name               /dev/hdc
  VG Name
  PV Size               74.53 GB
  Allocatable           NO
  PE Size (KByte)       0
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               E725Ui-iBDc-r5uf-6vKi-L4Yw-9yzV-aJ2blr

--- NEW Physical volume ---
PV Name /dev/hdb
VG Name

  PV Size               74.53 GB
  Allocatable           NO
  PE Size (KByte)       0
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               TAfTgW-0In0-TZzF-mZoy-RsG5-v0DS-IHBvu1

--- NEW Physical volume ---
PV Name /dev/hdd
VG Name

  PV Size               74.53 GB
  Allocatable           NO
  PE Size (KByte)       0
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               mecykK-bBKE-0wCP-W7jZ-b0g2-O697-xW4zPS
fafner:~# pvscan
  PV /dev/hdb         lvm2 [74.53 GB]
  PV /dev/hdd         lvm2 [74.53 GB]
  Total: 2 [149.06 GB] / in use: 0 [0   ] / in no VG: 2 [149.06 GB]
fafner:~# vgcreate vg1 /dev/hdb /dev/hdc /dev/hdd
  Volume group "vg1" successfully created
fafner:~# vgscan
  Reading all physical volumes.  This may take a while...
  Couldn't find device with uuid 'E725Ui-iBDc-r5uf-6vKi-L4Yw-9yzV-aJ2blr'.
  Couldn't find all physical volumes for volume group vg1.
  Couldn't find device with uuid 'E725Ui-iBDc-r5uf-6vKi-L4Yw-9yzV-aJ2blr'.
  Couldn't find all physical volumes for volume group vg1.
  Volume group "vg1" not found

Any advice would be much welcome!

Cheers,

Thomas Krichel mailto:[email protected]

                                 http://openlib.org/home/krichel
                             RePEc:per:1965-06-05:thomas_krichel
#2 lore raw
Quoted 11 lines · Thomas Krichel

Thomas Krichel writes

Quoted 3 lines

I want to combine hdb hdc and hdd to one logical volume. Each is 80G. All had a single partition. I have a 2.6.8 kernel. I run the latest Debian testing version of lvm2.

I played on and found:

* OS sees all three disks
* I can pvcreate all disks
* pvscan does not find hdc

Look in /etc/lvm/lvm.conf for a filter line - it probably has hdc or cdrom in it. You need to remove this.

Signature · 8 lines
AJ Lewis                                   Voice:  612-638-0500
Red Hat Inc.                               E-Mail: [email protected]
720 Washington Ave. SE, Suite 200
Minneapolis, MN 55414
   
Current GPG fingerprint = D9F8 EDCE 4242 855F A03D  9B63 F50C 54A8 578C 8715
Grab the key at: http://people.redhat.com/alewis/gpg.html or one of the
many keyservers out there...
#3 lore raw

AJ Lewis writes

Quoted 2 lines

Look in /etc/lvm/lvm.conf for a filter line - it probably has hdc or cdrom in it. You need to remove this.

fafner:~# grep hdc /etc/lvm/lvm.conf
    # Or maybe all loops and ide drives except hdc:
    # filter =[ "a|loop|", "r|/dev/hdc|", "a|/dev/ide|", "r|.*|" ]
fafner:~# grep cdrom /etc/lvm/lvm.conf
    # Exclude the cdrom drive
    filter = [ "r|/dev/cdrom|" ]
fafner:~# ls -l /dev/cdrom
lrwxrwxrwx  1 root root 8 2005-05-08 21:27 /dev/cdrom -> /dev/hdc

This is likely to be the cause of the problem! Thank you so much!

Cheers,

Thomas Krichel mailto:[email protected]

                                 http://openlib.org/home/krichel
                             RePEc:per:1965-06-05:thomas_krichel