Managing storage (incl. Btrfs) on Linux with openATTIC

2016-06-10 Thread Lenz Grimmer
Hi there,

if you're using Btrfs on Linux for file serving purposes, i'd like to invite 
you to take a look at our open source storage management project "openATTIC":

  http://openattic.org/

We provide a web UI and RESTful API to create CIFS/NFS shares on top of Btrfs 
and other file systems, including monitoring and snapshots. Other file systems 
like ext4, XFS or ZFS are supported, too. We also support sharing block volumes 
via iSCSI and Fibre Channel via LIO and are currently working on adding Ceph 
Management and Monitoring support as well.

openATTIC 2.0 is currently in development and we're looking for more testers 
and feedback. Packages for the Debian/Ubuntu, RHEL/CentOS and SUSE are 
available via apt/yum repos.

For the time being, we don't yet support all the nifty Btrfs features (e.g. 
RAID levels), but you can already use openATTIC to manage (e.g. creating and 
snapshotting) and monitor Btrfs file systems via the WebUI. We plan to further 
extend the Btrfs functionality incrementally with each release. Some use cases 
we have in mind are documented here: 
https://wiki.openattic.org/display/OP/openATTIC+Storage+Management+Use+Cases

So if you're looking for a free (GPLv2) storage management tool that supports 
your favorite file system, we'd be glad if you give openATTIC a try!

Thanks and sorry for the noise,

Lenz
-- 
 Lenz Grimmer <l...@grimmer.com> - http://www.lenzg.net/
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 0/4] filter snapshot(s) by its parent uuid

2012-10-22 Thread Lenz Grimmer
On 10/19/2012 10:37 AM, Rory Campbell-Lange wrote:

 From my perspective as a user I would be grateful if the following changes in
 syntax for listing subvolumes could be considered:
 
 In addition to 
 
 btrfs subvolume list [-apurts] [-g [+|-]value] [-c [+|-]value] 
 [--sort=gen,ogen,rootid,path] path
 btrfs su list [-apurts] [-g [+|-]value] [-c [+|-]value] 
 [--sort=gen,ogen,rootid,path] path
 List subvolumes (and snapshots)
 (and Anand's patch to allow path/subpath)
 
 I believe the following shortcuts may be useful
 
 btrfs subvolumes [-apurts] [-g [+|-]value] [-c [+|-]value] 
 [--sort=gen,ogen,rootid,path] path[/subpath]
 btrfs sl [-apurts] [-g [+|-]value] [-c [+|-]value] 
 [--sort=gen,ogen,rootid,path] path[/subpath]
 
 Although from a technical perspective 'subvolume list' may be logical, listing
 subvolumes (plural) seems like a different sort of operation to those relating
 to a subvolume (singular) for create/alter/show/delete/snapshot operations.

+1 to this proposal (FWIW) - thanks for making the user interface more
intuitive :)

-- 
  Lenz Grimmer l...@grimmer.com - http://www.lenzg.net/



signature.asc
Description: OpenPGP digital signature


