I tried creating a new partition on a disk.
After the partition table was written, I got a message about the kernel still using the old partition table.
How do I get whatever system to register the new partition short of rebooting the box?
On Thu, 2006-11-23 at 23:48 +0800, Feizhou wrote:
I tried creating a new partition on a disk.
After the partition table was written, I got a message about the kernel still using the old partition table.
How do I get whatever system to register the new partition short of rebooting the box? _______________________________________________
Got to reboot if you change the partition that contains / mount or if the partition can not be locked for writing.
Johnny Hughes wrote:
On Thu, 2006-11-23 at 23:48 +0800, Feizhou wrote:
I tried creating a new partition on a disk.
After the partition table was written, I got a message about the kernel still using the old partition table.
How do I get whatever system to register the new partition short of rebooting the box? _______________________________________________
Got to reboot if you change the partition that contains / mount or if the partition can not be locked for writing.
So only the partition table on the disk that contains / will suffer from not kicking sysfs/udev/hald.
Thanks.
On Thu, 2006-11-23 at 09:56 -0600, Johnny Hughes wrote:
On Thu, 2006-11-23 at 23:48 +0800, Feizhou wrote:
I tried creating a new partition on a disk.
After the partition table was written, I got a message about the kernel still using the old partition table.
How do I get whatever system to register the new partition short of rebooting the box? _______________________________________________
Got to reboot if you change the partition that contains / mount or if the partition can not be locked for writing.
sfdisk -R ...
Used to do the trick. I can't remember if the device is needed. Man sfdisk will fill in the details.
<snip sif stuff>
-- Bill
How do I get whatever system to register the new partition short of rebooting the box? _______________________________________________
Got to reboot if you change the partition that contains / mount or if the partition can not be locked for writing.
sfdisk -R ...
Used to do the trick. I can't remember if the device is needed. Man sfdisk will fill in the details.
From the man page:
"-R Only execute the BLKRRPART ioctl (to make the kernel re-read the partition table). This can be useful for checking advance that the final BLKRRPART will be successful, and also when you changed the partition table ‘by hand’ (e.g., using dd from a backup). If the kernel complains (‘device busy for revalidation (usage = 2)’) then something still uses the device, and you still have to unmount some file system, or say swapoff to some swap partition."
Interesting part about the swap partition. So it might go for both / and any swap partition.
On Fri, 2006-11-24 at 19:48 +0800, Feizhou wrote:
How do I get whatever system to register the new partition short of rebooting the box? _______________________________________________
Got to reboot if you change the partition that contains / mount or if the partition can not be locked for writing.
sfdisk -R ...
Used to do the trick. I can't remember if the device is needed. Man sfdisk will fill in the details.
From the man page:
"-R Only execute the BLKRRPART ioctl (to make the kernel re-read the partition table). This can be useful for checking advance that the final BLKRRPART will be successful, and also when you changed the partition table ‘by hand’ (e.g., using dd from a backup). If the kernel complains (‘device busy for revalidation (usage = 2)’) then something still uses the device, and you still have to unmount some file system, or say swapoff to some swap partition."
Interesting part about the swap partition. So it might go for both / and any swap partition.
Right ...
I just reboot if I mess with the / partition via fdisk :)
If a machine is so important that it can't be off long enough to reboot, it needs a standby connected by something like DRBD :)
On Thursday 23 November 2006 16:48, Feizhou wrote:
I tried creating a new partition on a disk.
After the partition table was written, I got a message about the kernel still using the old partition table.
How do I get whatever system to register the new partition short of rebooting the box?
partprobe /dev/XXX
usually does the trick (assuming centos-4)
/Peter
Peter Kjellstrom wrote:
On Thursday 23 November 2006 16:48, Feizhou wrote:
I tried creating a new partition on a disk.
After the partition table was written, I got a message about the kernel still using the old partition table.
How do I get whatever system to register the new partition short of rebooting the box?
partprobe /dev/XXX
usually does the trick (assuming centos-4)
Thanks, I will give that a shot.