BTRFS over LVM remounts read-only

2014-01-11 Thread MegaBrutal
Hello, I'm using BTRFS over LVM and after some time of usage (days or hours), it just remounts itself, and I don't see the reason why, while it is said to be fault-tolerant. It is possible that I have bad sectors on the disk, though I don't find it likely. Even then, I don't think bad sectors

Re: BTRFS over LVM remounts read-only

2014-01-11 Thread Hugo Mills
On Sat, Jan 11, 2014 at 03:32:26PM +0100, MegaBrutal wrote: Hello, I'm using BTRFS over LVM and after some time of usage (days or hours), it just remounts itself, and I don't see the reason why, while it is said to be fault-tolerant. It is possible that I have bad sectors on the disk,

Re: BTRFS over LVM remounts read-only

2014-01-11 Thread MegaBrutal
2014/1/11 Hugo Mills h...@carfax.org.uk: [60631.481913] attempt to access beyond end of device [60631.481935] dm-1: rw=1073, want=42917896, limit=42917888 [60631.481941] btrfs_dev_stat_print_on_error: 34 callbacks suppressed [60631.481949] btrfs: bdev /dev/mapper/vmhost--vg-vmhost--rootfs

Re: BTRFS over LVM remounts read-only

2014-01-11 Thread Hugo Mills
On Sat, Jan 11, 2014 at 06:10:35PM +0100, MegaBrutal wrote: 2014/1/11 Hugo Mills h...@carfax.org.uk: [60631.481913] attempt to access beyond end of device [60631.481935] dm-1: rw=1073, want=42917896, limit=42917888 [60631.481941] btrfs_dev_stat_print_on_error: 34 callbacks suppressed

Re: BTRFS over LVM remounts read-only

2014-01-11 Thread Chris Murphy
On Jan 11, 2014, at 10:10 AM, MegaBrutal megabru...@gmail.com wrote: 2014/1/11 Hugo Mills h...@carfax.org.uk: It looks like you've shrunk the LV without first shrinking the filesystem. Depending on how much you shrunk it by, the odds are fairly good that significant chunks of the FS are

Re: BTRFS over LVM remounts read-only

2014-01-11 Thread Szalma László
2014-01-11 18:10 keltezéssel, MegaBrutal írta: How can I shrink the FS to the correct size right now, ensuring that I really shrink it to the exact LV size? btrfs fi re 10G /dev/mapper/vg-lv lvresize -L 10G vg/lv Grub can boot a root on lv (with appropriate initrd), but the grub itself has

Re: BTRFS over LVM remounts read-only

2014-01-11 Thread Roman Mamedov
On Sat, 11 Jan 2014 19:48:55 +0100 Szalma László dbl...@dblaci.hu wrote: 2014-01-11 18:10 keltezéssel, MegaBrutal írta: How can I shrink the FS to the correct size right now, ensuring that I really shrink it to the exact LV size? btrfs fi re 10G /dev/mapper/vg-lv lvresize -L 10G vg/lv

Re: BTRFS over LVM remounts read-only

2014-01-11 Thread Szalma László
Yeah, I used to do the way you wrote before, but in fact, G means gigabyte (1024^3), and works the same with both tools. On smaller units You have to watch for the rounding to extent size (4M by default). Moreover, some could use: btrfs fi re -2G /mount (well, I just noticed, I

Re: BTRFS over LVM remounts read-only

2014-01-11 Thread Chris Murphy
On Jan 11, 2014, at 11:48 AM, Szalma László dbl...@dblaci.hu wrote: but the grub itself has to be on a standard bios bootable partition (as far as I know) Negative. GRUB2 has support for pretty much everything out there: ZFS, Btrfs, LVM, LUKS, md raid 0, 1, 10, 5, 6. It will boot Btrfs

Re: BTRFS over LVM remounts read-only

2014-01-11 Thread Chris Murphy
On Jan 11, 2014, at 12:16 PM, Roman Mamedov r...@romanrm.net wrote: On Sat, 11 Jan 2014 19:48:55 +0100 Szalma László dbl...@dblaci.hu wrote: 2014-01-11 18:10 keltezéssel, MegaBrutal írta: How can I shrink the FS to the correct size right now, ensuring that I really shrink it to the exact

Re: BTRFS over LVM remounts read-only

2014-01-11 Thread Duncan
Chris Murphy posted on Sat, 11 Jan 2014 16:03:20 -0700 as excerpted: On Jan 11, 2014, at 11:48 AM, Szalma László dbl...@dblaci.hu wrote: but the grub itself has to be on a standard bios bootable partition (as far as I know) Negative. GRUB2 has support for pretty much everything out there: