Re: Hot Swapping SATA drive?
1) Given a system running FreeBSD 9.1-RELEASE, is anything bad gonna happen if I insert a drive into this thing while the system is running? Assuming your board supports sata hotswap (too lazy to check) it'll be just fine. I've done this many times with the machine I'm messing with zfs on. Will I be able to mount partitions contained on the drive in question after I do so? y 2) Given a system running FreeBSD 9.1-RELEASE, is anything bad gonna happen if I remove a drive from this thing while the system is running, assuming that I have already properly umounted all relevant partitions first? No. On my test machine I've been yoinking drives without even any unmounting and it's just fine (up until I pull that last drive in my array and zfs shits the bed). Honestly, the only thing you have to worry about is if you're in there messing with cable ends that you don't accidentally touch the cable clip to something else on the board and short it out. 3) Assuming that I want to do this stuff, what BIOS options should I be setting or unsetting on the motherboard? You need the sata ports running in straight up pure ahci mode (as opposed to IDE mode or compatible or something that emulates old style parallel-ata). Be aware that Windows up through XP doesn't support ahci, so if you're dual booting an old system you'll have problems. You'll also almost certainly want to disable any motherboard-based raid options too, as they tend to be complete crap. sata vs esata esata is pin-identical to normal sata. The only difference is that esata has a more robust plug design meant to handle frequent [dis]connections and tighter electrical requirements in the cable for longer distances. As far as your board/OS is concerned, it's just another sata port. __ it has a certain smooth-brained appeal ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Hot Swapping SATA drive?
On Sat, 18 May 2013 10:49:13 -0400 Quartz articulated: You need the sata ports running in straight up pure ahci mode (as opposed to IDE mode or compatible or something that emulates old style parallel-ata). Be aware that Windows up through XP doesn't support ahci, so if you're dual booting an old system you'll have problems. You'll also almost certainly want to disable any motherboard-based raid options too, as they tend to be complete crap. There is a huge amount of information via a quick Google search that would seem to contradict your statements regarding WinXP and AHCI. http://expertester.wordpress.com/2008/07/27/how-to-enable-ahci-windows-xp/ http://answers.microsoft.com/en-us/windows/forum/windows_xp-hardware/how-do-i-change-windows-xp-to-use-ahci-disk-mode/7819a905-cfd9-4966-b2aa-67afc80a31d8 -- Jerry ♔ Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Hot Swapping SATA drive?
In message 519794e9.6080...@sneakertech.com, Quartz qua...@sneakertech.com wrote: 3) Assuming that I want to do this stuff, what BIOS options should I be setting or unsetting on the motherboard? You need the sata ports running in straight up pure ahci mode (as opposed to IDE mode or compatible or something that emulates old style parallel-ata). OK. Thanks Quartz,. I'll make it a point to check for that. Be aware that Windows up through XP doesn't support ... No worries. The system in question is only running FreeBSD. Someday soon it may be running debian, but *never* will it be running windoze. You'll also almost certainly want to disable any motherboard-based raid options too, as they tend to be complete crap. OK. I never use RAID in any form anyway, so it probably is already disabled, but I'll make a point to double check. Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Hot Swapping SATA drive?
You need the sata ports running in straight up pure ahci mode (as opposed to IDE mode or compatible or something that emulates old style parallel-ata). OK. Thanks Quartz,. I'll make it a point to check for that. The wording on different bios' can often be confusing. I've seen ahci mode referred to on one board as native mode but on a different system it's referred to as enhanced (where normal is emulation), and other oddisims. Double check your mobo manual and find the chapter that talks about it. You'll also almost certainly want to disable any motherboard-based raid options too, as they tend to be complete crap. OK. I never use RAID in any form anyway, so it probably is already disabled, but I'll make a point to double check. A word of warning: Not all boards do things *right*, so it pays to test. I've encountered systems where you get gpt checksum errors and stuff when ahci is on because the board masks part of the drive for its fake-raid stuff even if you have fake-raid supposedly turned off. __ it has a certain smooth-brained appeal ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Hot Swapping SATA drive?
Be aware that Windows up through XP doesn't support ahci, There is a huge amount of information via a quick Google search that would seem to contradict your statements regarding WinXP and AHCI. Sorry, poor choice of wording. I meant earlier versions of Windows don't support achi *natively*. As your links suggest, you can sometimes find that your manufacturer will provide a driver that lets you fake out WinXP into being ok with your board's implementation of ahci (usually by emulating SCSI), but it's not a universal solution. __ it has a certain smooth-brained appeal ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Hot Swapping SATA drive?
On Tue, 14 May 2013, RW wrote: On Tue, 14 May 2013 07:45:21 -0400 Robert Huff wrote: Ronald F. Guilmette writes: 3) Assuming that I want to do this stuff, what BIOS options should I be setting or unsetting on the motherboard? I am unable to check the BIOS settings on that MB (which may be ASrock as well), but I don't believe I had to do anything other hand make sure eSATA was enabled. I don't there there is any difference between SATA and eSATA above the physical layer. I'm not sure what that setting would do. At a guess, it could connect one of the internal SATA ports to the eSATA connector. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Hot Swapping SATA drive?
Warren Block writes: I don't there there is any difference between SATA and eSATA above the physical layer. I'm not sure what that setting would do. At a guess, it could connect one of the internal SATA ports to the eSATA connector. That's the way mine works; on the other hand, it's specially marked internal connector. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Hot Swapping SATA drive?
Ronald F. Guilmette writes: I bought one of these things awhile ago: http://www.amazon.com/gp/product/B004LXJXSW/ref=oh_details_o00_s00_i00?ie=UTF8psc=1 I believe I have a similar object, only a) external (eSATA), b) from a different manufacturer, and c) connected to a -CURRENT system. I use it as a backup device. I just now tried to read up a little bit on all of this ACPI stuff, but my eyes are starting to glaze over. So if someone would answer these simple and obvious questions, I'd appreciate it: 1) Given a system running FreeBSD 9.1-RELEASE, is anything bad gonna happen if I insert a drive into this thing while the system is running? Will I be able to mount partitions contained on the drive in question after I do so? That works for me. I need to re-scan the ata channel using atacontrol but once that happens it's fine. 2) Given a system running FreeBSD 9.1-RELEASE, is anything bad gonna happen if I remove a drive from this thing while the system is running, assuming that I have already properly umounted all relevant partitions first? Nothing bad happened to me. 3) Assuming that I want to do this stuff, what BIOS options should I be setting or unsetting on the motherboard? I am unable to check the BIOS settings on that MB (which may be ASrock as well), but I don't believe I had to do anything other hand make sure eSATA was enabled. Please excuse my ignorance, but I've never done this stuff before. I remember the nerves when I tried this. You should be fine, Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Hot Swapping SATA drive?
On Tue, 14 May 2013 07:45:21 -0400, Robert Huff wrote: Ronald F. Guilmette writes: 1) Given a system running FreeBSD 9.1-RELEASE, is anything bad gonna happen if I insert a drive into this thing while the system is running? Will I be able to mount partitions contained on the drive in question after I do so? That works for me. I need to re-scan the ata channel using atacontrol but once that happens it's fine. Isn't that supposed to be camcontrol today? I've been using SCSI hot swap devices for many years, and they usually required a re-scan of the bus. The same often works for USB-connected devices which also use CAM, and maybe SATA and eSATA also support it today? 2) Given a system running FreeBSD 9.1-RELEASE, is anything bad gonna happen if I remove a drive from this thing while the system is running, assuming that I have already properly umounted all relevant partitions first? Nothing bad happened to me. Again, it may be nice (to the system) to detach the ATA device from the bus; see man atacontrol (and man camcontrol in comparison) for the proper command to do this. From the electrical point of view, there should be no problem. 3) Assuming that I want to do this stuff, what BIOS options should I be setting or unsetting on the motherboard? I am unable to check the BIOS settings on that MB (which may be ASrock as well), but I don't believe I had to do anything other hand make sure eSATA was enabled. The only thing that might be worth looking at in the CMOS setup would be the method of the driver, making the device come up as da0 (for example) or ada0, depending if EHCI or XHCI can be selected. But I assume this only applies to USB devices (and maybe Firewire). SATA should work fine with the default settings. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Hot Swapping SATA drive?
On Tue, 14 May 2013 07:45:21 -0400 Robert Huff wrote: Ronald F. Guilmette writes: 3) Assuming that I want to do this stuff, what BIOS options should I be setting or unsetting on the motherboard? I am unable to check the BIOS settings on that MB (which may be ASrock as well), but I don't believe I had to do anything other hand make sure eSATA was enabled. I don't there there is any difference between SATA and eSATA above the physical layer. I'm not sure what that setting would do. You do need to set the SATA channel to AHCI. Note that this may require Windows to be updated if it's on a the same drive or if it's on a a group of channels that's switched collectively. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Hot Swapping SATA drive?
In message 20882.9169.697806.928...@jerusalem.litteratus.org, Robert Huff roberth...@rcn.com wrote: Ronald F. Guilmette writes: I bought one of these things awhile ago: http://www.amazon.com/gp/product/B004LXJXSW/ref=oh_details_o00_s00_i00?ie=U TF8psc=1 I believe I have a similar object, only a) external (eSATA), b) from a different manufacturer, and c) connected to a -CURRENT system. I use it as a backup device. Yea, mine is internal, and real SATA. I wonder if that will make a difference. 1) Given a system running FreeBSD 9.1-RELEASE, is anything bad gonna happen if I insert a drive into this thing while the system is running? Will I be able to mount partitions contained on the drive in question after I do so? That works for me. I need to re-scan the ata channel using atacontrol but once that happens it's fine. Hummm... I tried atacontrol info and I got this: atacontrol: ATA_CAM option is enabled in kernel. Please use camcontrol instead. So I guess I need to use camcontrol instead. But what command? What were you using with atacontrol to re-scan? Was that atacontrol attach? I wonder what the camcontrol equivalent to that is. Nothing obvious is jumping out at me from the man page. I am unable to check the BIOS settings on that MB (which may be ASrock as well), but I don't believe I had to do anything other hand make sure eSATA was enabled. OK. Thanks. I'm determined to try this, and to make it work. Now I just need to know what camcontrol command I should be using. Regards, rfg ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Hot Swapping SATA drive?
In message 20130514144721.aa321c25.free...@edvax.de, Polytropon free...@edvax.de wrote: I've been using SCSI hot swap devices for many years, and they usually required a re-scan of the bus. The same often works for USB-connected devices which also use CAM, and maybe SATA and eSATA also support it today? OK, so what command should I use when I plug a drive in? Would that be camcontrol rescan foo where foo is something like /dev/ada0? I'm guessing that that can't be correct, because ada0 is an actual drive. So what is the device id for the bus itself? Again, it may be nice (to the system) to detach the ATA device from the bus; see man atacontrol (and man camcontrol in comparison) for the proper command to do this. From the electrical point of view, there should be no problem. I am a firm believer in being nice. I just need to know the proper command. Would that be camcontrol stop foo ? The only thing that might be worth looking at in the CMOS setup would be the method of the driver, making the device come up as da0 (for example) or ada0, depending if EHCI or XHCI can be selected. Ummm... my new little SATA plug-in bay is strictly SATA... not eSATA, and *definitely* not USB, so I think that EHCI and/or XHCI are probably irrelevant. Those are strictly USB things, no? Regards, rfg ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Hot Swapping SATA drive?
Ronald F. Guilmette writes: That works for me. I need to re-scan the ata channel using atacontrol but once that happens it's fine. Hummm... I tried atacontrol info and I got this: atacontrol: ATA_CAM option is enabled in kernel. Please use camcontrol instead. So I guess I need to use camcontrol instead. But what command? What were you using with atacontrol to re-scan? Was that atacontrol attach? Yeah - # atacontrol detach ata0 # atacontrol attach ata0 did it. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Hot Swapping SATA drive?
On Tue, 14 May 2013 16:34:11 -0700, Ronald F. Guilmette wrote: In message 20130514144721.aa321c25.free...@edvax.de, Polytropon free...@edvax.de wrote: I've been using SCSI hot swap devices for many years, and they usually required a re-scan of the bus. The same often works for USB-connected devices which also use CAM, and maybe SATA and eSATA also support it today? OK, so what command should I use when I plug a drive in? Would that be camcontrol rescan foo where foo is something like /dev/ada0? No. You use the typical SCSI-like device notation, bus:unit:lun, for example 0:1:0, or all for all buses and devices. I'm guessing that that can't be correct, because ada0 is an actual drive. So what is the device id for the bus itself? With camcontrol devlist, you can get a list that will show you what devices have been recognized and how the bus:unit:lun corresponds to the device files. Example: $ camcontrol devlist HL-DT-ST DVDRAM GSA-H42N RL00at scbus0 target 0 lun 0 (pass0,cd0) HL-DT-ST DVD-ROM GDR8163B 0L30 at scbus0 target 1 lun 0 (pass1,cd1) Generic Flash HS-CF 4.55 at scbus3 target 0 lun 0 (pass2,da0) Generic Flash HS-MS/SD 4.55 at scbus3 target 0 lun 1 (pass3,da1) Generic Flash HS-SM 4.55 at scbus3 target 0 lun 2 (pass4,da2) WDC WD15 EARS-00MVWB0at scbus4 target 0 lun 0 (pass5,da3) The disk you're attaching will probably be something like the entries for the USB disk (last line). Again, it may be nice (to the system) to detach the ATA device from the bus; see man atacontrol (and man camcontrol in comparison) for the proper command to do this. From the electrical point of view, there should be no problem. I am a firm believer in being nice. I just need to know the proper command. Would that be camcontrol stop foo ? Yes. You can use the start and stop commands like the attach and detach commands for atacontrol. Additionally, you can use tur for test (if) unit (is) ready, and readcap to print the capabilities. Also reset and rescan are helpful. See man camcontrol for details about what those commands do, and how to properly call them. In most cases, # camcontrol command bus:unit:lun | all will be the correct form. The only thing that might be worth looking at in the CMOS setup would be the method of the driver, making the device come up as da0 (for example) or ada0, depending if EHCI or XHCI can be selected. Ummm... my new little SATA plug-in bay is strictly SATA... not eSATA, and *definitely* not USB, so I think that EHCI and/or XHCI are probably irrelevant. Those are strictly USB things, no? I'm not fully sure about that, but I assume you're right, if the manufacturer has properly glued the SATA ports onto the mainboard instead of creating some strange abomination of a SATA through USB something. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Hot Swapping SATA drive?
I bought one of these things awhile ago: http://www.amazon.com/gp/product/B004LXJXSW/ref=oh_details_o00_s00_i00?ie=UTF8psc=1 So far, it seems to be working just peachy, but I have yet to do anything the least bit adventurous with it, such as trying to either insert a drive into it or remove a drive from it while the system is powered on (and running FreeBSD). I just now tried to read up a little bit on all of this ACPI stuff, but my eyes are starting to glaze over. So if someone would answer these simple and obvious questions, I'd appreciate it: 1) Given a system running FreeBSD 9.1-RELEASE, is anything bad gonna happen if I insert a drive into this thing while the system is running? Will I be able to mount partitions contained on the drive in question after I do so? 2) Given a system running FreeBSD 9.1-RELEASE, is anything bad gonna happen if I remove a drive from this thing while the system is running, assuming that I have already properly umounted all relevant partitions first? 3) Assuming that I want to do this stuff, what BIOS options should I be setting or unsetting on the motherboard? Please excuse my ignorance, but I've never done this stuff before. P.S. I am _not_ using ZFS. P.P.S. Motherboard is ASRock N68C-GS FX. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org