Skip to contentSkip to conversation

Physical volume size changed

linux-lvm Jens Hoffrichter 6 participants 8 messages May 22, 2002

lore
Share & tools
lore
#0 lore raw

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

Signature · 5 lines
GPG: 1024D/CF884D50  F2E8 F7FC F823 6464 4E9D  EFAB 6EE9 8B9C CF88 4D50
------------------------------------------------------------------------
  Jens Hoffrichter / [email protected] / Joho@IRC / Fon: 0172/5376989
    A dream is a wish your heart makes. 
                               (Seen on a parade in Walt Disney World)
#2 lore raw
In reply to Jens Hoffrichter
Quoted 3 lines · Jens Hoffrichter

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"?

Quoted 3 lines

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/

#3 lore raw
Quoted 4 lines

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

#4 lore raw
Quoted 8 lines · James Hawtin
Quoted 5 lines

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.

Quoted 9 lines

James

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

Signature · 15 lines
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
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#5 lore raw
In reply to Andreas Dilger
Quoted 8 lines · Andreas Dilger
Quoted 3 lines · Jens Hoffrichter

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"?

Quoted 6 lines
Quoted 3 lines

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.

Quoted 13 lines

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

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

Signature · 15 lines
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
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#6 lore raw
In reply to Andreas Dilger
Quoted 6 lines · Andreas Dilger
Quoted 3 lines

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 :))

Quoted 6 lines
Quoted 3 lines

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

Signature · 4 lines
GPG: 1024D/CF884D50  F2E8 F7FC F823 6464 4E9D  EFAB 6EE9 8B9C CF88 4D50
------------------------------------------------------------------------
  Jens Hoffrichter / [email protected] / Joho@IRC / Fon: 0172/5376989
     A room without books is like a body without a soul! (Cicero)
#7 lore raw
In reply to Jens Hoffrichter

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: [email protected] [mailto:[email protected]] On Behalf Of Jens Hoffrichter
Sent: Wednesday, May 22, 2002 6:12 AM
To: [email protected]
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

Signature · 11 lines
GPG: 1024D/CF884D50  F2E8 F7FC F823 6464 4E9D  EFAB 6EE9 8B9C CF88 4D50
------------------------------------------------------------------------
  Jens Hoffrichter / [email protected] / 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
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html