All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Physical volume size changed
@ 2002-05-22  5:12 Jens Hoffrichter
  2002-05-22  5:20 ` Joe Thornber
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Jens Hoffrichter @ 2002-05-22  5:12 UTC (permalink / raw)
  To: linux-lvm

Hi!

We are using the LVM here in our company to manage our partitions and
are really satisfied with the software, its really great to change
partition sizes on the fly and similar :)

We are using two VG, system and data. data consists of one physical volume,
/dev/scsi/host2/bus0/target1/lun0/disc, which is the logical volume of
a IBM ServeRaid SCSI Controller with 4 disks and a raid 5. This logical
volume has 101.7 GB.

Now we have extended the logical volume on the IBM ServeRaid by using
3 36 GB disks, so the logical volume on the raid controller now has
203.4 GB. 

I have issued a SCSI reset on the bus hoping that the LVM notices on the
fly that the physical volume size has changed, but it doesn't recognize
it.

I have not rebooted yet, that is the other hope that the LVM recognizes
the additional free space after the reboot, but I'm not sure.

Are there other possibilities that the LVM recognizes that the PV size
has changed? Or is there no hope at all?

I would be really glad if somebody could give me some hints where to look.

CU all,
Jens
-- 
GPG: 1024D/CF884D50  F2E8 F7FC F823 6464 4E9D  EFAB 6EE9 8B9C CF88 4D50
------------------------------------------------------------------------
  Jens Hoffrichter / joho@hausboot.org / Joho@IRC / Fon: 0172/5376989
    A dream is a wish your heart makes. 
                               (Seen on a parade in Walt Disney World)

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

* Re: [linux-lvm] Physical volume size changed
  2002-05-22  5:12 [linux-lvm] Physical volume size changed Jens Hoffrichter
@ 2002-05-22  5:20 ` Joe Thornber
  2002-05-22  5:29 ` Andreas Dilger
  2002-05-22  7:08 ` Unixcafe
  2 siblings, 0 replies; 8+ messages in thread
From: Joe Thornber @ 2002-05-22  5:20 UTC (permalink / raw)
  To: linux-lvm

pvresize

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

* Re: [linux-lvm] Physical volume size changed
  2002-05-22  5:12 [linux-lvm] Physical volume size changed Jens Hoffrichter
  2002-05-22  5:20 ` Joe Thornber
@ 2002-05-22  5:29 ` Andreas Dilger
  2002-05-22  5:35   ` James Hawtin
                     ` (2 more replies)
  2002-05-22  7:08 ` Unixcafe
  2 siblings, 3 replies; 8+ messages in thread
From: Andreas Dilger @ 2002-05-22  5:29 UTC (permalink / raw)
  To: Jens Hoffrichter; +Cc: linux-lvm

On May 22, 2002  12:11 +0200, Jens Hoffrichter wrote:
> Now we have extended the logical volume on the IBM ServeRaid by using
> 3 36 GB disks, so the logical volume on the raid controller now has
> 203.4 GB. 

I assume when you say "logical volume" you actually mean "physical
volume"?

> I have issued a SCSI reset on the bus hoping that the LVM notices on the
> fly that the physical volume size has changed, but it doesn't recognize
> it.

No, you need to use "pvresize", which is part of very recent LVM tools.
I'm not sure if it needs kernel support or not.

Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/

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

* Re: [linux-lvm] Physical volume size changed
  2002-05-22  5:29 ` Andreas Dilger
@ 2002-05-22  5:35   ` James Hawtin
  2002-05-22  6:16     ` Heinz J . Mauelshagen
  2002-05-22  6:17   ` Heinz J . Mauelshagen
  2002-05-22  6:21   ` Jens Hoffrichter
  2 siblings, 1 reply; 8+ messages in thread
From: James Hawtin @ 2002-05-22  5:35 UTC (permalink / raw)
  To: linux-lvm; +Cc: Jens Hoffrichter


> No, you need to use "pvresize", which is part of very recent LVM tools.
> I'm not sure if it needs kernel support or not.
>

Thats a really useful addition. Does it cope with partations been
extended at the front as well as the back?

James

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

* Re: [linux-lvm] Physical volume size changed
  2002-05-22  5:35   ` James Hawtin
@ 2002-05-22  6:16     ` Heinz J . Mauelshagen
  0 siblings, 0 replies; 8+ messages in thread
From: Heinz J . Mauelshagen @ 2002-05-22  6:16 UTC (permalink / raw)
  To: linux-lvm

On Wed, May 22, 2002 at 10:25:59AM +0000, James Hawtin wrote:
> 
> 
> > No, you need to use "pvresize", which is part of very recent LVM tools.
> > I'm not sure if it needs kernel support or not.
> >
> 
> Thats a really useful addition. Does it cope with partations been
> extended at the front as well as the back?

Just at the back.

In case you extend at the front, you need dd or the like to move your former
physical volume contents down to the new beginning of the partition and
pvresize afterwards.


> 
> James
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

* Re: [linux-lvm] Physical volume size changed
  2002-05-22  5:29 ` Andreas Dilger
  2002-05-22  5:35   ` James Hawtin
@ 2002-05-22  6:17   ` Heinz J . Mauelshagen
  2002-05-22  6:21   ` Jens Hoffrichter
  2 siblings, 0 replies; 8+ messages in thread
From: Heinz J . Mauelshagen @ 2002-05-22  6:17 UTC (permalink / raw)
  To: linux-lvm

