Lutz Schumann
2010-Feb-20 10:14 UTC
[zfs-discuss] Is there something like "udev" in OpenSolaris
Hello list, beeing a Linux Guy I''m actually quite new to Opensolaris. One thing I miss is udev. I found that when using SATA disks with ZFS - it always required manual intervention (cfgadm) to do SATA hot plug. I would like to automate the disk replacement, so that it is a fully automatic process without manual intervention if: a) the new disk contains no ZFS labels b) the new disk does not contain a partition table .. thus it is a real replacement part On Linux I would write a udev hot plug script to automate this. Is there something like udev on OpenSolaris ? (A place / hook that is executed every time new hardware is added / detected) Regards, Robert -- This message posted from opensolaris.org
Casper.Dik at Sun.COM
2010-Feb-20 10:20 UTC
[zfs-discuss] Is there something like "udev" in OpenSolaris
>Hello list, > >beeing a Linux Guy I''m actually quite new to Opensolaris. One thing I miss is udev. I found that when using SATA disks with ZFS - it always required manual intervention (cfgadm) to do SATA hot plug .> >I would like to automate the disk replacement, so that it is a fully automatic process without manual intervention if:> >a) the new disk contains no ZFS labels >b) the new disk does not contain a partition table > >.. thus it is a real replacement part > >On Linux I would write a udev hot plug script to automate this. > >Is there something like udev on OpenSolaris ? >(A place / hook that is executed every time new hardware is added / detected)Sysevent, perhaps? Casper
Mattias Pantzare
2010-Feb-20 10:51 UTC
[zfs-discuss] Is there something like "udev" in OpenSolaris
On Sat, Feb 20, 2010 at 11:14, Lutz Schumann <presales at storageconcepts.de> wrote:> Hello list, > > beeing a Linux Guy I''m actually quite new to Opensolaris. One thing I miss is udev. > I found that when using SATA disks with ZFS - it always required manual > intervention (cfgadm) to do SATA hot plug. > > I would like to automate the disk replacement, so that it is a fully automatic > process without manual intervention if: > > a) the new disk contains no ZFS labels > b) the new disk does not contain a partition table > > .. thus it is a real replacement part > > On Linux I would write a udev hot plug script to automate this. > > Is there something like udev on OpenSolaris ? > (A place / hook that is executed every time new hardware is added / detected)Have you tried to set autoreplace to on on your pool?