On 05/30/08 09:18, 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?
If no oone else answers here, there are lists and sites dedicated to
HA Linux systems.
- --
Ron Johnson, Jr.
Jefferson LA USA
"I must acknowledge, once and for all, that the purpose of
diplomacy is to prolong a crisis.", Mr. Spock
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
05-30-2008, 02:55 PM
"Damon L. Chesser"
HotSwapping Disks
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
damon@damtek.com
http://www.linkedin.com/in/dchesser
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
06-01-2008, 12:33 AM
Michelle Konzack
HotSwapping Disks
Am 2008-05-30 15:18:23, schrieb UDP 514:
> 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?
You have to rescan the SCSI disk.
apt-get install scsiadd
You must remove the disk and then readd it.
Also you can use "scsitools"
Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
+49/177/9351947 50, rue de Soultz MSN LinuxMichi
+33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
06-04-2008, 04:21 AM
David Clymer
HotSwapping Disks
On Fri, 2008-05-30 at 15:18 +0100, 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?