Re: [Lxc-users] rootfs backup

2011-01-10 Thread Trent W. Buck
matthew byers faintstlsa...@gmail.com
writes:

 Yea i know btrfs has snapshot abilities but my entire server is ext4.

There is a tool to convert an ext filesystem to btrfs IN-PLACE.

I do not recommend it, because I do not recommend btrfs at all -- it is
not production-ready.  (I do use it at home; YMMV.)


--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] rootfs backup

2011-01-07 Thread matthew byers
Yea i know btrfs has snapshot abilities but my entire server is ext4. I
could format a extra drive with btrfs. Would that allow me to use btrfs for
containers? Are there any other ideas or processes i can try out?

On Thu, Jan 6, 2011 at 12:50 PM, C Anthony Risinger anth...@extof.mewrote:

 On Thu, Jan 6, 2011 at 12:02 PM, Noah Campbell noahcampb...@gmail.com
 wrote:
 
  With my limited knowledge of lxc, I would recommend looking at a
 filesystem that supports snapshots.

 yes, in the past i've used btrfs for this (.32 kernel).  some will say
 that it's not suitable for use (and in some situations it may not be),
 but imo, it's stable enough for my uses; i've had a server running
 since .32 was released (2 yrs?) hosting several btrfs-based containers
 without any issue... and btrfs was only considered ready for early
 adopters at that point.

 using a couple of template subvolumes, i was able to snapshot them
 into usable domains in  1 second, and create backups just as fast,
 while at the same time reusing blocks and saving enormous amounts of
 disk space.

 works like a treat :-) i plan on using it extensively very soon for an
 updated KVM+LXC server using libvirt.

 C Anthony

 psdepending on how... bold... you are, there are LZO compression
 patches queued for .38:

 http://www.spinics.net/lists/linux-btrfs/msg07748.html

 and some dedup work is basic but workable:

 http://www.spinics.net/lists/linux-btrfs/msg07819.html
 http://www.spinics.net/lists/linux-btrfs/msg07820.html

 both will be very useful for containerized environments.




-- 
God Bless
--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl ___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] rootfs backup

2011-01-07 Thread Daniel Lezcano
On 01/07/2011 03:18 AM, matthew byers wrote:
 Yea i know btrfs has snapshot abilities but my entire server is ext4. I
 could format a extra drive with btrfs. Would that allow me to use btrfs for
 containers? Are there any other ideas or processes i can try out?

You can create a sparse file, format it as btrfs and mount it somewhere 
as a rootfs for the container. Otherwise, using the lxc-0.7.3 version 
you can specify this image file as the rootfs directly.



--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] rootfs backup

2011-01-06 Thread C Anthony Risinger
On Thu, Jan 6, 2011 at 12:02 PM, Noah Campbell noahcampb...@gmail.com wrote:

 With my limited knowledge of lxc, I would recommend looking at a filesystem 
 that supports snapshots.

yes, in the past i've used btrfs for this (.32 kernel).  some will say
that it's not suitable for use (and in some situations it may not be),
but imo, it's stable enough for my uses; i've had a server running
since .32 was released (2 yrs?) hosting several btrfs-based containers
without any issue... and btrfs was only considered ready for early
adopters at that point.

using a couple of template subvolumes, i was able to snapshot them
into usable domains in  1 second, and create backups just as fast,
while at the same time reusing blocks and saving enormous amounts of
disk space.

works like a treat :-) i plan on using it extensively very soon for an
updated KVM+LXC server using libvirt.

C Anthony

psdepending on how... bold... you are, there are LZO compression
patches queued for .38:

http://www.spinics.net/lists/linux-btrfs/msg07748.html

and some dedup work is basic but workable:

http://www.spinics.net/lists/linux-btrfs/msg07819.html
http://www.spinics.net/lists/linux-btrfs/msg07820.html

both will be very useful for containerized environments.

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users