On Wed, May 13, 2015 at 12:30:23PM +0100, Filipe David Manana wrote: > On Wed, May 13, 2015 at 12:11 PM, Hugo Mills <hugo@xxxxxxxxxxxxx> wrote: > > On Wed, May 13, 2015 at 12:59:48PM +0200, Torbjørn wrote: > >> On 13. mai 2015 12:47, David Alcorn wrote: > >> >I run Debian Jessie with a kernel upgrade to 4.0.0 from the Debian > >> >experimental repository. My BTRFS-Tools remain at 3.17.-1 I wanted > >> >to convert a RAID0 array on /dev/sdb3 and /dev sdc3 from RAID0 to > >> >RAID1 so I ran the commands: > >> > > >> > mount /dev/sdb3 /mnt > >> > btrfs device add -f /dev/sdc3 /mnt > >> > btrfs balance start -dconvert=raid1 -mconvert=raid1 /mnt > >> > > >> >All appeared well with output similar to "395 of 395 chunks converted" > >> >but I think nothing happened. The array contains a subvolume @export > >> >with size (per "du -sh @export") of 442G. The pertinent output from > >> >"btrfs filesystem show" reports: > >> > > >> > Label: none uuid: 647eb0f8-7732-40bc-a4a4-0d1b31a8ae16 > >> > Total devices 2 FS bytes used 443.05GiB > >> > devid 1 size 1.36TiB used 223.03GiB path /dev/sdb3 > >> > devid 2 size 1.36TiB used 223.03GiB path /dev/sdc3 > >> > > >> >My array remains RAID0 if I understand the above output correctly. > >> >This output persist through a reboot and no data was lost. Where did > >> >I err? > >> > >> For info about raid levels, use "btrfs filesystem df <mount point>" > >> It should give you something like this: > >> Data, RAID1: total=12.97GiB, used=12.28GiB > >> System, RAID1: total=32.00MiB, used=16.00KiB > >> Metadata, RAID1: total=1.00GiB, used=334.53MiB > >> GlobalReserve, single: total=112.00MiB, used=0.00B > > > > If this still says RAID0, then you've probably hit a known (and > > since fixed) bug that stops restripe operations from working: > > As far as I can see, it hasn't been fixed as of 4.1-rc3 yet, nor any > patch to fix it was posted to this list yet (other than Omar's revert > patch). Ah, OK, I stand corrected. I thought it had been fixed, but I was probably remembering Omar's revert patch. Hugo. > > http://www.mail-archive.com/linux-btrfs%40vger.kernel.org/msg43313.html > > > > Hugo. > > -- Hugo Mills | Purrmetheus stole fur from the Dogs, and was chained hugo@... carfax.org.uk | up for beagles to eat his liver. http://carfax.org.uk/ | PGP: E2AB1DE4 | Rich and Hugo
Attachment:
signature.asc
Description: Digital signature
