Re: Gloves

2015-02-08 Thread Lion Leather
Hi, We are professional manufacturer of all kinds of leather jackets and leather gloves. Please visit our website www.lionleather.com We realize that you are in the business of gloves so we would like to give you our web link so that you can directly access to the category of our gloves.

Предлагаю высококачественный кофе от швейцарского производителя

2015-02-08 Thread Степанова Злата
Предлагаем высококачественный кофе от швейцарского производителя http://bit.ly/1xqBJAo -- 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

Replacing a (or two?) failed drive(s) in RAID-1 btrfs filesystem

2015-02-08 Thread constantine
Hello everybody, I have a Raid-1 btrfs filesystem with 5 devices and I was running btrfs scrub once a week. Unfortunately, one disk (4TB) failed. I added two new (6TB each) disks in the array and now I get: # btrfs filesystem df /mnt/mountpoint Data, RAID1: total=6.58TiB, used=6.57TiB System,

Segfault when deleting device

2015-02-08 Thread Robert Mucina
Hello, I have kubuntu 14.10 with 3.17.1 kernel and 3.17 tools the setup of data pool was btrfs raid1, 3x6TB + 1x3TB. Time has come to replace old 3TB with new 3TB. As usual I added new device and deleted the old one, system started relocating chunks and I went to bed... In the morning I was

Replicate snapshot to second machine fails

2015-02-08 Thread Thomas Schneider
Hi,   I want to replicate a snapshot from PC1 to virtual machine using this command: user@pc1-gigabyte ~ $ sudo btrfs send /home/.snapshots/lmde_home_2015-02-07_02:38:21 | ssh vm1-debian sudo btrfs receive /home/.snapshots/ At subvol /home/.snapshots/lmde_home_2015-02-07_02:38:21 sudo: Kein

Re: Replicate snapshot to second machine fails

2015-02-08 Thread cwillu
This isn't a btrfs-send or a btrfs-receive question: $ echo hi | ssh machine.local sudo echo test sudo: no tty present and no askpass program specified How were you planning on providing credentials to sudo? On Sun, Feb 8, 2015 at 9:17 AM, Thomas Schneider c.mo...@web.de wrote: Hi, I want

Re: Replacing a (or two?) failed drive(s) in RAID-1 btrfs filesystem

2015-02-08 Thread Chris Murphy
What kernel and btrfs-progs version? Also include the entire dmesg. Chris Murphy -- 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: Replacing a (or two?) failed drive(s) in RAID-1 btrfs filesystem

2015-02-08 Thread constantine
I have Arch Linux: # uname -a Linux hostname 3.19.0-1-mainline #1 SMP PREEMPT Wed Dec 24 00:27:17 WET 2014 x86_64 GNU/Linux btrfs-progs 3.17.3-1 dmesg: [0.00] Initializing cgroup subsys cpuset [0.00] Initializing cgroup subsys cpu [0.00] Initializing cgroup subsys

kernel BUG at /home/apw/COD/linux/fs/btrfs/inode.c:3123

2015-02-08 Thread Jeroen Van den Keybus
Hi, I have a LUKS encrypted raw external (USB) disk mapped to /dev/mapper/sd.backup. This mapped device was default btrfs formatted. I can mount the mapped device to /mnt/backup. There used to be a subvolume in /mnt/backup, which I deleted. I now seem unable to either add a directory to

Re: Replacing a (or two?) failed drive(s) in RAID-1 btrfs filesystem

2015-02-08 Thread Chris Murphy
On Sun, Feb 8, 2015 at 2:06 PM, constantine costas.magn...@gmail.com wrote: [ 78.039253] BTRFS info (device sdc1): disk space caching is enabled [ 78.056020] BTRFS: failed to read chunk tree on sdc1 [ 78.091062] BTRFS: open_ctree failed [ 84.729944] BTRFS info (device sdc1): allowing

Re: Replacing a (or two?) failed drive(s) in RAID-1 btrfs filesystem

