[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 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)

Attachment: signature.pgp
Description: Digital signature


Reply to: