[OpenIndiana-discuss] How to determine what to do with a copied member of zfs fs

James list at xdrv.uk
Sat Nov 14 19:02:23 UTC 2020


On 14/11/2020 16:03, Harry Putnam wrote:

> While attempting to clean up some kind of error involving one zfs fs
>
> p0/vb2/vm2/d0
...
> More importantly is there a way to determine what is going on with
> ./vm2x/d0 .. that makes it so it cannot be deleted??

If p0/vb2/vm2/d0 is a ZFS then you have to destroy the ZFS.


# zfs create spool/junk
# zfs list spool/junk
NAME         USED  AVAIL  REFER  MOUNTPOINT
spool/junk    96K  2.83T    96K  /spool/junk
# ls -l /spool/junk
total 0
# rm -r /spool/junk
rm: Unable to remove directory /spool/junk: Device busy
# zfs destroy spool/junk
# ls -l /spool/junk
/spool/junk: No such file or directory




James.



More information about the openindiana-discuss mailing list