[opensuse] Resize BTRFS
How do I resize BTRFS on opensuse 12.1. I have a default test install in vmware. I originally did not allocate a large enough partition and want to increase it. I allocated 2gb more space in vmware, and that space shows in Yast Formatter. I ran #btrfs filesystem resize max / but nothing changes. I tried this 3 ways. One with the 2gb space not allocated, two with it allocated by not formatted, and third formatted in BTRFS. All 3 times the size does not change. What am I missing? (I have everything installed in /, except swap and /boot). Jim F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/29/2012 09:05 PM, Jim Flanagan wrote:
How do I resize BTRFS on opensuse 12.1. I have a default test install in vmware. I originally did not allocate a large enough partition and want to increase it. I allocated 2gb more space in vmware, and that space shows in Yast Formatter.
I ran #btrfs filesystem resize max /
but nothing changes.
I tried this 3 ways. One with the 2gb space not allocated, two with it allocated by not formatted, and third formatted in BTRFS. All 3 times the size does not change.
What am I missing?
(I have everything installed in /, except swap and /boot).
Can't you use the YaST partitioner to resize the partition? Andreas -- Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg) GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2/29/12 2:32 PM, Andreas Jaeger wrote:
On 02/29/2012 09:05 PM, Jim Flanagan wrote:
How do I resize BTRFS on opensuse 12.1. I have a default test install in vmware. I originally did not allocate a large enough partition and want to increase it. I allocated 2gb more space in vmware, and that space shows in Yast Formatter.
I ran #btrfs filesystem resize max /
but nothing changes.
I tried this 3 ways. One with the 2gb space not allocated, two with it allocated by not formatted, and third formatted in BTRFS. All 3 times the size does not change.
What am I missing?
(I have everything installed in /, except swap and /boot).
Can't you use the YaST partitioner to resize the partition?
Andreas
No. I get a pop up message saying "You cannot resize the selected partition because the file system on this partition does not support resizing". / is on /dev/sda3. Its the one I'm trying to increase. I understand btrfs allows this on the fly. Jim F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/29/2012 03:39 PM, Jim Flanagan wrote:
On 2/29/12 2:32 PM, Andreas Jaeger wrote:
On 02/29/2012 09:05 PM, Jim Flanagan wrote:
How do I resize BTRFS on opensuse 12.1. I have a default test install in vmware. I originally did not allocate a large enough partition and want to increase it. I allocated 2gb more space in vmware, and that space shows in Yast Formatter.
I ran #btrfs filesystem resize max /
but nothing changes.
I tried this 3 ways. One with the 2gb space not allocated, two with it allocated by not formatted, and third formatted in BTRFS. All 3 times the size does not change.
What am I missing?
(I have everything installed in /, except swap and /boot).
Can't you use the YaST partitioner to resize the partition?
Andreas
No. I get a pop up message saying "You cannot resize the selected partition because the file system on this partition does not support resizing".
/ is on /dev/sda3. Its the one I'm trying to increase. I understand btrfs allows this on the fly.
You could try: btrfs filesystem resize /dev/sda3 max / While the device is marked as optional here: https://btrfs.wiki.kernel.org/articles/b/t/r/Btrfs%28command%29.html it may not be. HTH, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/29/2012 03:39 PM, Jim Flanagan wrote:
On 2/29/12 2:32 PM, Andreas Jaeger wrote:
On 02/29/2012 09:05 PM, Jim Flanagan wrote:
How do I resize BTRFS on opensuse 12.1. I have a default test install in vmware. I originally did not allocate a large enough partition and want to increase it. I allocated 2gb more space in vmware, and that space shows in Yast Formatter.
I ran #btrfs filesystem resize max /
but nothing changes.
I tried this 3 ways. One with the 2gb space not allocated, two with it allocated by not formatted, and third formatted in BTRFS. All 3 times the size does not change.
What am I missing?
(I have everything installed in /, except swap and /boot).
Can't you use the YaST partitioner to resize the partition?
Andreas
No. I get a pop up message saying "You cannot resize the selected partition because the file system on this partition does not support resizing".
/ is on /dev/sda3. Its the one I'm trying to increase. I understand btrfs allows this on the fly.
You could try:
btrfs filesystem resize /dev/sda3 max /
While the device is marked as optional here: https://btrfs.wiki.kernel.org/articles/b/t/r/Btrfs%28command%29.html it may not be.
HTH, Robert
Tried it here but got this error: linux-6kf5:/home/jim # btrfs filesystem resize /dev/sda3 max / ERROR: 'filesystem resize' requires 2 arg(s) This is what happens the previous say. Looks like it resized, but no changes are made: linux-6kf5:/home/jim # btrfs filesystem resize max / Resize '/' of 'max' linux-6kf5:/home/jim # btrfs filesystem show Label: none uuid: 77d88d59-0279-4763-bef4-9ffa1e9248e4 Total devices 1 FS bytes used 5.27GB devid 1 size 6.75GB used 6.75GB path /dev/sda3 Btrfs v0.19+ So I tried it here using uuid but still the error: linux-6kf5:/home/jim # btrfs filesystem resize 77d88d59-0279-4763-bef4-9ffa1e9248e4 max / ERROR: 'filesystem resize' requires 2 arg(s) Jim F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 3/1/12 7:48 AM, linuxjim@jjfiii.com wrote:
On 02/29/2012 03:39 PM, Jim Flanagan wrote:
On 2/29/12 2:32 PM, Andreas Jaeger wrote:
On 02/29/2012 09:05 PM, Jim Flanagan wrote:
How do I resize BTRFS on opensuse 12.1. I have a default test install in vmware. I originally did not allocate a large enough partition and want to increase it. I allocated 2gb more space in vmware, and that space shows in Yast Formatter.
I ran #btrfs filesystem resize max /
but nothing changes.
I tried this 3 ways. One with the 2gb space not allocated, two with it allocated by not formatted, and third formatted in BTRFS. All 3 times the size does not change.
What am I missing?
(I have everything installed in /, except swap and /boot).
Can't you use the YaST partitioner to resize the partition?
Andreas
No. I get a pop up message saying "You cannot resize the selected partition because the file system on this partition does not support resizing".
/ is on /dev/sda3. Its the one I'm trying to increase. I understand btrfs allows this on the fly.
You could try:
btrfs filesystem resize /dev/sda3 max /
While the device is marked as optional here: https://btrfs.wiki.kernel.org/articles/b/t/r/Btrfs%28command%29.html it may not be.
HTH, Robert
Tried it here but got this error:
linux-6kf5:/home/jim # btrfs filesystem resize /dev/sda3 max / ERROR: 'filesystem resize' requires 2 arg(s)
This is what happens the previous say. Looks like it resized, but no changes are made:
linux-6kf5:/home/jim # btrfs filesystem resize max / Resize '/' of 'max'
linux-6kf5:/home/jim # btrfs filesystem show Label: none uuid: 77d88d59-0279-4763-bef4-9ffa1e9248e4 Total devices 1 FS bytes used 5.27GB devid 1 size 6.75GB used 6.75GB path /dev/sda3
Btrfs v0.19+
So I tried it here using uuid but still the error:
linux-6kf5:/home/jim # btrfs filesystem resize 77d88d59-0279-4763-bef4-9ffa1e9248e4 max / ERROR: 'filesystem resize' requires 2 arg(s)
Jim F
OK, in reading the btrfs wiki more, resize the filesystem does not affect the size of the actual partition. Looks like I need to do that first. Will have to dig out a gparted cd, or perhaps a opensuse install dvd. Will revert. thanks, Jim F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Mar 01, 2012 at 07:57:04AM -0600, Jim Flanagan wrote: [ 8< ] a lot of superfluous quote nuked
OK, in reading the btrfs wiki more, resize the filesystem does not affect the size of the actual partition. Looks like I need to do that first. Will have to dig out a gparted cd, or perhaps a opensuse install dvd.
Why not calling cfdisk from inside the running system? You intend to make the existing partition bigger. I don't see how you could harm the system by this. 1st save the current partition layout to a file. Next you open cfdisk as root user and delete the partition you intend to extend. 3rd you create the new partition with the same starting point but with the new, bigger size. Keep in mind this only works if there is free space left behind the partition you intend to enlarge. Have I done this myself before? Yes. Does the system still work? Yes Nevertehless I suggest to do this first with a virtual machine. Cheers, Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
On 3/1/12 8:44 AM, Lars Müller wrote:
On Thu, Mar 01, 2012 at 07:57:04AM -0600, Jim Flanagan wrote: [ 8< ] a lot of superfluous quote nuked
OK, in reading the btrfs wiki more, resize the filesystem does not affect the size of the actual partition. Looks like I need to do that first. Will have to dig out a gparted cd, or perhaps a opensuse install dvd.
Why not calling cfdisk from inside the running system?
You intend to make the existing partition bigger. I don't see how you could harm the system by this.
1st save the current partition layout to a file.
Next you open cfdisk as root user and delete the partition you intend to extend.
3rd you create the new partition with the same starting point but with the new, bigger size.
Keep in mind this only works if there is free space left behind the partition you intend to enlarge.
Have I done this myself before? Yes.
Does the system still work? Yes
Nevertehless I suggest to do this first with a virtual machine.
I've never heard of cfdisk before. Will read up on it and give it a try. thanks, Jim F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 3/1/12 8:44 AM, Lars Müller wrote:
On Thu, Mar 01, 2012 at 07:57:04AM -0600, Jim Flanagan wrote: [ 8< ] a lot of superfluous quote nuked
OK, in reading the btrfs wiki more, resize the filesystem does not affect the size of the actual partition. Looks like I need to do that first. Will have to dig out a gparted cd, or perhaps a opensuse install dvd.
Why not calling cfdisk from inside the running system?
You intend to make the existing partition bigger. I don't see how you could harm the system by this.
1st save the current partition layout to a file.
Next you open cfdisk as root user and delete the partition you intend to extend.
3rd you create the new partition with the same starting point but with the new, bigger size.
Keep in mind this only works if there is free space left behind the partition you intend to enlarge.
Have I done this myself before? Yes.
Does the system still work? Yes
Nevertehless I suggest to do this first with a virtual machine.
Cheers,
Lars
This worked great! Thanks. I had to swallow hard before deleting the partition. But cfdisk next created a new one that used all the space on that drive. Then ran... btrfs filesystem resize max / and I've got a larger partition, all working fine. Nice little utility. Many thanks, Jim F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 3/4/12 10:31 AM, Jim Flanagan wrote:
On 3/1/12 8:44 AM, Lars Müller wrote:
On Thu, Mar 01, 2012 at 07:57:04AM -0600, Jim Flanagan wrote: [ 8< ] a lot of superfluous quote nuked
OK, in reading the btrfs wiki more, resize the filesystem does not affect the size of the actual partition. Looks like I need to do that first. Will have to dig out a gparted cd, or perhaps a opensuse install dvd.
Why not calling cfdisk from inside the running system? snip
Does the system still work? Yes snip
Lars
This worked great! Thanks. I had to swallow hard before deleting the partition. But cfdisk next created a new one that used all the space on that drive. Then ran...
btrfs filesystem resize max /
and I've got a larger partition, all working fine.
By the way, I tried using Yast Partitioner to do this before I tried cfdisk. Yast thru up multiple error messages when trying to delete the partition, so that method failed on this task for me. Jim F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Andreas Jaeger
-
Jim Flanagan
-
Lars Müller
-
linuxjim@jjfiii.com
-
Robert Schweikert