Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Morning All,
I have rhel6 with partition with 2.5TB size and its gpt
So I already in the past extend the vg so I have another 2.5TB FREE
What I want to do is extend lv to 500gb from 2.5TB from making it 3TB.
The way I figure is
umount partition
run lvextend -L500GB /dev/mapper/chewy-nfs
run resize2fs /dev/mapper/chewy-nfs
I am not sure what you mean by "partition", and why you want to unmount it. Can you give us the output of pvs and df?
The two other lines look good if /dev/mapper/chewy-nfs
is in a volume group that has enough space
is currently smaller than 500GB
has an ext3 or ext4 filesystem on it
Quote:
GPT makes me nervous.
Why? It's over 15 years old and proven. Besides, you are working with LVM here, not GPT. What makes me nervous is your remark that you want to umount something.
GPT isn't a problem, not specifying the parms correctly will be.
Code:
-L, --size [+]LogicalVolumeSize[bBsSkKmMgGtTpPeE]
Extend or set the logical volume size in units of megabytes. A size suffix of M for megabytes, G for gigabytes, T for ter
abytes, P for petabytes or E for exabytes is optional. With the + sign the value is added to the actual size of the logical
volume and without it, the value is taken as an absolute one.
My emphasis added.
Last edited by syg00; 10-31-2015 at 12:38 AM.
Reason: mumble
Thanks for the tips guys!
berndbausch,
/dev/mapper/chewy-nfs /chewy
It an nfs share/partition, what ever u want to call it.
syg0, I've used the +SIZEGB for a long time, never had any issue
lvextend -LSIZEG lvm name i.e lvextend /dev/mapper/vg3-lv1 /dev/sdc2
*lvextend -L+SIZEG lvm name for exisiting size
*lvextend -l +100FREE "" or lvextend -l extents etc..
<response back from server>
# lvextend -L+500GB /dev/mapper/chewy-nfs
Extending logical volume nfs to 3.12 TB
Logical volume nfs successfully resized
I only need to do the lvextend since I was already done with adding the drive, parted expanding the drive and vgextended like months ago.
RIght now I'm stuck at e2fsck, Only 3.7 % completed since this morning.
My e2fsck begun to pick up as soon I shutdown non essential services i.e nfs(nfs server), portmap, auditd, (the main services running for the app has already been turned off)
Hortageno, it says to use fsadm with lvextend -r (I've already done lvextend -L500GB /dev/mapper/chewy-nfs
. I typically do resize2fs /dev/mapper/chewy-nfs after it) It doesn't look it would fit my current scenario.
Thanks for the tip - I will try it on test env.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.