Best approach to jails + zfs

2013-01-25 Thread bsd
Hi, 

I wanted to have the point of view of the community on the best approach in 
order to handle a quite large system with couple of jails (shouldn't have more 
than 5 to 10). Whole system is based on zfs. I'll use this as a backup server.

I have been using the handbook approach so far. It is quite stable but the 
linked directories inside each jail is quite error prone and may be confusing. 
With this approach you can update all your jails at once… this is quite 
tempting, but if you have an error… all your jails are gone at once ! == you 
can't afford to have a kernel compile problem while updating your system or 
you're dead !! 

http://www.freebsd.org/doc//handbook/jails-build.html


The other approach that I have found is to use create a base jail system using 
sysinstall and then zfs snapshot to clone It. You then use this to create a 
jail. You end up with couple of independent jails which are not linked to each 
other in any way. You can / need to update each jail one by one. 

http://vocalbit.com/article/402/freebsd-jails-using-zfs-and-bsdinstall


• I wanted to know if the handbook approach is still the most recent one 
considering the latest progress in FBSD jail management ? 

• I wanted to know if you had some mixed approach that can leverage the risk 
of the handbook approach ? 

• Last but not least - do you have any good pointer to recent guide / howto / 
studies on the subject ? 


Thanks 


––
- Grégory Bernard Director -
--- www.osnet.eu ---
-- Your provider of OpenSource appliances --
––
OSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetO

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Best approach to jails + zfs

2013-01-25 Thread Steve O'Hara-Smith
On Fri, 25 Jan 2013 18:25:06 +0100
bsd b...@todoo.biz wrote:

 Hi, 
 
 I wanted to have the point of view of the community on the best approach
 in order to handle a quite large system with couple of jails (shouldn't
 have more than 5 to 10). Whole system is based on zfs. I'll use this as a
 backup server.

You might like the sysutils/ezjail port - I use it for a very
similar purpose and find it works well.

-- 
Steve O'Hara-Smith st...@sohara.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Best approach to jails + zfs

2013-01-25 Thread bsd
Le 25 janv. 2013 à 18:41, Steve O'Hara-Smith a écrit :

 On Fri, 25 Jan 2013 18:25:06 +0100
 bsd b...@todoo.biz wrote:
 
 Hi, 
 
 I wanted to have the point of view of the community on the best approach
 in order to handle a quite large system with couple of jails (shouldn't
 have more than 5 to 10). Whole system is based on zfs. I'll use this as a
 backup server.
 
   You might like the sysutils/ezjail port - I use it for a very
 similar purpose and find it works well.
 
 -- 
 Steve O'Hara-Smith st...@sohara.org



I am a bit skeptical on the third party script approach. 

How stable has It been ? 

I have been using warden with PC-BSD TrueOS for testing and I have 
encountered all sorts of problems (not stable when you have two pools of disks 
- can't delete jail…)… Quite interesting approach, but not mature enough to be 
launched in production. 

I have finally gotten back to the FreeBSD root file system which I am using 
since couple of years now. It is not fancy, It does not provide script to ease 
your pain… But you understand what you are doing and It does what you tell him 
to do !! 

ZFS has introduced a new challenge, but now that I have understood (more or 
less) how It is working, I found It really great! 
Just trying to figure out the best way to use both Jail + ZFS. 


But I might re-consider my position… Does ezjail comply with the latest FreeBSD 
9 / 9.1 advances in jail / ZFS management improvement ? 


Thanks for your feedback. 


––
- Grégory Bernard Director -
--- www.osnet.eu ---
-- Your provider of OpenSource appliances --
––
OSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetO

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Best approach to jails + zfs

2013-01-25 Thread Steve O'Hara-Smith
On Fri, 25 Jan 2013 19:14:45 +0100
bsd b...@todoo.biz wrote:

 Le 25 janv. 2013 à 18:41, Steve O'Hara-Smith a écrit :
 
  On Fri, 25 Jan 2013 18:25:06 +0100
  bsd b...@todoo.biz wrote:
  
  Hi, 
  
  I wanted to have the point of view of the community on the best
  approach in order to handle a quite large system with couple of jails
  (shouldn't have more than 5 to 10). Whole system is based on zfs. I'll
  use this as a backup server.
  
  You might like the sysutils/ezjail port - I use it for a very
  similar purpose and find it works well.
  
  -- 
  Steve O'Hara-Smith st...@sohara.org
 
 
 
 I am a bit skeptical on the third party script approach. 
 
 How stable has It been ? 

Rock solid - for me YMMV of course. The underpinnings are quite
straightforward so it should be easy to fix anything that does go astray.

 ZFS has introduced a new challenge, but now that I have understood (more
 or less) how It is working, I found It really great! Just trying to
 figure out the best way to use both Jail + ZFS. 
 
 But I might re-consider my position… Does ezjail comply with the latest
 FreeBSD 9 / 9.1 advances in jail / ZFS management improvement ? 

I'm using it on a 9,1 box to admin a bunch of 9.1 jails. It doesn't
require ZFS but it can use it (along with a variety of other storage
options). It uses standard ZFS commands to do it's work with ZFS.

It's just a shell script program (albeit a 1500 line one), I might
have written a simpler, cruder one myself had it not existed and worked.

-- 
Steve O'Hara-Smith st...@sohara.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org