Re: [OpenIndiana-discuss] sata hot plug problem (ahci?) + openindiana crash
On May 23, 2012, at 8:31 PM, Jim Klimov wrote: 2012-05-24 3:50, Richard Elling wrote: As a side note, it is then possible to augment GRUB to be able to import and export an rpool and thus help IDE-SATA migrations? Go for it. Huh... wait a couple of years, please. I'm better with generating ideas, than with long-term commitments for polished code, you do know :( This is not a common operation and is expected to only be done once per system, sorta like changing BIOS settings. One would guess so. But do you notice how often this comes up and people mostly opt to reinstall OpenIndiana instead of applying a trivial fix (which requires a bootable media like LiveCD - which could be replaced by GRUB or theoretical revival of failsafe-boot)... Not very often. If you read Oracle's docs, they only recommend a reinstall. -- richard -- ZFS Performance and Training richard.ell...@richardelling.com +1-760-896-4422 ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] sata hot plug problem (ahci?) + openindiana crash
On May 23, 2012, at 2:37 AM, Jim Klimov wrote: 2012-05-23 8:00, Richard Elling wrote: This procedure is far too complex. Let's edit it... Thanks... that seemed far too easy ;) As a side note, it is then possible to augment GRUB to be able to import and export an rpool and thus help IDE-SATA migrations? Go for it. This is not a common operation and is expected to only be done once per system, sorta like changing BIOS settings. -- richard -- ZFS Performance and Training richard.ell...@richardelling.com +1-760-896-4422 ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] sata hot plug problem (ahci?) + openindiana crash
2012-05-24 3:50, Richard Elling wrote: As a side note, it is then possible to augment GRUB to be able to import and export an rpool and thus help IDE-SATA migrations? Go for it. Huh... wait a couple of years, please. I'm better with generating ideas, than with long-term commitments for polished code, you do know :( This is not a common operation and is expected to only be done once per system, sorta like changing BIOS settings. One would guess so. But do you notice how often this comes up and people mostly opt to reinstall OpenIndiana instead of applying a trivial fix (which requires a bootable media like LiveCD - which could be replaced by GRUB or theoretical revival of failsafe-boot)... //Jim ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
[OpenIndiana-discuss] sata hot plug problem (ahci?) + openindiana crash
Hello, I've trying to insert a sata hd in an enclosure, but it doesn't seem to be recognized by the os. Low and behold, I used '# cfgadm -al', and only usb devices come up, nothing sata related. I have several sata hard drive in that machine, all of them contributing to a zpool which work perfectly fine. So I don't know why they are not showing up with cfgadm? I read a bit about the topic, and it seems to depend on ahci being available. I ran '# dmesg | grep -i ahci' and nothing showed up The motherboard is msi 890FXA-GD70, and I went in the bios: integrated peripherals - on-chip ATA devices - RAID Mode : {IDE, RAID, AHCI} and switched from IDE to AHCI I then restarted the machine. I got the booting screen for about 5 sec, and then the machine reboots. I switched back from AHCI to IDE, and this time the machine booted fine. So I'd like to know what needs to be done to be able to swap sata drive in that machine... Thanks, Matthieu ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] sata hot plug problem (ahci?) + openindiana crash
Hi there, I have been on the same spot. Some Motherboards that have more than 4 SATA ports, with less than 5 disks there is no problem but if you want to use the fifth port you need to choose AHCI or RAID in order to make it work.Also, check for errors on the dmesg. I had tons of problems with IDE mode and Openindiana as i installed the OS on AHCI mode. I have to change the config every time that my BIOS gets cleared. Best regards On Tue, May 22, 2012 at 4:01 PM, Matthieu Paindavoine ctord...@yahoo.frwrote: Hello, I've trying to insert a sata hd in an enclosure, but it doesn't seem to be recognized by the os. Low and behold, I used '# cfgadm -al', and only usb devices come up, nothing sata related. I have several sata hard drive in that machine, all of them contributing to a zpool which work perfectly fine. So I don't know why they are not showing up with cfgadm? I read a bit about the topic, and it seems to depend on ahci being available. I ran '# dmesg | grep -i ahci' and nothing showed up The motherboard is msi 890FXA-GD70, and I went in the bios: integrated peripherals - on-chip ATA devices - RAID Mode : {IDE, RAID, AHCI} and switched from IDE to AHCI I then restarted the machine. I got the booting screen for about 5 sec, and then the machine reboots. I switched back from AHCI to IDE, and this time the machine booted fine. So I'd like to know what needs to be done to be able to swap sata drive in that machine... Thanks, Matthieu ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] sata hot plug problem (ahci?) + openindiana crash
2012-05-22 23:01, Matthieu Paindavoine wrote: Hello, I've trying to insert a sata hd in an enclosure, but it doesn't seem to be recognized by the os. Low and behold, I used '# cfgadm -al', and only usb devices come up, nothing sata related. I have several sata hard drive in that machine, all of them contributing to a zpool which work perfectly fine. Well, if your disks were indeed used by the BIOS in IDE mode, the SATA driver is not used, and you'd likely see the pci-ide driver names like cmdk in your other disk names. AFAIK the disks should be recognized automagically upon boot, and if not - try running devfsadm -Cv to detect devices and add/remove the links in /dev dir. ... and switched from IDE to AHCI I then restarted the machine. I got the booting screen for about 5 sec, and then the machine reboots. I switched back from AHCI to IDE, and this time the machine booted fine. So I'd like to know what needs to be done to be able to swap sata drive in that machine... This usually means that your root/boot disk was also changed from IDE to AHCI, and this does interrupt the boot procedure. The lowlevel issue is that the driver and device names for disks change, rendering invalid those names used in the rpool config carried over to the miniroot image (boot_archive). There are workarounds, likely posted in archives of zfs-discuss list and many other sources. If I google anything good up, I'll post a link here :) HTH, //Jim Klimov ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] sata hot plug problem (ahci?) + openindiana crash
2012-05-22 23:29, Jim Klimov wrote: There are workarounds, likely posted in archives of zfs-discuss list and many other sources. If I google anything good up, I'll post a link here :) What do you know? I posted some myself, and found those first ;) * One more possible solution (component) would be this: 1) Set your root disk to AHCI or whatever you need 2) Boot from livecd 3) Import your rpool and mount the root filesystem into /a for example 4) Update device links: # devfsadm -r /a -Cv 5) Update the miniroot # bootadm update-archive -R /a 6) Export the rpool 7) Reboot and hope this helps ;) //Jim * Alternately, see a different procedure here: http://permalink.gmane.org/gmane.os.solaris.opensolaris.zfs/46864 ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] sata hot plug problem (ahci?) + openindiana crash
On May 22, 2012, at 12:36 PM, Jim Klimov wrote: 2012-05-22 23:29, Jim Klimov wrote: There are workarounds, likely posted in archives of zfs-discuss list and many other sources. If I google anything good up, I'll post a link here :) What do you know? I posted some myself, and found those first ;) * One more possible solution (component) would be this: This procedure is far too complex. Let's edit it... 1) Set your root disk to AHCI or whatever you need 2) Boot from livecd 3) Import your rpool and mount the root filesystem into /a for example zpool import -R /mnt rpool 4) Update device links: # devfsadm -r /a -Cv #4 is not required 5) Update the miniroot # bootadm update-archive -R /a #5 is not required 6) Export the rpool #6 is not required 7) Reboot and hope this helps ;) 4) Reboot and be happy, there is no doubt this will help. -- richard -- ZFS Performance and Training richard.ell...@richardelling.com +1-760-896-4422 ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss