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

Paolo Marcheschi paolo.marcheschi at ftgm.it
Tue Nov 24 13:54:38 UTC 2020


Hi
have you tried  to use the move command of zoneadm

zoneadm -z www move /zones/mail

Check first the Man page and do a backup.

Best Regards
Paolo
Il giorno mar 24 nov 2020 alle ore 14:24 Stephan Althaus <
Stephan.Althaus at duedinghausen.eu> ha scritto:

> 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  -
>
>
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
>


------------------------------

This e-mail and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to which they
are addressed.If you have received this e-mail in error please notify
the sender immediately, then delete it. Confidentiality and legal
privilege are not waived or lost by reason of mistaken delivery to
you.

------------------------------


More information about the openindiana-discuss mailing list