Solved Fedora Block Device Full How - Extend Partition
-
@Francesco-Provino reading the manual for pvextend
-
@DustinB3403 said in Fedora Block Device Full How - Extend Partition:
@Francesco-Provino reading the manual for pvextend
You don't want to extend a pv tho, you want to create a new one. Add the new pv into the current vg (volume group), and then extend the lv (logical volume) to fill the new pv.
pvcreate /dev/xvdb vgextend fedora /dev/xvdb lvextend -l 100%FREE /dev/fedora/root
See if that lvextend works, might need to feed it another vg/pv path.
-
-
Thanks guys, I think I've got it.
-
@DustinB3403 Now you need to figure out why your root partition got filled up in the first place!
-
@travisdh1 This was because the person who setup this system configured everything on a tiny partition.
I'm fine with the original size, as all this system does is push our image out. Until now that is, when I need to add a new image to push.
The entire drive is holding 2 windows images.
-
@DustinB3403 said in Fedora Block Device Full How - Extend Partition:
@travisdh1 This was because the person who setup this system configured everything on a tiny partition.
I'm fine with the original size, as all this system does is push our image out. Until now that is, when I need to add a new image to push.
The entire drive is holding 2 windows images.
Ah, the images should've never been included on / (root) in the first place.
-
-
@travisdh1 said in Fedora Block Device Full How - Extend Partition:
@DustinB3403 said in Fedora Block Device Full How - Extend Partition:
@travisdh1 This was because the person who setup this system configured everything on a tiny partition.
I'm fine with the original size, as all this system does is push our image out. Until now that is, when I need to add a new image to push.
The entire drive is holding 2 windows images.
Ah, the images should've never been included on / (root) in the first place.
Exactly. But they are, so without building a new imaging system, I'd rather (and believe I have since fog sees it correctly) is to just add space for the purposes here.
-
@DustinB3403 said in Fedora Block Device Full How - Extend Partition:
@travisdh1 said in Fedora Block Device Full How - Extend Partition:
@DustinB3403 said in Fedora Block Device Full How - Extend Partition:
@travisdh1 This was because the person who setup this system configured everything on a tiny partition.
I'm fine with the original size, as all this system does is push our image out. Until now that is, when I need to add a new image to push.
The entire drive is holding 2 windows images.
Ah, the images should've never been included on / (root) in the first place.
Exactly. But they are, so without building a new imaging system, I'd rather (and believe I have since fog sees it correctly) is to just add space for the purposes here.
Sorry, I was away for a while. You could always add the drive to the mount point where the images are stored. I had a Gitlab server that ran out of space, so I just copied the gitlab data from /var/opt and set the second drive to mount there.
-
@stacksofplates said in Fedora Block Device Full How - Extend Partition:
@DustinB3403 said in Fedora Block Device Full How - Extend Partition:
@travisdh1 said in Fedora Block Device Full How - Extend Partition:
@DustinB3403 said in Fedora Block Device Full How - Extend Partition:
@travisdh1 This was because the person who setup this system configured everything on a tiny partition.
I'm fine with the original size, as all this system does is push our image out. Until now that is, when I need to add a new image to push.
The entire drive is holding 2 windows images.
Ah, the images should've never been included on / (root) in the first place.
Exactly. But they are, so without building a new imaging system, I'd rather (and believe I have since fog sees it correctly) is to just add space for the purposes here.
Sorry, I was away for a while. You could always add the drive to the mount point where the images are stored. I had a Gitlab server that ran out of space, so I just copied the gitlab data from /var/opt and set the second drive to mount there.
Isn't that one of the cool advantages to linux is mount points.?
-
@Dashrender said in Fedora Block Device Full How - Extend Partition:
@stacksofplates said in Fedora Block Device Full How - Extend Partition:
@DustinB3403 said in Fedora Block Device Full How - Extend Partition:
@travisdh1 said in Fedora Block Device Full How - Extend Partition:
@DustinB3403 said in Fedora Block Device Full How - Extend Partition:
@travisdh1 This was because the person who setup this system configured everything on a tiny partition.
I'm fine with the original size, as all this system does is push our image out. Until now that is, when I need to add a new image to push.
The entire drive is holding 2 windows images.
Ah, the images should've never been included on / (root) in the first place.
Exactly. But they are, so without building a new imaging system, I'd rather (and believe I have since fog sees it correctly) is to just add space for the purposes here.
Sorry, I was away for a while. You could always add the drive to the mount point where the images are stored. I had a Gitlab server that ran out of space, so I just copied the gitlab data from /var/opt and set the second drive to mount there.
Isn't that one of the cool advantages to linux is mount points.?
Ya, it's really flexible and makes things a lot easier.
-
@Dashrender said in Fedora Block Device Full How - Extend Partition:
@stacksofplates said in Fedora Block Device Full How - Extend Partition:
@DustinB3403 said in Fedora Block Device Full How - Extend Partition:
@travisdh1 said in Fedora Block Device Full How - Extend Partition:
@DustinB3403 said in Fedora Block Device Full How - Extend Partition:
@travisdh1 This was because the person who setup this system configured everything on a tiny partition.
I'm fine with the original size, as all this system does is push our image out. Until now that is, when I need to add a new image to push.
The entire drive is holding 2 windows images.
Ah, the images should've never been included on / (root) in the first place.
Exactly. But they are, so without building a new imaging system, I'd rather (and believe I have since fog sees it correctly) is to just add space for the purposes here.
Sorry, I was away for a while. You could always add the drive to the mount point where the images are stored. I had a Gitlab server that ran out of space, so I just copied the gitlab data from /var/opt and set the second drive to mount there.
Isn't that one of the cool advantages to linux is mount points.?
It used to be, yes. You can do the same sort of thing in Windows now as well, but it's not something consumers are really aware of.
-
@travisdh1 said in Fedora Block Device Full How - Extend Partition:
@Dashrender said in Fedora Block Device Full How - Extend Partition:
@stacksofplates said in Fedora Block Device Full How - Extend Partition:
@DustinB3403 said in Fedora Block Device Full How - Extend Partition:
@travisdh1 said in Fedora Block Device Full How - Extend Partition:
@DustinB3403 said in Fedora Block Device Full How - Extend Partition:
@travisdh1 This was because the person who setup this system configured everything on a tiny partition.
I'm fine with the original size, as all this system does is push our image out. Until now that is, when I need to add a new image to push.
The entire drive is holding 2 windows images.
Ah, the images should've never been included on / (root) in the first place.
Exactly. But they are, so without building a new imaging system, I'd rather (and believe I have since fog sees it correctly) is to just add space for the purposes here.
Sorry, I was away for a while. You could always add the drive to the mount point where the images are stored. I had a Gitlab server that ran out of space, so I just copied the gitlab data from /var/opt and set the second drive to mount there.
Isn't that one of the cool advantages to linux is mount points.?
It used to be, yes. You can do the same sort of thing in Windows now as well, but it's not something consumers are really aware of.
Sure, you can. But doing it is risky because almost no one would ever be looking for it. Even Linux admins admining Windows servers wouldn't look for it because of it's extreme lack of use.
-
I'm late to the party. But the root is HUGE for Linux. We normally use 12GB. 20GB is the largest I would use. Why are you extending that? What's the goal in having the root be so large?
-
@scottalanmiller said in Fedora Block Device Full How - Extend Partition:
I'm late to the party. But the root is HUGE for Linux. We normally use 12GB. 20GB is the largest I would use. Why are you extending that? What's the goal in having the root be so large?
Agreed.
All of my templates are 15 for root and /var, /var/log, /var/log/audit, and /tmp are their own LVs. Var is different on some machines depending on what's installed but each is pretty small. Like 2 GB or so.
-
@scottalanmiller said in Fedora Block Device Full How - Extend Partition:
I'm late to the party. But the root is HUGE for Linux. We normally use 12GB. 20GB is the largest I would use. Why are you extending that? What's the goal in having the root be so large?
Whoever first set it up (it wasn't @DustinB3403), just dropped everything onto the root partition. Against every best practice ever written/known for Unix/Linux.
-
@travisdh1 said in Fedora Block Device Full How - Extend Partition:
@scottalanmiller said in Fedora Block Device Full How - Extend Partition:
I'm late to the party. But the root is HUGE for Linux. We normally use 12GB. 20GB is the largest I would use. Why are you extending that? What's the goal in having the root be so large?
Whoever first set it up (it wasn't @DustinB3403), just dropped everything onto the root partition. Against every best practice ever written/known for Unix/Linux.
Yes, the intern before setup the system before me, and while it isn't ideal, the system works.
I just need more space to add an additional image. Which is what we worked on yesterday. I've got to test today to see if the image upload worked, which I plan to do in a few minutes.
-
@travisdh1 said in Fedora Block Device Full How - Extend Partition:
@scottalanmiller said in Fedora Block Device Full How - Extend Partition:
I'm late to the party. But the root is HUGE for Linux. We normally use 12GB. 20GB is the largest I would use. Why are you extending that? What's the goal in having the root be so large?
Whoever first set it up (it wasn't @DustinB3403), just dropped everything onto the root partition. Against every best practice ever written/known for Unix/Linux.
Still, that doesn't create a need for expanding the root in most cases.
-
@scottalanmiller said in Fedora Block Device Full How - Extend Partition:
@travisdh1 said in Fedora Block Device Full How - Extend Partition:
@scottalanmiller said in Fedora Block Device Full How - Extend Partition:
I'm late to the party. But the root is HUGE for Linux. We normally use 12GB. 20GB is the largest I would use. Why are you extending that? What's the goal in having the root be so large?
Whoever first set it up (it wasn't @DustinB3403), just dropped everything onto the root partition. Against every best practice ever written/known for Unix/Linux.
Still, that doesn't create a need for expanding the root in most cases.
If I would have known this before helping to fix a broken system... hindsight sadly.