From dmay:
Since you state you have an eSATA enclosure, give this a test and report your results.
This is the testing I did and conclusions I reached.
HardwareI acquired the following equipment and used it for this test:
Vantec UGT-ST300 SATA/eSATA PCI Host Controller (150MB/s)
Kingwin KF-813-BK Mobile Rack for SATA HDD
Kingwin KF-813-T-BK Inner Tray for KF-813-BK (The 813 model has two fans in the tray and a fan in the rack to promote cooling.)
Maxtor 300GB SATA-150 (2 drives)
SATA data cable
This PCI card has an internal and an external (eSATA) connector. This configuration uses the internal port to connect to a removable drive bay. A connection through the external port to an eSATA enclosure should work identically; but I did not test this.
SetupInstalled a drive in the tray that came with the rack and the other disk in the extra tray.
Installed the controller in a PCI slot and installed the rack in a 5.25” bay, attached a standard power connector, and used the SATA cable to connect the controller to the rack.
TestingBooted the machine.
Inserted one tray into the rack and secured it with the key (drive power light on).
The drive was not visible to the system. Originally thought the driver for the SATA controller had not been loaded; but the message log indicates that the card was probed but no device was found on either channel.
SCSI subsystem initialized
libata version 1.20 loaded.
sata_sil 0000:02:06.0: version 0.9
ACPI: PCI interrupt 0000:02:06.0[A] -> GSI 11 (level, low) -> IRQ 11
ata1: SATA max UDMA/100 cmd 0xF8840080 ctl 0xF884008A bmdma 0xF8840000 irq 11
ata2: SATA max UDMA/100 cmd 0xF88400C0 ctl 0xF88400CA bmdma 0xF8840008 irq 11
ata1: no device found (phy stat 00000000)
scsi0 : sata_sil
ata2: no device found (phy stat 00000000)
scsi1 : sata_sil
Rebooted the machine with drive connected.
Drive visible.
Created partition and formatted as ext3.
Performed dar2 backup (which includes mounting and unmounting partition).
Removed drive.
Inserted second drive.
Drive visible.
Created partition and formatted as ext3 with identical parameters as for the first drive.
Performed dar2 backup.
Removed drive.
Initiated a reboot.
Error messages on shutdown indicated that scsi was having problems syncing cache. Clearly the system thought the drive was still there. The system finally concluded the reboot.
Drive not visible.
Inserted tray into the rack and secured it with the key (drive power light on).
Drive not visible to system.
Removed this drive and inserted first drive in system.
Reboot with drive power light on.
Drive visible, mountable and contains the original backup dar2 data files.
ConclusionsThe lack of basic “hot swap” capability in the current kernel means adding and removing a drive will not be detected.
Therefore:
- the drive must be attached and active at boot
- any subsequent replacement must be with an identical drive
- there is a risk of significant problems if the drive is disconnected before it has been unmounted
- the drive should be attached and active at shutdown or reboot
If these constraints are respected, it MAY be possible to take advantage of the removable characteristics of a SATA drive.
Given the backup performance I described in this posting
http://forums.contribs.org/index.php?topic=34041.msg148037#msg148037 there are advantages to doing so.
HOWEVER, this is not supported! You do so at your own risk!
John