2015-02-08 Thread constantine
Thank you very much for your help. I do not have any recovery backup and I need these data :( Before my problems begun I was running btrfs-scrub in a weekly basis and I only got 17 uncorrectable errors for this array, concerning files that I do not care of, so I ignored them. I clearly should

Re: Replacing a (or two?) failed drive(s) in RAID-1 btrfs filesystem

2015-02-08 Thread constantine
By the way, /dev/sdc just completed the extended offline test without any error... I feel so confused, constantine On Sun, Feb 8, 2015 at 11:04 PM, constantine costas.magn...@gmail.com wrote: Thank you very much for your help. I do not have any recovery backup and I need these data :(

Re: Accepting discard to free space from disk images

2015-02-08 Thread Roman Mamedov
On Mon, 09 Feb 2015 00:17:49 -0500 Devon B. devo...@virtualcomplete.com wrote: Looking to use btrfs with disk images that contain ext4, xfs, and other possible filesystems. One of my main concerns is reclaiming disk space when files are deleted on the disk image's filesystem. Using fstrim on

[PATCH] btrfs: cleanup: remove no-used alloc_chunk in btrfs_check_data_free_space()

2015-02-08 Thread Zhaolei
From: Zhao Lei zhao...@cn.fujitsu.com int alloc_chunk is never used in this function, remove it. Signed-off-by: Zhao Lei zhao...@cn.fujitsu.com --- fs/btrfs/extent-tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c

[PATCH 0/4 v2] test-btrfs-devmgt.sh

2015-02-08 Thread Anand Jain
simple controllable test script to exercise btrfs devices and at the same time collect sysfs (optional) to test for regression. v1-v2: add some clean ups Anand Jain (4): Btrfs-progs: add regression tests for sysfs contents during btrfs device management Btrfs-progs: adds simple to use

[PATCH 1/4] Btrfs-progs: add regression tests for sysfs contents during btrfs device management

2015-02-08 Thread Anand Jain
This contains a series of btrfs device operations and at each operation the btrfs sysfs contents are logged. This helps to check if the patch is affecting any of the btrfs sysfs contents. OR This script can be used to test the only the device operations. as of now there are 32 test cases

[PATCH 2/4] Btrfs-progs: adds simple to use seed test for test-btrfs-devmgt.sh

2015-02-08 Thread Anand Jain
Signed-off-by: Anand Jain anand.j...@oracle.com --- tests/test-btrfs-devmgt.sh | 76 +- 1 file changed, 75 insertions(+), 1 deletion(-) diff --git a/tests/test-btrfs-devmgt.sh b/tests/test-btrfs-devmgt.sh index 2f75200..5facbdb 100755 ---

[PATCH 4/4] Btrfs-progs: test-btrfs-devmgt.sh have a safe defaults

2015-02-08 Thread Anand Jain
After I burnt my fingers by testing on non test disks, decided to have a safe defaults Signed-off-by: Anand Jain anand.j...@oracle.com --- tests/test-btrfs-devmgt.sh | 36 +++- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git

[PATCH 3/4] Btrfs-progs: test-btrfs-devmgt.sh support if btrfs is root fs

2015-02-08 Thread Anand Jain
Signed-off-by: Anand Jain anand.j...@oracle.com --- tests/test-btrfs-devmgt.sh | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test-btrfs-devmgt.sh b/tests/test-btrfs-devmgt.sh index 5facbdb..55bc877 100755 --- a/tests/test-btrfs-devmgt.sh +++

[PATCH 1/1] export symbol kobject_move()

2015-02-08 Thread Anand Jain
drivers/cpufreq/cpufreq.c is already using this function. And now btrfs needs it as well. export symbol kobject_move(). --- lib/kobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/kobject.c b/lib/kobject.c index 58751bb..e055c06 100644 --- a/lib/kobject.c +++ b/lib/kobject.c @@

Re: kernel BUG at /home/apw/COD/linux/fs/btrfs/inode.c:3123

2015-02-08 Thread Qu Wenruo
Original Message Subject: kernel BUG at /home/apw/COD/linux/fs/btrfs/inode.c:3123 From: Jeroen Van den Keybus jeroen.vandenkey...@gmail.com To: linux-btrfs@vger.kernel.org Date: 2015年02月09日 06:14 Hi, I have a LUKS encrypted raw external (USB) disk mapped to

Accepting discard to free space from disk images

2015-02-08 Thread Devon B.
Looking to use btrfs with disk images that contain ext4, xfs, and other possible filesystems. One of my main concerns is reclaiming disk space when files are deleted on the disk image's filesystem. Using fstrim on the mount point of the disk image or mounting the disk image (loop) with discard

RE: [PATCH v2] btrfs: Fix out-of-space bug

2015-02-08 Thread Zhao Lei
Hi, Filipe Changelog v1-v2: V1 will introduce a new bug when create a metadata bg in space of old data bg which was just removed, noticed by: Filipe David Manana fdman...@gmail.com V2 fix this bug by commit transaction after remove block grops. Well it's not specific to reusing

Re: Replacing a (or two?) failed drive(s) in RAID-1 btrfs filesystem

2015-02-08 Thread Brendan Hide
On 2015/02/09 01:58, constantine wrote: Second, SMART is only saying its internal test is good. The errors are related to data transfer, so that implicates the enclosure (bridge chipset or electronics), the cable, or the controller interface. Actually it could also be a flaky controller or RAM

Re: Replacing a (or two?) failed drive(s) in RAID-1 btrfs filesystem

2015-02-08 Thread Duncan
Chris Murphy posted on Sun, 08 Feb 2015 15:43:35 -0700 as excerpted: Confusing is that sdd1, sdi1, sdg1 have gen 0 and also have corruptions reported, just not anywhere near as many as sdc1. So I don't know what problems you have with your hardware, but they're not restricted to just one or

[PATCH] btrfs-progs: fsck-test: Add check_sudo to check valid root/sudo privilege

2015-02-08 Thread Qu Wenruo
Although fsck-test/012 uses sudo, it uses 'sudo -n', which won't prompt user to input password and will return 1 if no valid credential is found. And this makes test result quite annoying since it fails to mount and still continue, which will always fail. This patch introduced the new

[PATCH] btrfs: cleanup: remove no-used alloc_chunk in btrfs_check_data_free_space()

2015-02-08 Thread Zhaolei
From: Zhao Lei zhao...@cn.fujitsu.com int alloc_chunk is never used in this function, remove it. Signed-off-by: Zhao Lei zhao...@cn.fujitsu.com --- fs/btrfs/extent-tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c

Re: Replacing a (or two?) failed drive(s) in RAID-1 btrfs filesystem

2015-02-08 Thread Chris Murphy
On Sun, Feb 8, 2015 at 4:58 PM, constantine costas.magn...@gmail.com wrote: Which test should I do from now on (on a weekly basis?) so as to prevent similar things from happening? You should check dmesg after each scrub and at each mount. You can also use btrfs scrub -Bd mountpoint This

Re: Replacing a (or two?) failed drive(s) in RAID-1 btrfs filesystem

2015-02-08 Thread constantine
I understood my mistake on using consumer drives and this is why I bought the RED versions some days ago. I would have done this earlier if I had the money. So to sum up. I have upgraded my btrfs-progs and I have mounted the filesystem with # mount -o degraded /dev/sdi1 /mnt/mountpoint I want

Re: Replacing a (or two?) failed drive(s) in RAID-1 btrfs filesystem

2015-02-08 Thread Chris Murphy
On Sun, Feb 8, 2015 at 4:53 PM, constantine costas.magn...@gmail.com wrote: I understood my mistake on using consumer drives and this is why I bought the RED versions some days ago. I would have done this earlier if I had the money. You need to raise the SCSI command timer value for the drives

Re: Replacing a (or two?) failed drive(s) in RAID-1 btrfs filesystem

2015-02-08 Thread Chris Murphy
So I just created a small 5 device btrfs raid1 volume, and added some data to it so all the devices have been written to. Then unmounted the volume, and destroyed one of the devices. So now I have a 4 device raid1 mounted degraded. And I can still device delete another device. So one device

[PATCH 02/24] Btrfs: sysfs: fix, fs_info kobject_unregister has init_completion() twice

2015-02-08 Thread Anand Jain
From: Anand Jain anand.j...@oracle.com kobject_unregister is to handle the release of the kobject, its completion init is being called in btrfs_sysfs_add_one(), so we don't have to do the same in the open_ctree() again. Signed-off-by: Anand Jain anand.j...@oracle.com --- fs/btrfs/disk-io.c | 1

[PATCH 00/24 V2] provide frame work so that sysfs attributs from the fs_devices can be added

2015-02-08 Thread Anand Jain
This patch set will provide a framework and help to create attributes from the structure btrfs_fs_devices which are available even before fs_info is created. So by moving the parent kobject super_kobj from fs_info to btrfs_fs_devices, it will help to create attributes from the btrfs_fs_devices as

[PATCH 01/24] Btrfs: sysfs: fix, btrfs_release_super_kobj() should to clean up the kobject data

2015-02-08 Thread Anand Jain
From: Anand Jain anand.j...@oracle.com The following test case fails indicating that, thread tried to init an initialized object. kernel: [232104.016513] kobject (880006c1c980): tried to init an initialized object, something is seriously wrong. btrfs_sysfs_remove_one() self test code:

[PATCH 04/24] Btrfs: sysfs: fix, kobject pointer clean up needed after kobject release

2015-02-08 Thread Anand Jain
From: Anand Jain anand.j...@oracle.com The sysfs clean up self test like in the below code fails, since fs_info-device_dir_kobject still points to its stale kobject. Reseting this pointer will help to fix this. open_ctree() { ret = btrfs_sysfs_add_one(fs_info); :: +

[PATCH 08/24] Btrfs: sysfs: introduce function btrfs_sysfs_add_fsid() to create sysfs fsid

2015-02-08 Thread Anand Jain
From: Anand Jain anand.j...@oracle.com We need it in a seperate function so that it can be called from the device discovery thread as well. Signed-off-by: Anand Jain anand.j...@oracle.com --- fs/btrfs/sysfs.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git

[PATCH 12/24] Btrfs: sysfs: add pointer to access fs_info from fs_devices

2015-02-08 Thread Anand Jain
From: Anand Jain anand.j...@oracle.com adds fs_info pointer with struct btrfs_fs_devices. Signed-off-by: Anand Jain anand.j...@oracle.com --- fs/btrfs/sysfs.c | 4 fs/btrfs/volumes.h | 1 + 2 files changed, 5 insertions(+) diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c index

[PATCH 11/24] Btrfs: sysfs: move super_kobj and device_dir_kobj from fs_info to btrfs_fs_devices

2015-02-08 Thread Anand Jain
From: Anand Jain anand.j...@oracle.com This patch will provide a framework and help to create attributes from the structure btrfs_fs_devices which are available even before fs_info is created. So by moving the parent kobject super_kobj from fs_info to btrfs_fs_devices, it will help to create

[PATCH 21/24] Btrfs: sysfs: add support to add parent for fsid

2015-02-08 Thread Anand Jain
To support seed sysfs layout and represent seed fsid under the sprout we need the facility to create fsid under the specified parent. --- fs/btrfs/sysfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c index d0caa32..d89bf4d 100644 ---

[PATCH 15/24] Btrfs: sysfs btrfs_kobj_add_device() pass fs_devices instead of fs_info

2015-02-08 Thread Anand Jain
btrfs_kobj_add_device() does not need fs_info any more. Signed-off-by: Anand Jain anand.j...@oracle.com --- fs/btrfs/dev-replace.c | 2 +- fs/btrfs/sysfs.c | 7 +++ fs/btrfs/sysfs.h | 2 +- fs/btrfs/volumes.c | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff

[PATCH 24/24] Btrfs: sysfs: add check if super kobject is already initialized

2015-02-08 Thread Anand Jain
--- fs/btrfs/sysfs.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c index f8358d2..5c555da 100644 --- a/fs/btrfs/sysfs.c +++ b/fs/btrfs/sysfs.c @@ -750,10 +750,14 @@ int btrfs_sysfs_add_fsid(struct btrfs_fs_devices *fs_devs,

[PATCH 14/24] Btrfs: sysfs: provide framework to remove all fsid kobject

2015-02-08 Thread Anand Jain
Signed-off-by: Anand Jain anand.j...@oracle.com --- fs/btrfs/sysfs.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c index 4b5bac6..83d7535 100644 --- a/fs/btrfs/sysfs.c +++ b/fs/btrfs/sysfs.c @@ -515,7 +515,7 @@ static int

[PATCH 18/24] Btrfs: sysfs: make btrfs_sysfs_add_device() non static

2015-02-08 Thread Anand Jain
Signed-off-by: Anand Jain anand.j...@oracle.com --- fs/btrfs/sysfs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/btrfs/sysfs.h b/fs/btrfs/sysfs.h index aaff124..ac06b5c 100644 --- a/fs/btrfs/sysfs.h +++ b/fs/btrfs/sysfs.h @@ -76,4 +76,5 @@ int btrfs_kobj_rm_device(struct

[PATCH 16/24] Btrfs: sysfs btrfs_kobj_rm_device() pass fs_devices instead of fs_info

2015-02-08 Thread Anand Jain
since btrfs_kobj_rm_device() does nothing with fs_info Signed-off-by: Anand Jain anand.j...@oracle.com --- fs/btrfs/dev-replace.c | 2 +- fs/btrfs/sysfs.c | 12 ++-- fs/btrfs/sysfs.h | 2 +- fs/btrfs/volumes.c | 4 ++-- 4 files changed, 10 insertions(+), 10

[PATCH 22/24] Btrfs: sysfs: don't fail seeding for the sake of sysfs kobject issue

2015-02-08 Thread Anand Jain
Signed-off-by: Anand Jain anand.j...@oracle.com --- fs/btrfs/volumes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 51873ec..1490723 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -2249,7 +2249,8 @@ int

[PATCH 20/24] Btrfs: sysfs: separate kobject and attribute creation

2015-02-08 Thread Anand Jain
Signed-off-by: Anand Jain anand.j...@oracle.com --- fs/btrfs/disk-io.c | 18 +- fs/btrfs/sysfs.c | 15 ++- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 0cd6550..4b7f3b8 100644 --- a/fs/btrfs/disk-io.c

[PATCH 17/24] Btrfs: sysfs: make btrfs_sysfs_add_fsid() non static

2015-02-08 Thread Anand Jain
Signed-off-by: Anand Jain anand.j...@oracle.com --- fs/btrfs/sysfs.c | 2 +- fs/btrfs/sysfs.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c index 4c86e62..2dbb064 100644 --- a/fs/btrfs/sysfs.c +++ b/fs/btrfs/sysfs.c @@ -727,7 +727,7 @@

[PATCH 23/24] Btrfs: sysfs: support seed devices in the sysfs layout

2015-02-08 Thread Anand Jain
This adds an enhancement to show the seed fsid and devices. The way sprouting handles fs_devices: clone seed fs_devices and add to the fs_uuids mem copy seed fs_devices and assign to fs_devices-seed (move dev_list) evacuate seed fs_devices contents to hold sprout fs devices

[PATCH 09/24] Btrfs: sysfs: let default_attrs be separate from the kset

2015-02-08 Thread Anand Jain
From: Anand Jain anand.j...@oracle.com As of now btrfs_attrs are provided using the default_attrs through the kset. Separate them and create the default_attrs using the sysfs_create_files instead. By doing this we will have the flexibility that device discovery thread could create fsid kobject.

Re: Replacing a (or two?) failed drive(s) in RAID-1 btrfs filesystem

2015-02-08 Thread constantine
Second, SMART is only saying its internal test is good. The errors are related to data transfer, so that implicates the enclosure (bridge chipset or electronics), the cable, or the controller interface. Actually it could also be a flaky controller or RAM on the drive itself too which I don't

Re: Replacing a (or two?) failed drive(s) in RAID-1 btrfs filesystem

2015-02-08 Thread Chris Murphy
On Sun, Feb 8, 2015 at 4:09 PM, constantine costas.magn...@gmail.com wrote: By the way, /dev/sdc just completed the extended offline test without any error... I feel so confused, First, we know from a number of studies, including the famous (and now kinda old) Google study that a huge