Re: Error compiling btrfs-tools from git (undefined reference to `pthread_create')

2012-06-29 Thread Lenz Grimmer
Hi,

thank you for your reply.

On 06/27/2012 02:20 PM, cwillu wrote:
 On Wed, Jun 27, 2012 at 6:11 AM, Lenz Grimmer l...@grimmer.com wrote:
 On Ubuntu 11.10 Oneiric with gcc 4.6.1, compiling the btrfs tools from git
 fails for me with the following error:
 
 Which git repo?
 git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git
 builds on ubuntu just fine (just checked on a fresh checkout), and
 likewise the integration repo (but note that the integration repo's
 master branch is not useful to build; you need to check out one of the
 actual integration branches as described on the wiki).

That's likely the issue - the following commands reproduce the compile error
for me:

git clone http://git.darksatanic.net/repo/btrfs-progs-unstable.git btrfs-progs
cd btrfs-progs
make
[...]
gcc -lpthread -g -Werror -Os -o btrfs btrfs.o btrfs_cmds.o scrub.o \
ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o 
root-tree.o
dir-item.o file-item.o inode-item.o inode-map.o crc32c.o rbtree.o
extent-cache.o extent_io.o volumes.o utils.o btrfs-list.o btrfslabel.o  -luuid
scrub.o: In function `scrub_start':
/space/tmp/btrfs-progs/scrub.c:1342: undefined reference to `pthread_create'
/space/tmp/btrfs-progs/scrub.c:1360: undefined reference to `pthread_create'
/space/tmp/btrfs-progs/scrub.c:1374: undefined reference to `pthread_join'
/space/tmp/btrfs-progs/scrub.c:1430: undefined reference to `pthread_cancel'
/space/tmp/btrfs-progs/scrub.c:1432: undefined reference to `pthread_join'
collect2: ld returned 1 exit status


However, using the integration-20120605 branch compiles fine. Thanks and sorry
for the noise!

Bye,
LenZ
-- 
  Lenz Grimmer l...@grimmer.com - http://www.lenzg.net/





signature.asc
Description: OpenPGP digital signature


btrfs filesystem defragment exits with non-zero return code (20) upon success

2012-06-27 Thread Lenz Grimmer
Hi,

running btrfs filesystem defrag somehow always returns a non-zero exit code,
even when it succeeds:

[lenz@metis btrfs-progs]% sudo ./btrfs filesystem defrag -v /mnt
/mnt
Btrfs v0.19-102-g2482539-dirty
[lenz@metis btrfs-progs]% echo $?
20
[lenz@metis btrfs-progs]% sudo ./btrfs filesystem defrag -v /dev/loop0
/dev/loop0
ERROR: defrag failed on /dev/loop0 - Invalid argument
Btrfs v0.19-102-g2482539-dirty
total 1 failures
[lenz@metis btrfs-progs]% echo $?
1
[lenz@metis btrfs-progs]% sudo ./btrfs filesystem defrag -v /dev/loop0 
/dev/loop1
/dev/loop0
ERROR: defrag failed on /dev/loop0 - Invalid argument
/dev/loop1
ERROR: defrag failed on /dev/loop1 - Invalid argument
Btrfs v0.19-102-g2482539-dirty
total 2 failures
[lenz@metis btrfs-progs]% echo $?
1
[lenz@metis btrfs-progs]% sudo ./btrfs filesystem defrag -v /tmp
/tmp
ERROR: defrag failed on /tmp - Inappropriate ioctl for device
Btrfs v0.19-102-g2482539-dirty
total 1 failures
[lenz@metis btrfs-progs]% echo $?
1

I'm no C programmer, but looking at the end of the do_defrag function in
btrfs_cmds.c, I wonder if the last return errors + 20 is correct? In case
that errors is greater than zero, the function would be left via the exit(1)
anyway, wouldn't it? In that case, wouldn't return 0 at the end be more
appropriate?

[SNIP]
  if (errors) {
fprintf(stderr, total %d failures\n, errors);
exit(1);
  }

  free(av);
  return errors + 20;
[SNIP]

Thanks!

-- 
  Lenz Grimmer l...@grimmer.com - http://www.lenzg.net/



signature.asc
Description: OpenPGP digital signature


Error compiling btrfs-tools from git (undefined reference to `pthread_create')

2012-06-27 Thread Lenz Grimmer
On Ubuntu 11.10 Oneiric with gcc 4.6.1, compiling the btrfs tools from git
fails for me with the following error:

[lenz@metis btrfs-progs]% make
bash version.sh
gcc -lpthread -g -Werror -Os -o btrfs btrfs.o btrfs_cmds.o scrub.o \
ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o 
root-tree.o
dir-item.o file-item.o inode-item.o inode-map.o crc32c.o rbtree.o
extent-cache.o extent_io.o volumes.o utils.o btrfs-list.o btrfslabel.o  -luuid
scrub.o: In function `scrub_start':
/space/tmp/btrfs-progs/scrub.c:1342: undefined reference to `pthread_create'
/space/tmp/btrfs-progs/scrub.c:1360: undefined reference to `pthread_create'
/space/tmp/btrfs-progs/scrub.c:1374: undefined reference to `pthread_join'
/space/tmp/btrfs-progs/scrub.c:1430: undefined reference to `pthread_cancel'
/space/tmp/btrfs-progs/scrub.c:1432: undefined reference to `pthread_join'
collect2: ld returned 1 exit status
make: *** [btrfs] Error 1

The following change fixed this for me, not sure if it's the appropriate 
approach:

diff --git a/Makefile b/Makefile
index edee1a0..9e3a06f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 CC = gcc
 AM_CFLAGS = -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2
-CFLAGS = -g -Werror -Os
+CFLAGS = -g -Werror -Os -pthread
 objects = ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o \
  root-tree.o dir-item.o file-item.o inode-item.o \
  inode-map.o crc32c.o rbtree.o extent-cache.o extent_io.o \


-- 
  Lenz Grimmer l...@grimmer.com - http://www.lenzg.net/



signature.asc
Description: OpenPGP digital signature


Re: [ANN] btrfs.wiki.kernel.org with up-to-date content again

2012-05-10 Thread Lenz Grimmer
On Mon, May 7, 2012 at 5:44 PM, David Sterba d...@jikos.cz wrote:

 the time of temporary wiki hosted at btrfs.ipv5.de is over, the content has
 been migrated back to official site at

     http://btrfs.wiki.kernel.org

 (ipv5.de wiki is set to redirect there).

Excellent, great job! Much appreciated. However,
https://btrfs.wiki.kernel.org/index.php/Special:RecentChanges shows an
alarming amount of new accounts (likely from spambots). Are there any
plans to set up anti-spam measurements on this Wiki?

Lenz
--
 Lenz Grimmer l...@grimmer.com -  http://www.lenzg.net/
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [RFC] btrfs auto snapshot

2011-08-17 Thread Lenz Grimmer
Hi Anand,

On Wed, Aug 17, 2011 at 11:24, Anand Jain anand.j...@oracle.com wrote:

 And a rough implementation design is here below. (As of now this does
 not include the GNOME integration since I have no idea how to do that).

Very cool idea! With regards to the Gnome integration, you might want to take
a look at what the Solaris folks did for Nautilus - I really liked the
UI and the
integration with ZFS:

http://src.opensolaris.org/source/xref/jds/spec-files/branches/gnome-2-30/patches/nautilus-14-zfs-snapshot.diff

Bye,
        LenZ
--
 Lenz Grimmer l...@grimmer.com -  http://www.lenzg.net/
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html