* Can't resize second device in RAID1 [not found] <CADy=jfVZjRAE049OiD6VkoKkpzZh9e_=V62AvuVwxyHZyfuU1w@mail.gmail.com> @ 2012-01-13 23:12 ` Marco L. Crociani 2012-01-13 23:17 ` Hugo Mills 0 siblings, 1 reply; 6+ messages in thread From: Marco L. Crociani @ 2012-01-13 23:12 UTC (permalink / raw) To: linux-btrfs Hi, the situation: Label: 'RootFS'=C2=A0 uuid: c87975a0-a575-405e-9890-d3f7f25bbd96 =C2=A0=C2=A0=C2=A0 Total devices 2 FS bytes used 284.98GB =C2=A0=C2=A0=C2=A0 devid=C2=A0=C2=A0=C2=A0 2 size 311.82GB used 286.51G= B path /dev/sdb3 =C2=A0=C2=A0=C2=A0 devid=C2=A0=C2=A0=C2=A0 1 size 897.76GB used 286.51G= B path /dev/sda3 RootFS created when sda3 was 897.76GB and sdb3 311.82GB. I have now freed other space on sdb. So I deleted sdb3 and recreated it occupying all available space. Disk /dev/sdb: 2000 GB, 2000396321280 bytes 255 heads, 63 sectors/track, 243201 cylinders Units =3D cylinders of 16065 * 512 =3D 8225280 bytes /dev/sdb3=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 54=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 117249=C2=A0=C2=A0 941= 368837=C2=A0=C2=A0 83=C2=A0 Linux same as /dev/sda3=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 54=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 117249=C2=A0=C2=A0 941= 368837=C2=A0=C2=A0 83=C2=A0 Linux # ./btrfs filesystem resize max /mnt/RootFS Resize '/mnt/RootFS' of 'max' on dmesg I get only: [=C2=A0 657.438464] btrfs: new size for /dev/sda3 is 963962208256 # ./btrfs fi sh Label: 'RootFS'=C2=A0 uuid: c87975a0-a575-405e-9890-d3f7f25bbd96 =C2=A0=C2=A0=C2=A0 Total devices 2 FS bytes used 284.98GB =C2=A0=C2=A0=C2=A0 devid=C2=A0=C2=A0=C2=A0 2 size 311.82GB used 286.51G= B path /dev/sdb3 =C2=A0=C2=A0=C2=A0 devid=C2=A0=C2=A0=C2=A0 1 size 897.76GB used 286.51G= B path /dev/sda3 /dev/sdb3 is the same. How can I resize /dev/sdb3? Regards, -- Marco Lorenzo Crociani, marco.crociani@gmail.com -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Can't resize second device in RAID1 2012-01-13 23:12 ` Can't resize second device in RAID1 Marco L. Crociani @ 2012-01-13 23:17 ` Hugo Mills 2012-01-13 23:32 ` Marco L. Crociani 0 siblings, 1 reply; 6+ messages in thread From: Hugo Mills @ 2012-01-13 23:17 UTC (permalink / raw) To: Marco L. Crociani; +Cc: linux-btrfs [-- Attachment #1: Type: text/plain, Size: 1701 bytes --] On Sat, Jan 14, 2012 at 12:12:06AM +0100, Marco L. Crociani wrote: > Hi, > the situation: > Label: 'RootFS' uuid: c87975a0-a575-405e-9890-d3f7f25bbd96 > Total devices 2 FS bytes used 284.98GB > devid 2 size 311.82GB used 286.51GB path /dev/sdb3 > devid 1 size 897.76GB used 286.51GB path /dev/sda3 > > RootFS created when sda3 was 897.76GB and sdb3 311.82GB. > I have now freed other space on sdb. So I deleted sdb3 and recreated > it occupying all available space. > > Disk /dev/sdb: 2000 GB, 2000396321280 bytes > 255 heads, 63 sectors/track, 243201 cylinders > Units = cylinders of 16065 * 512 = 8225280 bytes > /dev/sdb3 54 117249 941368837 83 Linux > > same as > /dev/sda3 54 117249 941368837 83 Linux > > # ./btrfs filesystem resize max /mnt/RootFS > Resize '/mnt/RootFS' of 'max' > > on dmesg I get only: > [ 657.438464] btrfs: new size for /dev/sda3 is 963962208256 > > # ./btrfs fi sh > Label: 'RootFS' uuid: c87975a0-a575-405e-9890-d3f7f25bbd96 > Total devices 2 FS bytes used 284.98GB > devid 2 size 311.82GB used 286.51GB path /dev/sdb3 > devid 1 size 897.76GB used 286.51GB path /dev/sda3 > > /dev/sdb3 is the same. > > How can I resize /dev/sdb3? I think the syntax you need is btrfs fi resize max /mnt/RootFS:2 But I could be wrong. If it works, can you add it to the UseCases page on the wiki, please? Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Someone's been throwing dead sheep down my Fun Well --- [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 190 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Can't resize second device in RAID1 2012-01-13 23:17 ` Hugo Mills @ 2012-01-13 23:32 ` Marco L. Crociani 2012-01-14 14:42 ` Sander 0 siblings, 1 reply; 6+ messages in thread From: Marco L. Crociani @ 2012-01-13 23:32 UTC (permalink / raw) To: Hugo Mills, Marco L. Crociani, linux-btrfs On Sat, Jan 14, 2012 at 12:17 AM, Hugo Mills <hugo@carfax.org.uk> wrote= : > On Sat, Jan 14, 2012 at 12:12:06AM +0100, Marco L. Crociani wrote: >> Hi, >> the situation: >> Label: 'RootFS'=C2=A0 uuid: c87975a0-a575-405e-9890-d3f7f25bbd96 >> =C2=A0=C2=A0=C2=A0 Total devices 2 FS bytes used 284.98GB >> =C2=A0=C2=A0=C2=A0 devid=C2=A0=C2=A0=C2=A0 2 size 311.82GB used 286.= 51GB path /dev/sdb3 >> =C2=A0=C2=A0=C2=A0 devid=C2=A0=C2=A0=C2=A0 1 size 897.76GB used 286.= 51GB path /dev/sda3 >> >> RootFS created when sda3 was 897.76GB and sdb3 311.82GB. >> I have now freed other space on sdb. So I deleted sdb3 and recreated >> it occupying all available space. >> >> Disk /dev/sdb: 2000 GB, 2000396321280 bytes >> 255 heads, 63 sectors/track, 243201 cylinders >> Units =3D cylinders of 16065 * 512 =3D 8225280 bytes >> /dev/sdb3=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 54=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 117249=C2=A0=C2=A0 = 941368837=C2=A0=C2=A0 83=C2=A0 Linux >> >> same as >> /dev/sda3=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 54=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 117249=C2=A0=C2=A0 = 941368837=C2=A0=C2=A0 83=C2=A0 Linux >> >> # ./btrfs filesystem resize max /mnt/RootFS >> Resize '/mnt/RootFS' of 'max' >> >> on dmesg I get only: >> [=C2=A0 657.438464] btrfs: new size for /dev/sda3 is 963962208256 >> >> # ./btrfs fi sh >> Label: 'RootFS'=C2=A0 uuid: c87975a0-a575-405e-9890-d3f7f25bbd96 >> =C2=A0=C2=A0=C2=A0 Total devices 2 FS bytes used 284.98GB >> =C2=A0=C2=A0=C2=A0 devid=C2=A0=C2=A0=C2=A0 2 size 311.82GB used 286.= 51GB path /dev/sdb3 >> =C2=A0=C2=A0=C2=A0 devid=C2=A0=C2=A0=C2=A0 1 size 897.76GB used 286.= 51GB path /dev/sda3 >> >> /dev/sdb3 is the same. >> >> How can I resize /dev/sdb3? > > =C2=A0 I think the syntax you need is btrfs fi resize max /mnt/RootFS= :2 > It's wrong :( =2E/btrfs fi resize max /mnt/RootFS:2 ERROR: can't access to '/mnt/RootFS:2' > =C2=A0 But I could be wrong. If it works, can you add it to the UseCa= ses > page on the wiki, please? Sure. > > =C2=A0 Hugo. > > -- > =3D=3D=3D Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.= org.uk =3D=3D=3D > =C2=A0PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.= org.uk > =C2=A0 =C2=A0 =C2=A0 --- Someone's been throwing dead sheep down my F= un Well --- --=20 Marco Lorenzo Crociani, marco.crociani@gmail.com -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Can't resize second device in RAID1 2012-01-13 23:32 ` Marco L. Crociani @ 2012-01-14 14:42 ` Sander 2012-01-14 18:18 ` Marco L. Crociani 0 siblings, 1 reply; 6+ messages in thread From: Sander @ 2012-01-14 14:42 UTC (permalink / raw) To: Marco L. Crociani; +Cc: Hugo Mills, linux-btrfs Marco L. Crociani wrote (ao): > On Sat, Jan 14, 2012 at 12:17 AM, Hugo Mills <hugo@carfax.org.uk> wrote: > > On Sat, Jan 14, 2012 at 12:12:06AM +0100, Marco L. Crociani wrote: > >> # ./btrfs fi sh > >> Label: 'RootFS'?? uuid: c87975a0-a575-405e-9890-d3f7f25bbd96 > >> ?????? Total devices 2 FS bytes used 284.98GB > >> ?????? devid?????? 2 size 311.82GB used 286.51GB path /dev/sdb3 > >> ?????? devid?????? 1 size 897.76GB used 286.51GB path /dev/sda3 > >> > >> /dev/sdb3 is the same. > >> > >> How can I resize /dev/sdb3? > > > > ?? I think the syntax you need is btrfs fi resize max /mnt/RootFS:2 > ./btrfs fi resize max /mnt/RootFS:2 > ERROR: can't access to '/mnt/RootFS:2' btrfs filesystem resize 2:max /mnt/RootFS Sander -- Humilis IT Services and Solutions http://www.humilis.net ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Can't resize second device in RAID1 2012-01-14 14:42 ` Sander @ 2012-01-14 18:18 ` Marco L. Crociani 2012-01-17 16:22 ` Phillip Susi 0 siblings, 1 reply; 6+ messages in thread From: Marco L. Crociani @ 2012-01-14 18:18 UTC (permalink / raw) To: sander; +Cc: linux-btrfs On Sat, Jan 14, 2012 at 3:42 PM, Sander <sander@humilis.net> wrote: > Marco L. Crociani wrote (ao): >> On Sat, Jan 14, 2012 at 12:17 AM, Hugo Mills <hugo@carfax.org.uk> wr= ote: >> > On Sat, Jan 14, 2012 at 12:12:06AM +0100, Marco L. Crociani wrote: >> >> # ./btrfs fi sh >> >> Label: 'RootFS'?? uuid: c87975a0-a575-405e-9890-d3f7f25bbd96 >> >> ?????? Total devices 2 FS bytes used 284.98GB >> >> ?????? devid?????? 2 size 311.82GB used 286.51GB path /dev/sdb3 >> >> ?????? devid?????? 1 size 897.76GB used 286.51GB path /dev/sda3 >> >> >> >> /dev/sdb3 is the same. >> >> >> >> How can I resize /dev/sdb3? >> > >> > ?? I think the syntax you need is btrfs fi resize max /mnt/RootFS:= 2 > >> ./btrfs fi resize max /mnt/RootFS:2 >> ERROR: can't access to '/mnt/RootFS:2' > > btrfs filesystem resize 2:max /mnt/RootFS > > =C2=A0 =C2=A0 =C2=A0 =C2=A0Sander > > -- > Humilis IT Services and Solutions > http://www.humilis.net Perfect, Thank you! I've written a section on: http://btrfs.ipv5.de/index.php?title=3DUseCases --=20 Marco Lorenzo Crociani, marco.crociani@gmail.com -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Can't resize second device in RAID1 2012-01-14 18:18 ` Marco L. Crociani @ 2012-01-17 16:22 ` Phillip Susi 0 siblings, 0 replies; 6+ messages in thread From: Phillip Susi @ 2012-01-17 16:22 UTC (permalink / raw) To: Marco L. Crociani; +Cc: sander, linux-btrfs -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I submitted some patches a few weeks ago to fix this so you specify the device normally instead of looking up the internal devid and passing it as an undocumented prefix to the size parameter. Hopefully they can get merged sometime soon. On 1/14/2012 1:18 PM, Marco L. Crociani wrote: >>> ./btrfs fi resize max /mnt/RootFS:2 ERROR: can't access to >>> '/mnt/RootFS:2' >> >> btrfs filesystem resize 2:max /mnt/RootFS >> >> Sander >> >> -- Humilis IT Services and Solutions http://www.humilis.net > > Perfect, Thank you! I've written a section on: > http://btrfs.ipv5.de/index.php?title=UseCases > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPFaBGAAoJEJrBOlT6nu754+0H/jyk5yDLn5T4sYiPNGAFQyG+ SI47GsE3uD5pfQ0vve8YsDSburNbBzHTmsyWdn/YZE+TtocNTsj+Gj3m7bd/Flr8 u/dM/4htyyiAjEXJeRQqlnApFDh0hBeMZSF1qK9odhMd8h2FqOfon7mrafCjPzGY R9FG1nTqXVmNBmdWQfTiRLnR5ErTBImd8Mo+zt9vbd5naR1Sxc9sUFk1BX4jP0lp ZK66C7SPMdb7HnVROPR2TEFHweAjPjF1YMcFOkR4/no37jB+g5/+wlF0YuV4hnc0 BgC/5dZcxOP1R+nUNQ1xPZm7My+dlzVJaG9AqQC5IEKW7Lejn9HxJzgtZyTZ8hs= =QpE2 -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-01-17 16:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CADy=jfVZjRAE049OiD6VkoKkpzZh9e_=V62AvuVwxyHZyfuU1w@mail.gmail.com>
2012-01-13 23:12 ` Can't resize second device in RAID1 Marco L. Crociani
2012-01-13 23:17 ` Hugo Mills
2012-01-13 23:32 ` Marco L. Crociani
2012-01-14 14:42 ` Sander
2012-01-14 18:18 ` Marco L. Crociani
2012-01-17 16:22 ` Phillip Susi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).