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

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

hdparm -z /device/here

Looks like it should do what you want.

-davidc

-- 
gpg-key: http://www.zettazebra.com/files/key.gpg

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: