HotSwapping Disks



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


Relevant Pages

  • Re: Hibernation woes
    ... this) or a swap PARTITION needs to be created from disk space ... which I take to mean unformatted free physical unused disk space just ... swap "file" creation and change. ... Unfortunately this is a dual boot machine (XP and Ubuntu) and will ...
    (Ubuntu)
  • Re: I HATE WINDOWS!
    ... stable and easily backed up system, how would you partition a headless ... considering a system with two or three hard drives. ... Higher data rates are achieved at the beginning of the disk. ... Swap would probably be next if you have one drive. ...
    (alt.os.linux)
  • Re: Linux community software-update-anarchy polemic
    ... Remember, I'm just a monkey. ... That implies that if you have one disk per partition, ... Trust the kernel or don't trust the kernel, but either way, both ...
    (comp.os.linux.misc)
  • Re: swap_pager complaints but not using swap
    ... using a whole 96K of swap. ... I don't see any disk related ... Traditionally swap used the b partition. ... virtual memory support. ...
    (freebsd-questions)
  • Re: partition table numberings
    ... Ritesh Raj Sarraf wrote: ... I just modified my partition table using ... Will it slowly damage my disk? ... and my swap was 512). ...
    (Debian-User)