linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] ide / debian
@ 2005-05-10 17:32 Thomas Krichel
  2005-05-11 16:39 ` [linux-lvm] " Thomas Krichel
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Krichel @ 2005-05-10 17:32 UTC (permalink / raw)
  To: Linux LVM



  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:krichel@openlib.org
                                 http://openlib.org/home/krichel
                             RePEc:per:1965-06-05:thomas_krichel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [linux-lvm] Re: ide / debian
  2005-05-10 17:32 [linux-lvm] ide / debian Thomas Krichel
@ 2005-05-11 16:39 ` Thomas Krichel
  2005-05-11 16:49   ` AJ Lewis
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Krichel @ 2005-05-11 16:39 UTC (permalink / raw)
  To: Linux LVM

  Thomas Krichel writes

> 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:krichel@openlib.org
                                 http://openlib.org/home/krichel
                             RePEc:per:1965-06-05:thomas_krichel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] Re: ide / debian
  2005-05-11 16:39 ` [linux-lvm] " Thomas Krichel
@ 2005-05-11 16:49   ` AJ Lewis
  2005-05-11 17:16     ` Thomas Krichel
  0 siblings, 1 reply; 4+ messages in thread
From: AJ Lewis @ 2005-05-11 16:49 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 915 bytes --]

On Wed, May 11, 2005 at 11:39:57AM -0500, Thomas Krichel wrote:
>   Thomas Krichel writes
> 
> > 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.
 
-- 
AJ Lewis                                   Voice:  612-638-0500
Red Hat Inc.                               E-Mail: alewis@redhat.com
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...


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] Re: ide / debian
  2005-05-11 16:49   ` AJ Lewis
@ 2005-05-11 17:16     ` Thomas Krichel
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Krichel @ 2005-05-11 17:16 UTC (permalink / raw)
  To: LVM general discussion and development

  AJ Lewis writes

> 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:krichel@openlib.org
                                 http://openlib.org/home/krichel
                             RePEc:per:1965-06-05:thomas_krichel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-05-11 17:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-10 17:32 [linux-lvm] ide / debian Thomas Krichel
2005-05-11 16:39 ` [linux-lvm] " Thomas Krichel
2005-05-11 16:49   ` AJ Lewis
2005-05-11 17:16     ` Thomas Krichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).