On 10 Oct 2017, at 16:44, Chad M Stewart wrote:
I’m trying to move a bunch of zones from a failing server to a new
one.
Both are running the same SmartOS version (I’m using this version
as I want to use project-fifo and from what I read this is the latest
version suggested.)
# uname -a
SunOS chat 5.11 joyent_20170330T015208Z i86pc i386 i86pc
** original host **
UUID TYPE RAM VCPUS NICS.0.IP
STATE
a701146d-3790-4150-92b8-3e30731b7b34 OS 2024 - 10.0.0.12
stopped
# zfs list |grep a70
zones/a701146d-3790-4150-92b8-3e30731b7b34 1.14G
553G 1.94G /zones/a701146d-3790-4150-92b8-3e30731b7b34
# vmadm send -v a701146d-3790-4150-92b8-3e30731b7b34 | ssh 10.0.0.3
vmadm receive -v
Successfully sent VM a701146d-3790-4150-92b8-3e30731b7b34
Command failed: /zones/a701146d-3790-4150-92b8-3e30731b7b34/root is
not owned by root.
could not verify zonepath /zones/a701146d-3790-4150-92b8-3e30731b7b34
because of the above errors.
zoneadm: zone a701146d-3790-4150-92b8-3e30731b7b34 failed to verify
** destination system **
UUID TYPE RAM VCPUS NICS.0.IP
STATE
a701146d-3790-4150-92b8-3e30731b7b34 OS 2024 - 10.0.0.12
receiving
# zfs list |grep a70
zones/a701146d-3790-4150-92b8-3e30731b7b34 1.96G 466G 1.96G
/zones/a701146d-3790-4150-92b8-3e30731b7b34
I’ve tried multiple times, before each repeated attempt I wipe out
the zfs dataset on the destination system, otherwise I get a different
error. I’m stumped at the moment and open to suggestions.
I ran into this a few months ago (so prior to the current version of
SmartOS)
What worked for me was to remove extra disk definitions, leaving just
the main zone defined via
vmadm. See 'remove_disks' in the vmadm manpage
https://smartos.org/man/1m/vmadm
I've got a couple of json examples here. Note the first one uses
'remove_filesystems'. See
the vmadm manpage for details of both flavours.
# cat remove_tank_data_archive.json
{
"remove_filesystems": [
{ "type": "lofs", "source": "/tank/data", "target": "/tank/data" },
{ "type": "lofs", "source": "/tank/archive", "target":
"/tank/archive" }
]
}
Note that according to the manpage, each item is keyed by path, so in
the
above, the 'source' item is probably redundant.
# cat remove_manage.json
{
"remove_disks": [
{ "type": "lofs", "target": "/manage" }
]
}
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com