我正在尝试将 solaris 10 非全局整个根区域(全局区域 solaris 10)附加到 solaris 11 全局区域,但是 zoneadm 附加失败并出现以下错误。
root@Globalzone:~#zoneadm -z nonglobalzone attach -a /ngzone1.v1.zfs.gz
Warning: The -a and -d options to the attach subcommand may be removed in a future release of Solaris. Use of the install subcommand is recommended.
Progress being logged to /var/log/zones/zoneadm.20190417T205235Z.ngzone1.attach
Installing: This may take several minutes...
ERROR: Error: No active boot environment found.
ERROR: Error: Command <zfs destroy ngzone1/installtmp> exited with status 1
ERROR: Error: cannot destroy dataset ngzone1/installtmp
ERROR: Invalid data received
Result: Attach Failed.
启动环境可用且已激活。
beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
solaris-2 NR / 66.72G static 2013-11-07 06:27
这是源/目的地信息。
来源:全局区域 - solaris 10 非全局区域 - solaris 10
目标全局区域 - solaris 11。
[Wednesday, April 17, 2019 01:52:35 PM PDT] Pinning nonglobalzone
[Wednesday, April 17, 2019 01:52:35 PM PDT] ZFS send stream
[Wednesday, April 17, 2019 01:52:35 PM PDT] Installing: This may take several minutes...
[Wednesday, April 17, 2019 01:52:36 PM PDT] gzcat / nonglobalzone.v1.zfs.gz | zfs receive -F -u -x zoned nonglobalzone/installtmp/ds
[Wednesday, April 17, 2019 01:55:06 PM PDT] ERROR: Error: No active boot environment found.
cannot destroy 'nonglobalzone/installtmp': filesystem has children
use '-r' to destroy the following datasets:
nonglobalzone/installtmp/ds@v2v
nonglobalzone/installtmp/ds@v2v1
nonglobalzone/installtmp/ds
[Wednesday, April 17, 2019 01:55:06 PM PDT] ERROR: Error: Command <zfs destroy nonglobalzone/installtmp> exited with status 1
[Wednesday, April 17, 2019 01:55:06 PM PDT] ERROR: Error: cannot destroy dataset nonglobalzone/installtmp
[Wednesday, April 17, 2019 01:55:06 PM PDT] ERROR: Invalid data received
[Wednesday, April 17, 2019 01:55:06 PM PDT] Destroying datasets under nonglobalzone that are not pinned
[Wednesday, April 17, 2019 01:55:06 PM PDT] Destroyed unpinned snapshot nonglobalzone/installtmp/ds@v2v
答案1
此命令不正确:
zoneadm -z attach -a /ngzone1.v1.zfs.gz
概要
zoneadm -z zonename [-u uuid-match] subcommand [subcommand_options]
...
注意“zoneadm -z区域名称...子命令...”格式。
您zonename
从发布的命令中省略了参数。
该命令这迁移 Oracle Solaris 10 系统上的现有区域Solaris 11 管理指南的页面是:
zoneadm -z my-zone attach -a /zones/my-zone.cpio.gz
再次注意该示例中zonename
的参数。my-zone