On Wed, May 22, 2002 at 04:27:22AM -0600, Andreas Dilger wrote:
> On May 22, 2002  12:11 +0200, Jens Hoffrichter wrote:
> > Now we have extended the logical volume on the IBM ServeRaid by using
> > 3 36 GB disks, so the logical volume on the raid controller now has
> > 203.4 GB. 
> 
> I assume when you say "logical volume" you actually mean "physical
> volume"?
> 
> > I have issued a SCSI reset on the bus hoping that the LVM notices on the
> > fly that the physical volume size has changed, but it doesn't recognize
> > it.
> 
> No, you need to use "pvresize", which is part of very recent LVM tools.
> I'm not sure if it needs kernel support or not.

No, it doesn't because the physical volume to be resized needs to be inactive.
Thought that would be fair enough because it is a rare change anyway.

> 
> Cheers, Andreas
> --
> Andreas Dilger
> http://www-mddsp.enel.ucalgary.ca/People/adilger/
> http://sourceforge.net/projects/ext2resize/
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

* Re: [linux-lvm] Physical volume size changed
  2002-05-22  5:29 ` Andreas Dilger
  2002-05-22  5:35   ` James Hawtin
  2002-05-22  6:17   ` Heinz J . Mauelshagen
@ 2002-05-22  6:21   ` Jens Hoffrichter
  2 siblings, 0 replies; 8+ messages in thread
From: Jens Hoffrichter @ 2002-05-22  6:21 UTC (permalink / raw)
  To: linux-lvm

On Wed, May 22, 2002 at 04:27:22AM -0600, Andreas Dilger wrote:

> > Now we have extended the logical volume on the IBM ServeRaid by using
> > 3 36 GB disks, so the logical volume on the raid controller now has
> > 203.4 GB. 
> 
> I assume when you say "logical volume" you actually mean "physical
> volume"?
Yes, I meant the logical volume on the raid controller which is the physical
volume for the LVM. Sorry for the confusion :))

> > I have issued a SCSI reset on the bus hoping that the LVM notices on the
> > fly that the physical volume size has changed, but it doesn't recognize
> > it.
> 
> No, you need to use "pvresize", which is part of very recent LVM tools.
> I'm not sure if it needs kernel support or not.
OK, thx, I upgraded my lvm tools and I found the program. I just have to
convince my users now that they can't use the server for a while so I can
unmount the partitions on the lvm logical volume. But I have to resize
the partitions on the lv nevertheless :))

Thanks very much for the help from all of you!

CU all,
Jens
-- 
GPG: 1024D/CF884D50  F2E8 F7FC F823 6464 4E9D  EFAB 6EE9 8B9C CF88 4D50
------------------------------------------------------------------------
  Jens Hoffrichter / joho@hausboot.org / Joho@IRC / Fon: 0172/5376989
     A room without books is like a body without a soul! (Cicero)

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

* RE: [linux-lvm] Physical volume size changed
  2002-05-22  5:12 [linux-lvm] Physical volume size changed Jens Hoffrichter
  2002-05-22  5:20 ` Joe Thornber
  2002-05-22  5:29 ` Andreas Dilger
@ 2002-05-22  7:08 ` Unixcafe
  2 siblings, 0 replies; 8+ messages in thread
From: Unixcafe @ 2002-05-22  7:08 UTC (permalink / raw)
  To: linux-lvm

Hello, I work for HP, the developer of LVM... I am a Unix support
engineer...  LVM will allow you to vgextend up to 255 disks/devices into
a vg and create up to 255 lvols. You can lvextend a lvol as long as you
have free pe available in the vg. However, if you modify an existing
lun, extend it, etc, I do not believe lvm will recognize it, at that is
the case in HP Unix. The best course of action when using lvm and vg's
is to vgextend another disk/lun into the vg and lvextend the lvol to the
needed size.... Hope this helps.... Nicholas 

-----Original Message-----
From: linux-lvm-admin@sistina.com [mailto:linux-lvm-admin@sistina.com]
On Behalf Of Jens Hoffrichter
Sent: Wednesday, May 22, 2002 6:12 AM
To: linux-lvm@sistina.com
Subject: [linux-lvm] Physical volume size changed


Hi!

We are using the LVM here in our company to manage our partitions and
are really satisfied with the software, its really great to change
partition sizes on the fly and similar :)

We are using two VG, system and data. data consists of one physical
volume, /dev/scsi/host2/bus0/target1/lun0/disc, which is the logical
volume of a IBM ServeRaid SCSI Controller with 4 disks and a raid 5.
This logical volume has 101.7 GB.

Now we have extended the logical volume on the IBM ServeRaid by using 3
36 GB disks, so the logical volume on the raid controller now has 203.4
GB. 

I have issued a SCSI reset on the bus hoping that the LVM notices on the
fly that the physical volume size has changed, but it doesn't recognize
it.

I have not rebooted yet, that is the other hope that the LVM recognizes
the additional free space after the reboot, but I'm not sure.

Are there other possibilities that the LVM recognizes that the PV size
has changed? Or is there no hope at all?

I would be really glad if somebody could give me some hints where to
look.

CU all,
Jens
-- 
GPG: 1024D/CF884D50  F2E8 F7FC F823 6464 4E9D  EFAB 6EE9 8B9C CF88 4D50
------------------------------------------------------------------------
  Jens Hoffrichter / joho@hausboot.org / Joho@IRC / Fon: 0172/5376989
    A dream is a wish your heart makes. 
                               (Seen on a parade in Walt Disney World)

_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

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

end of thread, other threads:[~2002-05-22  7:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-22  5:12 [linux-lvm] Physical volume size changed Jens Hoffrichter
2002-05-22  5:20 ` Joe Thornber
2002-05-22  5:29 ` Andreas Dilger
2002-05-22  5:35   ` James Hawtin
2002-05-22  6:16     ` Heinz J . Mauelshagen
2002-05-22  6:17   ` Heinz J . Mauelshagen
2002-05-22  6:21   ` Jens Hoffrichter
2002-05-22  7:08 ` Unixcafe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.