Hello, How to explain to fdisk that /dev/sda size changed? I increased LUN on storage, reloaded iscsi, did echo 1 > /sys/<something>/rescan. And I see in "dmesg" that kernel found new size of the LUN. But when I type "fdisk /dev/sda" it still shows old size. On /dev/sda1 sits LVM PV and I'd like to resize it instead of adding one more PV to volume group. CentOS 4.4 64bits. Thanks, Mindaugas
Ross S. W. Walker
2007-Nov-16 21:27 UTC
[CentOS] How to make fdisk recognize increased iSCSI LUN?
Mindaugas wrote:> > > Hello, > > How to explain to fdisk that /dev/sda size changed? I > increased LUN on storage, reloaded iscsi, did echo 1 > > /sys/<something>/rescan. And I see in "dmesg" that kernel > found new size of the LUN. But when I type "fdisk /dev/sda" > it still shows old size. On /dev/sda1 sits LVM PV and I'd > like to resize it instead of adding one more PV to volume group. >I think it may be the MBR that still has the old size in it. Try opening it in fdisk, save it, then re-open it. -Ross ______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.
Alain Spineux
2007-Nov-17 00:22 UTC
[CentOS] How to make fdisk recognize increased iSCSI LUN?
On Nov 16, 2007 10:06 PM, Mindaugas <ml at kilimas.com> wrote:> > Hello, > > How to explain to fdisk that /dev/sda size changed?Try to send him an email fdisk at util-linux.org :-) Please be polite :-) or maybe try # partprobe /dev/sda>I increased LUN on storage, reloaded iscsi, did echo 1 >/sys/<something>/rescan. And I see in "dmesg" that kernel found new size of the LUN. But when I type "fdisk /dev/sda" it still shows old size. On /dev/sda1 sits LVM PV and I'd like to resize it instead of adding one more PV to volume group. I imagine sda1 is thee only partition on sda ! I know all LVM commands by hart and was not knowing pvresize ! What a crazy thing! A day it will be possible to move an entire partition inside a disk, and doing this online ! Then LVM will become useless :-) I thing a day a man will walk on the moon :-) Regards Alain> > CentOS 4.4 64bits. > > Thanks, > > Mindaugas > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >-- Alain Spineux aspineux gmail com May the sources be with you