On Sat, 2005-11-12 at 22:28 -0600, Aleksandar Milivojevic wrote:
kadafax wrote:
Hi list, I have a SAN attached to a CentOS 4.2 server. I have expanded the size of the virtual disk within the SAN (by adding a new HD to the disk pool) and need CentOS to see the new size (CentOS see it as /dev/sdb). I'm using LVM. Do you know a method for the Volume Group to see that one of its harddisk is now bigger, without rebooting (it's not a problem with a reboot but since the LDAP directory is on this server, it is problematic).
If you do "fdisk /dev/sdb", does it show you correct (new) size? Fdisk should query device directly (and not relay on cached copy of partition table in kernel).
<snip>
A faster method is
sfdisk -l [/dev/xxxx] # If no device specification, lists all
and then
sfdisk -R /dev/xxx
will load the disk parameters to the OS without reboot.
However, not being familiar with LVM, I don't know if this causes a problem or if you just then follow the other directions given by Aleksander.
I have also used this for automated configuration. But that was without LVM being involved.
Bill