shelly wrote:
> Is it possible to unload zfs module without rebooting the computer. 
> 
> I am making some changes in zfs kernel code. then compiling it. i then want 
> to reload the newly rebuilt module without rebooting.
> 
> I tried modunload. But its always givin "can't unload the module: Device 
> busy" .
> 
> What can be the possible solution

If your root/boot filesystem is zfs then you won't be able to unload the
module.

If your root/boot filesystem is nfs or ufs then you can unload it like this:


svcadm disable -t fmd
svcadm disable -t sysevent
pools="`zpool list -H -o name`"
for p in $pools ; do
         zpool export $p
done
sleep 5
modunload -i 0
modinfo | grep zfs

If you do NOT see any output from modinfo then the unload succeeded
if you DO see output from modinfo it did not succeed.


-- 
Darren J Moffat
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to