[OpenIndiana-discuss] Cannot rename ZFS dataset of non-global zone (halted, detached)

Stephan Althaus Stephan.Althaus at Duedinghausen.eu
Tue Nov 24 13:23:42 UTC 2020


Hello!


I want to rename my ZFS datasets of the non-global zone "mail", to 
correspond to the new name of the zone.

i tried to shutdown, halt, detach the zone in order to get the ZFS 
rename to work,
but "something" is always using the zfs datasets, that contains 
snapshots for the BEs..

Is there a way to solve this ?


Any hints are welcome!

Stephan


$ sudo zoneadm -z mail halt
$ sudo zoneadm -z mail detach
$ zoneadm list -civ
   ID NAME             STATUS     PATH BRAND    IP
    0 global           running    / ipkg     shared
    - zone1            configured /zones/build/zone1 nlipkg   shared
    - test             configured /zones/build/test nlipkg   shared
    - mail             configured /zones/build/www nlipkg   excl

$ sudo zfs set mountpoint=/zones/mail rpool1/zones/build/www
cannot unmount '/zones/build/www': Device busy

$ sudo zfs rename rpool1/zones/build/www rpool1/zones/mail
cannot rename 'rpool1/zones/build/www': child dataset with inherited 
mountpoint is used in a non-global zone

$ sudo fuser -c  /zones/build/www
/zones/build/www:
$ sudo fuser -c  /zones/build
/zones/build:
$ sudo fuser -c  /zones
/zones:

$ zfs list -t all -r rpool1/zones/build/www
NAME USED  AVAIL  REFER  MOUNTPOINT
rpool1/zones/build/www 6.46G   305G    88K  /zones/build/www
rpool1/zones/build/www/ROOT 6.46G   305G    88K  legacy
rpool1/zones/build/www/ROOT/openindiana-2020:11:03 12.2M   305G  5.42G  
legacy
rpool1/zones/build/www/ROOT/openindiana-2020:11:03-3 2.49M   305G  
5.42G  legacy
rpool1/zones/build/www/ROOT/openindiana-2020:11:03-4 2.02M   305G  
5.44G  legacy
rpool1/zones/build/www/ROOT/openindiana-2020:11:03-5 6.45G   305G  
5.43G  legacy
rpool1/zones/build/www/ROOT/openindiana-2020:11:03-5 at 2020-04-16-19:10:49 
272M      -  5.00G  -
rpool1/zones/build/www/ROOT/openindiana-2020:11:03-5 at 2020-11-03-12:14:12 
488K      -  5.42G  -
rpool1/zones/build/www/ROOT/openindiana-2020:11:03-5 at 2020-11-03-12:17:32 
400K      -  5.42G  -
rpool1/zones/build/www/ROOT/openindiana-2020:11:03-5 at 2020-11-11-09:38:11 
29.2M      -  5.42G  -
rpool1/zones/build/www/ROOT/openindiana-2020:11:03-5 at 2020-11-12-07:55:51 
17.7M      -  5.42G  -
rpool1/zones/build/www/ROOT/openindiana-2020:11:03-5 at 2020-11-19-22:00:12 
5.11M      -  5.44G  -
rpool1/zones/build/www/ROOT/openindiana-2020:11:03-5 at 2020-11-23-12:30:00 
3.32M      -  5.44G  -




More information about the openindiana-discuss mailing list