Re: [BackupPC-users] SATA hot-swap
2009-12-03 09:42:11
Steve Ling wrote:
> I hot swap a SATA drive to create archives. I have an older motherboard
> with an ICH5 SATA controller that has limited hot swap support and
> requires manual help. I believe it's not until ICH10 that you get full
> automatic hot swap.
>
> server1:~ # lspci | grep SATA
> 00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA
> Controller (rev 02)
>
# lspci | grep ATA
00:0e.0 IDE interface: nVidia Corporation MCP51 Serial ATA Controller
(rev a1)
00:0f.0 IDE interface: nVidia Corporation MCP51 Serial ATA Controller
(rev a1)
> This is what I do to detect and mount the drive:
>
> server1:~ # echo 0 0 0 > /sys/class/scsi_host/host?/scan
>
> server1:~ # mount /media/bkup
>
> Where host? is the host to which the drive is attached (host0, host1,
> etc)
How do I tell which host the drive is attached to?
> and /media/bkup is defined in /etc/fstab via disk label
>
> LABEL=BKUP1 /media/bkup ext3 noauto,acl,user_xattr 0 0
>
> To remove the drive:
>
> server1:~ # umount /media/bkup
>
> server1:~ # echo 1 > /sys/block/sd?/device/delete
>
> Where sd? is the device name (sda, sdb, etc). Be sure you have the right
> device name or you may do some damage.
Sounds like a good way to shoot yourself in the foot!
--
Bowie
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|
|
|