Wrapping your head around LVM.
-
@JaredBusch said in Wrapping your head around LVM.:
@travisdh1 I just went through all of this last night in order to expand space on a CentOS 7 VM.
All of the guides and info seemed really bad. Nothing was consolidated or concise.
I ended up with this guide working to get what I needed done except for the last step. The guide said to use
resize2fs
and that does not work. I had to usexfs_growfs
as pointed out in an answer to this post.You also cannot shrink an XFS file system like you can with EXT. So while resize2fs will grow or shrink, xfs_frowfs will only grow.
-
@travisdh1 said in Wrapping your head around LVM.:
@JaredBusch said in Wrapping your head around LVM.:
@travisdh1 I just went through all of this last night in order to expand space on a CentOS 7 VM.
All of the guides and info seemed really bad. Nothing was consolidated or concise.
I ended up with this guide working to get what I needed done except for the last step. The guide said to use
resize2fs
and that does not work. I had to usexfs_growfs
as pointed out in an answer to this post.Yeah. I found out real quick that it's nearly impossible to make a concise guide to working with this stuff. In your case it's more a file system issue. That's a horribly complex headline for that guide as well, and doesn't even touch on the file system in use. Something more along the lines of "Resize ext4 partition using LVM" would've been a lot better. Also a little convoluted. Resizing the partition before resizing the LV? Does not compute, at least in my head without trying to actually do it.
Just going to point out that XFS won't shrink, ever. How many times does someone actually need to SHRINK a file system tho?
Ha you beat me to it.
-
@JaredBusch Just think, brtfs is going to have all this same complexity built in like ZFS already does!
I think the general rule is that by the time you really learn and understand a complex technology, that is when the technology will adopt something different. (systemd instead of initd as well for me.)
-
@travisdh1 said in Wrapping your head around LVM.:
Just going to point out that XFS won't shrink, ever. How many times does someone actually need to SHRINK a file system tho?
I have yet to ever have it come up.
-
@JaredBusch said in Wrapping your head around LVM.:
@travisdh1 I just went through all of this last night in order to expand space on a CentOS 7 VM.
All of the guides and info seemed really bad. Nothing was consolidated or concise.
I ended up with this guide working to get what I needed done except for the last step. The guide said to use
resize2fs
and that does not work. I had to usexfs_growfs
as pointed out in an answer to this post.I just had to do this again.. Time to make a write up here because the original article is no longer online. Had to use the wayback machine to verify my notes.
-
@JaredBusch said in Wrapping your head around LVM.:
@JaredBusch said in Wrapping your head around LVM.:
@travisdh1 I just went through all of this last night in order to expand space on a CentOS 7 VM.
All of the guides and info seemed really bad. Nothing was consolidated or concise.
I ended up with this guide working to get what I needed done except for the last step. The guide said to use
resize2fs
and that does not work. I had to usexfs_growfs
as pointed out in an answer to this post.I just had to do this again.. Time to make a write up here because the original article is no longer online. Had to use the wayback machine to verify my notes.
It be a lot more easier now using Cockpit?
-
@black3dynamite said in Wrapping your head around LVM.:
@JaredBusch said in Wrapping your head around LVM.:
@JaredBusch said in Wrapping your head around LVM.:
@travisdh1 I just went through all of this last night in order to expand space on a CentOS 7 VM.
All of the guides and info seemed really bad. Nothing was consolidated or concise.
I ended up with this guide working to get what I needed done except for the last step. The guide said to use
resize2fs
and that does not work. I had to usexfs_growfs
as pointed out in an answer to this post.I just had to do this again.. Time to make a write up here because the original article is no longer online. Had to use the wayback machine to verify my notes.
It be a lot more easier now using Cockpit?
CentOS 7
-
@JaredBusch said in Wrapping your head around LVM.:
@black3dynamite said in Wrapping your head around LVM.:
@JaredBusch said in Wrapping your head around LVM.:
@JaredBusch said in Wrapping your head around LVM.:
@travisdh1 I just went through all of this last night in order to expand space on a CentOS 7 VM.
All of the guides and info seemed really bad. Nothing was consolidated or concise.
I ended up with this guide working to get what I needed done except for the last step. The guide said to use
resize2fs
and that does not work. I had to usexfs_growfs
as pointed out in an answer to this post.I just had to do this again.. Time to make a write up here because the original article is no longer online. Had to use the wayback machine to verify my notes.
It be a lot more easier now using Cockpit?
CentOS 7
Its available for CentOS but the latest version is 176 not 182.
I've used to get more storage space for my fog server. -
@black3dynamite said in Wrapping your head around LVM.:
@JaredBusch said in Wrapping your head around LVM.:
@JaredBusch said in Wrapping your head around LVM.:
@travisdh1 I just went through all of this last night in order to expand space on a CentOS 7 VM.
All of the guides and info seemed really bad. Nothing was consolidated or concise.
I ended up with this guide working to get what I needed done except for the last step. The guide said to use
resize2fs
and that does not work. I had to usexfs_growfs
as pointed out in an answer to this post.I just had to do this again.. Time to make a write up here because the original article is no longer online. Had to use the wayback machine to verify my notes.
It be a lot more easier now using Cockpit?
I haven't used the cockpit management stuff yet, so I don't know. The overarching design just can't be simplified any more than how LVM handles things.
-
@JaredBusch said in Wrapping your head around LVM.:
CentOS 7
-
@JaredBusch said in Wrapping your head around LVM.:
@black3dynamite said in Wrapping your head around LVM.:
@JaredBusch said in Wrapping your head around LVM.:
@JaredBusch said in Wrapping your head around LVM.:
@travisdh1 I just went through all of this last night in order to expand space on a CentOS 7 VM.
All of the guides and info seemed really bad. Nothing was consolidated or concise.
I ended up with this guide working to get what I needed done except for the last step. The guide said to use
resize2fs
and that does not work. I had to usexfs_growfs
as pointed out in an answer to this post.I just had to do this again.. Time to make a write up here because the original article is no longer online. Had to use the wayback machine to verify my notes.
It be a lot more easier now using Cockpit?
CentOS 7
You can do it on CentOS.
Also a quick tip is if you do an
lvextend -r
it will auto resize the filesystem.