22 ноября 2014 г. 9:43:31 CET, Alexander Pyhalov via illumos-discuss <[email protected]> пишет: >Jim Klimov писал 21.11.2014 22:15: > >>> So I'm moving now data to ESXi VM. I'm looking at moving zones. Is >it >>> safe to use zfs send for moving zones data with zfs send if zpool >>> status >>> says that data pool has corrupted files (on the source side)? Or is >it >>> better to use tar? I'd prefer to transfer tar archives. If I create >>> zfs >>> >>> filesystems for zones with zoned property on and mount point set to >>> legacy, transfer files and zoneadm export data, will I be able to >>> attach >>> zones (I mean without zfs sending/receiving zone zfs filesystem) or >>> are >>> there some more specific zfs FS properties which I should copy? >> >> IIRC you can create the datasets for zones first, rsync the files >> over, and the set the zoned=on property, and boot the zone. > >Thank you. And thanks to Alasdair for his blog post >http://everycity.co.uk/alasdair/2011/10/fixing-no-active-dataset-on-zone-attach/ > > >--- >System Administrator of Southern Federal University Computer Center > > > > >------------------------------------------- >illumos-discuss >Archives: https://www.listbox.com/member/archive/182180/=now >RSS Feed: >https://www.listbox.com/member/archive/rss/182180/22642773-76f3f1fc >Modify Your Subscription: >https://www.listbox.com/member/?& >Powered by Listbox: http://www.listbox.com
Yes, now that the point about mountpoints is brought up (via Alasdair's post), that is something to look out for especially for delegated dataset hierarchies for apps/data (possibly rooted not at the volatile zone root but in a separate tree). If your delegated datasets use common conflict-ey mountpoints like /var/log (applied relative to a running zone namespace), there is some trickery with the order and value of setting mountpoint, canmount and zoned properties - when you want to access the dataset straight from the GZ for population or NGZ for use (and especially if for any reason you want to re-access from GZ later, such as to migrate). In fact, here "zoneadm ... ready" can be your friend as it should mount all datasets into the zone's namespace (but not start any services) and you can then access that logical FS tree from the GZ directly. Hope this helps more, Jim -- Typos courtesy of K-9 Mail on my Samsung Android ------------------------------------------- illumos-discuss Archives: https://www.listbox.com/member/archive/182180/=now RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be Modify Your Subscription: https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4 Powered by Listbox: http://www.listbox.com
