Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] lvm2 problems adding a new physical volume
@ 2004-07-18 14:44 Darrel Wages Jr.
  2004-07-19  3:42 ` Alasdair G Kergon
  0 siblings, 1 reply; 4+ messages in thread
From: Darrel Wages Jr. @ 2004-07-18 14:44 UTC (permalink / raw)
  To: linux-lvm

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

I have a vg darrel I wish to extend to a new disk.  I installed the new
disk and ran 
pvcreate /dev/hdd

it returns 
 No physical volume label read from /dev/hdd
 Physical volume "/dev/hdd" successfully created

pvscan returns 
  PV /dev/hdb    VG darrel   lvm2 [19.08 GB / 0    free]
  PV /dev/sda    VG darrel   lvm2 [8.48 GB / 0    free]
  PV /dev/hda2   VG darrel   lvm2 [26.33 GB / 0    free]
  PV /dev/hdd                lvm2 [115.04 GB]
  Total: 4 [168.93 GB] / in use: 3 [53.89 GB] / in no VG: 1 [115.04 GB]

I try to extend vg darrel with vgextend but it failed. So I ran
pvdisplay

it returns 

  --- Physical volume ---
  PV Name               /dev/hdb
  VG Name               darrel
  PV Size               19.08 GB / not usable 0
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              4885
  Free PE               0
  Allocated PE          4885
  PV UUID               qatt1G-G33A-vgrF-i6pV-MT6N-W91I-cTvJ7q
    
  --- Physical volume ---
  PV Name               /dev/sda
  VG Name               darrel
  PV Size               8.48 GB / not usable 0
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              2170
  Free PE               0
  Allocated PE          2170
  PV UUID               IP2WI7-ye5K-mDME-5z5u-R4v7-nYjB-08Nh1O
    
  --- Physical volume ---
  PV Name               /dev/hda2
  VG Name               darrel
  PV Size               26.33 GB / not usable 0
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              6740
  Free PE               0
  Allocated PE          6740
  PV UUID               1Z1XPp-SzFQ-osnY-HqU5-WGsh-JXjG-TXkDoP
    
  --- NEW Physical volume ---
  PV Name               /dev/hdd
  VG Name
  PV Size               115.04 GB
  Allocatable           NO
  PE Size (KByte)       0
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               k14iEH-C7W2-904v-DEh1-ANlT-rhD3-H3O0oP

So I try pvchange -v -x y /dev/hdd

    Using physical volume(s) on command line
  /dev/cdrom: open failed: Read-only file system
  Allocatability not supported by orphan lvm2 format PV /dev/hdd
  0 physical volumes changed / 1 physical volume not changed

I have searched the net and found nothing about this.  I have also tried
fdisk and added a lvm partition /dev/hdd1 with the same results.  I can
however make a linux partition on the disk and it works fine.  I have
used dd and blockdev as discribed in the howto to wipe the partition
table on the disk.  I am using FC2 with all the updates and latest
kernel.  This drive is a new IBM drive 120 G. 

Thank you.





[-- Attachment #2: Type: text/html, Size: 5807 bytes --]

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

* Re: [linux-lvm] lvm2 problems adding a new physical volume
  2004-07-18 14:44 [linux-lvm] lvm2 problems adding a new physical volume Darrel Wages Jr.
@ 2004-07-19  3:42 ` Alasdair G Kergon
  2004-07-19 12:00   ` Darrel Wages Jr.
  0 siblings, 1 reply; 4+ messages in thread
From: Alasdair G Kergon @ 2004-07-19  3:42 UTC (permalink / raw)
  To: LVM general discussion and development

On Sun, Jul 18, 2004 at 09:44:03AM -0500, Darrel Wages Jr. wrote:
> I try to extend vg darrel with vgextend but it failed. So I ran

How does it fail?  What error?

Alasdair

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

* Re: [linux-lvm] lvm2 problems adding a new physical volume
  2004-07-19  3:42 ` Alasdair G Kergon
@ 2004-07-19 12:00   ` Darrel Wages Jr.
  2004-07-19 13:55     ` Luca Berra
  0 siblings, 1 reply; 4+ messages in thread
From: Darrel Wages Jr. @ 2004-07-19 12:00 UTC (permalink / raw)
  To: LVM general discussion and development

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

On Mon, 2004-07-19 at 04:42 +0100, Alasdair G Kergon wrote:

> On Sun, Jul 18, 2004 at 09:44:03AM -0500, Darrel Wages Jr. wrote:
> > I try to extend vg darrel with vgextend but it failed. So I ran
> 
> How does it fail?  What error?
> 
> Alasdair


It doesn't really give me an error It just won't let me add the new
drive to any volume groups and pvdisplay 
always say that the new drive is not allocatable even after a pvchange -
x y /dev/hdd.
 --- NEW Physical volume ---
  PV Name               /dev/hdd
  VG Name
  PV Size               115.04 GB
  Allocatable           NO
  PE Size (KByte)       0
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               k14iEH-C7W2-904v-DEh1-ANlT-rhD3-H3O0oP



> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

-- 
Darrel Wages Jr. <dotcomdmc@centurytel.net>

[-- Attachment #2: Type: text/html, Size: 2484 bytes --]

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

* Re: [linux-lvm] lvm2 problems adding a new physical volume
  2004-07-19 12:00   ` Darrel Wages Jr.
@ 2004-07-19 13:55     ` Luca Berra
  0 siblings, 0 replies; 4+ messages in thread
From: Luca Berra @ 2004-07-19 13:55 UTC (permalink / raw)
  To: LVM general discussion and development

On Mon, Jul 19, 2004 at 07:00:57AM -0500, Darrel Wages Jr. wrote:
>On Mon, 2004-07-19 at 04:42 +0100, Alasdair G Kergon wrote:
>
>> On Sun, Jul 18, 2004 at 09:44:03AM -0500, Darrel Wages Jr. wrote:
>> > I try to extend vg darrel with vgextend but it failed. So I ran
>> 
>> How does it fail?  What error?
>> 
>> Alasdair
>
>
>It doesn't really give me an error It just won't let me add the new
>drive to any volume groups and pvdisplay 
>always say that the new drive is not allocatable even after a pvchange -
>x y /dev/hdd.
you should do vgextend /dev/your_vg_name /dev/hdd

L.

-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

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

end of thread, other threads:[~2004-07-19 13:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-18 14:44 [linux-lvm] lvm2 problems adding a new physical volume Darrel Wages Jr.
2004-07-19  3:42 ` Alasdair G Kergon
2004-07-19 12:00   ` Darrel Wages Jr.
2004-07-19 13:55     ` Luca Berra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox