Re: [smartos-discuss] Restoring a server from a snapshot on another server

2018-02-13 Thread Gareth Howell
Thanks, Jussi
That reference is just what I was looking for.

Gareth

> On 13 Feb 2018, at 08:18, Jussi Sallinen  wrote:
> 
> Hi,
> 
> See 
> https://wiki.smartos.org/display/DOC/Administering+the+Global+Zone#AdministeringtheGlobalZone-GlobalZonePersistence
> https://github.com/joyent/smartos-live/blob/bfedd68cf2715fab8462aeb43f6d72c59ce914f1/overlay/generic/lib/svc/method/fs-joyent#L121-L123
> 
> /etc/zones is mounted from zones/config and it's persisted on disk as it 
> contains Zone configuration files:
> 



signature.asc
Description: Message signed with OpenPGP




---
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_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com


Re: [smartos-discuss] Restoring a server from a snapshot on another server

2018-02-13 Thread Jussi Sallinen

Hi,

See 
https://wiki.smartos.org/display/DOC/Administering+the+Global+Zone#AdministeringtheGlobalZone-GlobalZonePersistence

https://github.com/joyent/smartos-live/blob/bfedd68cf2715fab8462aeb43f6d72c59ce914f1/overlay/generic/lib/svc/method/fs-joyent#L121-L123

/etc/zones is mounted from zones/config and it's persisted on disk as it 
contains Zone configuration files:


Filesystem Size   Used  Available Capacity  Mounted on
zones/config  7.02T   370K  6.80T 1%    /etc/zones

-Jussi

On 13/02/2018 9.33, Gareth Howell wrote:
I was trying to think of the minimum I needed to get going. What about 
/etc/zones?




---
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_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com


Re: [smartos-discuss] Restoring a server from a snapshot on another server

2018-02-12 Thread Gareth Howell
Cheers, Brian
I was trying to think of the minimum I needed to get going. What about
/etc/zones?


Gareth

On 12 February 2018 at 22:28:33, Brian Bennett (brian.benn...@joyent.com)
wrote:

> Gareth,
> 
> Doing the entire zones pool is probably superfluous. Really, the only
> important data is the contents of /opt/custom, /usbkey/config and the
> individual zone datasets (including origin images). Copying the entire
> zones zpool will duplicate things like /var, which will have duplicate
> mount points off of / and cause conflicts when the pool imports.
> 
> --
> Brian Bennett
> Systems Engineer, Cloud Operations
> Joyent, Inc. | www.joyent.com
> 
> On Feb 12, 2018, at 6:16 AM, Gareth Howell 
> wrote:
> 
> Further to previous posts on upgrading my two home servers, I seem to have
> hit an intractable problem on the main server and now need to restore it
> from the backup server. I use ZnapZend to send `zones` and all descendents
> to the other server so I have a good replica of the main server on the
> backup.
> 
> I’ve cloned the backup server’s `zones` hierarchy on to an eSATA disk and
> connected it to the main server as `zznew`; which now has a virgin `zones`
> pool after a reinstall of SmartOS.
> 
> I’m guessing there needs to be some combination of -e or -f in the `zfs
> send -R zznew/backup/deneb/zones | zfs recv` command and that this needs to
> be run with the server in recovery mode and with both pools on alternate
> mountpoints with no datasets mounted.
> 
> Any clues: the `zfs` manual is a bit light on the -e and -f options to the
> `recv` sub-command.
> 
> Gareth
> 
> http://www.listbox.com
> 
> --
> 



---
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_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com


Re: [smartos-discuss] Restoring a server from a snapshot on another server

2018-02-12 Thread Brian Bennett
Gareth,

Doing the entire zones pool is probably superfluous. Really, the only important 
data is the contents of /opt/custom, /usbkey/config and the individual zone 
datasets (including origin images). Copying the entire zones zpool will 
duplicate things like /var, which will have duplicate mount points off of / and 
cause conflicts when the pool imports.

-- 
Brian Bennett
Systems Engineer, Cloud Operations
Joyent, Inc. | www.joyent.com 

> On Feb 12, 2018, at 6:16 AM, Gareth Howell  wrote:
> 
> Further to previous posts on upgrading my two home servers, I seem to have 
> hit an intractable problem on the main server and now need to restore it from 
> the backup server. I use ZnapZend to send `zones` and all descendents to the 
> other server so I have a good replica of the main server on the backup.
> 
> I’ve cloned the backup server’s `zones` hierarchy on to an eSATA disk and 
> connected it to the main server as `zznew`; which now has a virgin `zones` 
> pool after a reinstall of SmartOS.
> 
> I’m guessing there needs to be some combination of -e or -f in the `zfs send 
> -R zznew/backup/deneb/zones | zfs recv` command and that this needs to be run 
> with the server in recovery mode and with both pools on alternate mountpoints 
> with no datasets mounted.
> 
> Any clues: the `zfs` manual is a bit light on the -e and -f options to the 
> `recv` sub-command.
> 
> Gareth
> 


smime.p7s
Description: S/MIME cryptographic signature




---
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_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com


[smartos-discuss] Restoring a server from a snapshot on another server

2018-02-12 Thread Gareth Howell
Further to previous posts on upgrading my two home servers, I seem to have hit 
an intractable problem on the main server and now need to restore it from the 
backup server. I use ZnapZend to send `zones` and all descendents to the other 
server so I have a good replica of the main server on the backup.

I’ve cloned the backup server’s `zones` hierarchy on to an eSATA disk and 
connected it to the main server as `zznew`; which now has a virgin `zones` pool 
after a reinstall of SmartOS.

I’m guessing there needs to be some combination of -e or -f in the `zfs send -R 
zznew/backup/deneb/zones | zfs recv` command and that this needs to be run with 
the server in recovery mode and with both pools on alternate mountpoints with 
no datasets mounted.

Any clues: the `zfs` manual is a bit light on the -e and -f options to the 
`recv` sub-command.

Gareth


signature.asc
Description: Message signed with OpenPGP




---
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_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com