UDP 514 wrote:
I have a server with hot swap disks.
I'd like to be able to swap out a non-system disk , eg /dev/sdd and
put in a new
disk, partition it in fdisk, then mount those partitions. This all
works fine, I can partition it,
but the linux kernel hangs on to the old disk partitions in memory,
so I can't mke2fs or
mount the newly created partitions, without doing a reboot.
Is there a way to force the kernel re-read the partition tables on a
non-system disk?
How do people maintain high uptime, if you need to reboot every time
just to see an extra
disk in a hot swap system?
Paul
I believe partprobe is what you are looking for. Run fdisk/parted makes
your changes, write them to disk, exit. Then as root "partprobe" will
make the kernel to re-read the partition table. You should then be able
to mkfs to your harts content.
HTH
--
Damon L. Chesser
[EMAIL PROTECTED]
http://www.linkedin.com/in/dchesser
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]