* 'filesystem resize max' tries to use devid 1 @ 2012-04-23 3:03 Jeremy Atkins 2012-04-24 15:31 ` Josef Bacik 0 siblings, 1 reply; 6+ messages in thread From: Jeremy Atkins @ 2012-04-23 3:03 UTC (permalink / raw) To: linux-btrfs Back story: I started my pool with a 200gb partition at the end of my drive (sdc5) , until I was able to clear out the data at the beginning of my drive. When I was ready, I ran `btrfs dev add /dev/sdc4 /` then `btrfs dev del /dev/sdc5 /`, $ sudo btrfs fi resize max / Resize '/' of 'max' ERROR: unable to resize '/' - Invalid argument in dmesg i see: [ =A0 72.729685] btrfs: resizer unable to find device 1 $ sudo btrfs fi df / Data: total=3D34.00GB, used=3D17.79GB System, DUP: total=3D64.00MB, used=3D20.00KB Metadata, DUP: total=3D33.50GB, used=3D394.93MB $ sudo btrfs fi sh Label: none =A0uuid: b0ad55e2-09e0-4658-8cab-d2e11ba03753 =A0 =A0 =A0 =A0 Total devices 1 FS bytes used 17.18GB =A0 =A0 =A0 =A0 devid =A0 =A02 size 1.62TB used 101.12GB path /dev/sdc4 $ uname -r 3.3.2-1.fc16.x86_64 btrfs-progs version is current git master ( commit 1957076 ) After writing this email, and searching around the wiki some, I discovered the command to resize specific devids, [antrat@tbox ~]$ sudo btrfs fi resize 2:max / Resize '/' of '2:max' and in dmesg: [ 1661.933884] btrfs: resizing devid 2 [ 1661.933895] btrfs: new size for /dev/sdc4 is 1995564908544 -- 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: 'filesystem resize max' tries to use devid 1 2012-04-23 3:03 'filesystem resize max' tries to use devid 1 Jeremy Atkins @ 2012-04-24 15:31 ` Josef Bacik 2012-04-24 15:39 ` Ilya Dryomov 0 siblings, 1 reply; 6+ messages in thread From: Josef Bacik @ 2012-04-24 15:31 UTC (permalink / raw) To: Jeremy Atkins; +Cc: linux-btrfs, idryomov On Sun, Apr 22, 2012 at 11:03:06PM -0400, Jeremy Atkins wrote: > Back story: > I started my pool with a 200gb partition at the end of my drive (sdc5= ) > , until I was able to clear out the data at the beginning of my drive= =2E > When I was ready, I ran `btrfs dev add /dev/sdc4 /` then `btrfs dev > del /dev/sdc5 /`, >=20 > $ sudo btrfs fi resize max / > Resize '/' of 'max' > ERROR: unable to resize '/' - Invalid argument >=20 > in dmesg i see: > [ =A0 72.729685] btrfs: resizer unable to find device 1 >=20 > $ sudo btrfs fi df / > Data: total=3D34.00GB, used=3D17.79GB > System, DUP: total=3D64.00MB, used=3D20.00KB > Metadata, DUP: total=3D33.50GB, used=3D394.93MB >=20 > $ sudo btrfs fi sh > Label: none =A0uuid: b0ad55e2-09e0-4658-8cab-d2e11ba03753 > =A0 =A0 =A0 =A0 Total devices 1 FS bytes used 17.18GB > =A0 =A0 =A0 =A0 devid =A0 =A02 size 1.62TB used 101.12GB path /dev/sd= c4 >=20 >=20 > $ uname -r > 3.3.2-1.fc16.x86_64 >=20 > btrfs-progs version is current git master ( commit 1957076 ) >=20 > After writing this email, and searching around the wiki some, I > discovered the command to resize specific devids, >=20 > [antrat@tbox ~]$ sudo btrfs fi resize 2:max / > Resize '/' of '2:max' >=20 > and in dmesg: > [ 1661.933884] btrfs: resizing devid 2 > [ 1661.933895] btrfs: new size for /dev/sdc4 is 1995564908544 Hrm, if we're using filesystem resize max we should probably just max o= ut all the devices and not require one specific device, what do you think Ilya= ? Josef -- 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: 'filesystem resize max' tries to use devid 1 2012-04-24 15:31 ` Josef Bacik @ 2012-04-24 15:39 ` Ilya Dryomov 2012-04-24 15:42 ` Josef Bacik 0 siblings, 1 reply; 6+ messages in thread From: Ilya Dryomov @ 2012-04-24 15:39 UTC (permalink / raw) To: Josef Bacik; +Cc: Jeremy Atkins, linux-btrfs On Tue, Apr 24, 2012 at 11:31:15AM -0400, Josef Bacik wrote: > On Sun, Apr 22, 2012 at 11:03:06PM -0400, Jeremy Atkins wrote: > > Back story: > > I started my pool with a 200gb partition at the end of my drive (sd= c5) > > , until I was able to clear out the data at the beginning of my dri= ve. > > When I was ready, I ran `btrfs dev add /dev/sdc4 /` then `btrfs de= v > > del /dev/sdc5 /`, > >=20 > > $ sudo btrfs fi resize max / > > Resize '/' of 'max' > > ERROR: unable to resize '/' - Invalid argument > >=20 > > in dmesg i see: > > [ =C2=A0 72.729685] btrfs: resizer unable to find device 1 > >=20 > > $ sudo btrfs fi df / > > Data: total=3D34.00GB, used=3D17.79GB > > System, DUP: total=3D64.00MB, used=3D20.00KB > > Metadata, DUP: total=3D33.50GB, used=3D394.93MB > >=20 > > $ sudo btrfs fi sh > > Label: none =C2=A0uuid: b0ad55e2-09e0-4658-8cab-d2e11ba03753 > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Total devices 1 FS bytes used 17.18GB > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 devid =C2=A0 =C2=A02 size 1.62TB used 1= 01.12GB path /dev/sdc4 > >=20 > >=20 > > $ uname -r > > 3.3.2-1.fc16.x86_64 > >=20 > > btrfs-progs version is current git master ( commit 1957076 ) > >=20 > > After writing this email, and searching around the wiki some, I > > discovered the command to resize specific devids, > >=20 > > [antrat@tbox ~]$ sudo btrfs fi resize 2:max / > > Resize '/' of '2:max' > >=20 > > and in dmesg: > > [ 1661.933884] btrfs: resizing devid 2 > > [ 1661.933895] btrfs: new size for /dev/sdc4 is 1995564908544 >=20 > Hrm, if we're using filesystem resize max we should probably just max= out all > the devices and not require one specific device, what do you think Il= ya? I'd keep the devid:max syntax for maxing out a single device and add a new fs:max or similar to resize all devices. ABI here is just a string= , so I think it can be easily done. Thanks, Ilya -- 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: 'filesystem resize max' tries to use devid 1 2012-04-24 15:39 ` Ilya Dryomov @ 2012-04-24 15:42 ` Josef Bacik 2012-04-24 15:58 ` Ilya Dryomov 2012-04-24 15:59 ` Chris Mason 0 siblings, 2 replies; 6+ messages in thread From: Josef Bacik @ 2012-04-24 15:42 UTC (permalink / raw) To: Ilya Dryomov; +Cc: Josef Bacik, Jeremy Atkins, linux-btrfs On Tue, Apr 24, 2012 at 06:39:03PM +0300, Ilya Dryomov wrote: > On Tue, Apr 24, 2012 at 11:31:15AM -0400, Josef Bacik wrote: > > On Sun, Apr 22, 2012 at 11:03:06PM -0400, Jeremy Atkins wrote: > > > Back story: > > > I started my pool with a 200gb partition at the end of my drive (= sdc5) > > > , until I was able to clear out the data at the beginning of my d= rive. > > > When I was ready, I ran `btrfs dev add /dev/sdc4 /` then `btrfs = dev > > > del /dev/sdc5 /`, > > >=20 > > > $ sudo btrfs fi resize max / > > > Resize '/' of 'max' > > > ERROR: unable to resize '/' - Invalid argument > > >=20 > > > in dmesg i see: > > > [ =A0 72.729685] btrfs: resizer unable to find device 1 > > >=20 > > > $ sudo btrfs fi df / > > > Data: total=3D34.00GB, used=3D17.79GB > > > System, DUP: total=3D64.00MB, used=3D20.00KB > > > Metadata, DUP: total=3D33.50GB, used=3D394.93MB > > >=20 > > > $ sudo btrfs fi sh > > > Label: none =A0uuid: b0ad55e2-09e0-4658-8cab-d2e11ba03753 > > > =A0 =A0 =A0 =A0 Total devices 1 FS bytes used 17.18GB > > > =A0 =A0 =A0 =A0 devid =A0 =A02 size 1.62TB used 101.12GB path /de= v/sdc4 > > >=20 > > >=20 > > > $ uname -r > > > 3.3.2-1.fc16.x86_64 > > >=20 > > > btrfs-progs version is current git master ( commit 1957076 ) > > >=20 > > > After writing this email, and searching around the wiki some, I > > > discovered the command to resize specific devids, > > >=20 > > > [antrat@tbox ~]$ sudo btrfs fi resize 2:max / > > > Resize '/' of '2:max' > > >=20 > > > and in dmesg: > > > [ 1661.933884] btrfs: resizing devid 2 > > > [ 1661.933895] btrfs: new size for /dev/sdc4 is 1995564908544 > >=20 > > Hrm, if we're using filesystem resize max we should probably just m= ax out all > > the devices and not require one specific device, what do you think = Ilya? >=20 > I'd keep the devid:max syntax for maxing out a single device and add = a > new fs:max or similar to resize all devices. ABI here is just a stri= ng, > so I think it can be easily done. >=20 Right I think the devid:max thing is handy for people who want to do sp= ecific things, but I think just a normal btrfs fi resize max should do all dev= ices for simplicity and easy of use, no need for a fs:max. Thanks, Josef -- 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: 'filesystem resize max' tries to use devid 1 2012-04-24 15:42 ` Josef Bacik @ 2012-04-24 15:58 ` Ilya Dryomov 2012-04-24 15:59 ` Chris Mason 1 sibling, 0 replies; 6+ messages in thread From: Ilya Dryomov @ 2012-04-24 15:58 UTC (permalink / raw) To: Josef Bacik; +Cc: Jeremy Atkins, linux-btrfs On Tue, Apr 24, 2012 at 11:42:26AM -0400, Josef Bacik wrote: > On Tue, Apr 24, 2012 at 06:39:03PM +0300, Ilya Dryomov wrote: > > On Tue, Apr 24, 2012 at 11:31:15AM -0400, Josef Bacik wrote: > > > On Sun, Apr 22, 2012 at 11:03:06PM -0400, Jeremy Atkins wrote: > > > > Back story: > > > > I started my pool with a 200gb partition at the end of my drive= (sdc5) > > > > , until I was able to clear out the data at the beginning of my= drive. > > > > When I was ready, I ran `btrfs dev add /dev/sdc4 /` then `btrf= s dev > > > > del /dev/sdc5 /`, > > > >=20 > > > > $ sudo btrfs fi resize max / > > > > Resize '/' of 'max' > > > > ERROR: unable to resize '/' - Invalid argument > > > >=20 > > > > in dmesg i see: > > > > [ =C2=A0 72.729685] btrfs: resizer unable to find device 1 > > > >=20 > > > > $ sudo btrfs fi df / > > > > Data: total=3D34.00GB, used=3D17.79GB > > > > System, DUP: total=3D64.00MB, used=3D20.00KB > > > > Metadata, DUP: total=3D33.50GB, used=3D394.93MB > > > >=20 > > > > $ sudo btrfs fi sh > > > > Label: none =C2=A0uuid: b0ad55e2-09e0-4658-8cab-d2e11ba03753 > > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Total devices 1 FS bytes used 17.18= GB > > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 devid =C2=A0 =C2=A02 size 1.62TB us= ed 101.12GB path /dev/sdc4 > > > >=20 > > > >=20 > > > > $ uname -r > > > > 3.3.2-1.fc16.x86_64 > > > >=20 > > > > btrfs-progs version is current git master ( commit 1957076 ) > > > >=20 > > > > After writing this email, and searching around the wiki some, I > > > > discovered the command to resize specific devids, > > > >=20 > > > > [antrat@tbox ~]$ sudo btrfs fi resize 2:max / > > > > Resize '/' of '2:max' > > > >=20 > > > > and in dmesg: > > > > [ 1661.933884] btrfs: resizing devid 2 > > > > [ 1661.933895] btrfs: new size for /dev/sdc4 is 1995564908544 > > >=20 > > > Hrm, if we're using filesystem resize max we should probably just= max out all > > > the devices and not require one specific device, what do you thin= k Ilya? > >=20 > > I'd keep the devid:max syntax for maxing out a single device and ad= d a > > new fs:max or similar to resize all devices. ABI here is just a st= ring, > > so I think it can be easily done. > >=20 >=20 > Right I think the devid:max thing is handy for people who want to do = specific > things, but I think just a normal btrfs fi resize max should do all d= evices for > simplicity and easy of use, no need for a fs:max. Thanks, Sorry, I misread. 'btrfs fi resize max <mnt>' should of course resize the entire FS. I think this popped up before, at least a couple times. I'll do it if nobody else wants to. Thanks, Ilya -- 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: 'filesystem resize max' tries to use devid 1 2012-04-24 15:42 ` Josef Bacik 2012-04-24 15:58 ` Ilya Dryomov @ 2012-04-24 15:59 ` Chris Mason 1 sibling, 0 replies; 6+ messages in thread From: Chris Mason @ 2012-04-24 15:59 UTC (permalink / raw) To: Josef Bacik; +Cc: Ilya Dryomov, Jeremy Atkins, linux-btrfs On Tue, Apr 24, 2012 at 11:42:26AM -0400, Josef Bacik wrote: > On Tue, Apr 24, 2012 at 06:39:03PM +0300, Ilya Dryomov wrote: > > On Tue, Apr 24, 2012 at 11:31:15AM -0400, Josef Bacik wrote: > > > On Sun, Apr 22, 2012 at 11:03:06PM -0400, Jeremy Atkins wrote: > > > > Back story: > > > > I started my pool with a 200gb partition at the end of my drive= (sdc5) > > > > , until I was able to clear out the data at the beginning of my= drive. > > > > When I was ready, I ran `btrfs dev add /dev/sdc4 /` then `btrf= s dev > > > > del /dev/sdc5 /`, > > > >=20 > > > > $ sudo btrfs fi resize max / > > > > Resize '/' of 'max' > > > > ERROR: unable to resize '/' - Invalid argument > > > >=20 > > > > in dmesg i see: > > > > [ =A0 72.729685] btrfs: resizer unable to find device 1 > > > >=20 > > > > $ sudo btrfs fi df / > > > > Data: total=3D34.00GB, used=3D17.79GB > > > > System, DUP: total=3D64.00MB, used=3D20.00KB > > > > Metadata, DUP: total=3D33.50GB, used=3D394.93MB > > > >=20 > > > > $ sudo btrfs fi sh > > > > Label: none =A0uuid: b0ad55e2-09e0-4658-8cab-d2e11ba03753 > > > > =A0 =A0 =A0 =A0 Total devices 1 FS bytes used 17.18GB > > > > =A0 =A0 =A0 =A0 devid =A0 =A02 size 1.62TB used 101.12GB path /= dev/sdc4 > > > >=20 > > > >=20 > > > > $ uname -r > > > > 3.3.2-1.fc16.x86_64 > > > >=20 > > > > btrfs-progs version is current git master ( commit 1957076 ) > > > >=20 > > > > After writing this email, and searching around the wiki some, I > > > > discovered the command to resize specific devids, > > > >=20 > > > > [antrat@tbox ~]$ sudo btrfs fi resize 2:max / > > > > Resize '/' of '2:max' > > > >=20 > > > > and in dmesg: > > > > [ 1661.933884] btrfs: resizing devid 2 > > > > [ 1661.933895] btrfs: new size for /dev/sdc4 is 1995564908544 > > >=20 > > > Hrm, if we're using filesystem resize max we should probably just= max out all > > > the devices and not require one specific device, what do you thin= k Ilya? > >=20 > > I'd keep the devid:max syntax for maxing out a single device and ad= d a > > new fs:max or similar to resize all devices. ABI here is just a st= ring, > > so I think it can be easily done. > >=20 >=20 > Right I think the devid:max thing is handy for people who want to do = specific > things, but I think just a normal btrfs fi resize max should do all d= evices for > simplicity and easy of use, no need for a fs:max. Thanks, >=20 Agreed, I hadn't thought of it this way in the past, but I can see people expecting max to mean max out all the devices. -chris -- 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
end of thread, other threads:[~2012-04-24 15:59 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-04-23 3:03 'filesystem resize max' tries to use devid 1 Jeremy Atkins 2012-04-24 15:31 ` Josef Bacik 2012-04-24 15:39 ` Ilya Dryomov 2012-04-24 15:42 ` Josef Bacik 2012-04-24 15:58 ` Ilya Dryomov 2012-04-24 15:59 ` Chris Mason
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).