Increase space on part/lvm or mount

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












So, long story short, got a server(EC2) with 2 EBS pointed to it. (100G & 200G).
Upon investigation, I come across that the /var/www mount has only 50GB assigned.
My requirement is to increase this 50GB's to 100GB if possible.



The structure of the disk is as the below image.enter image description here



Above is the output I get when I run the lsblk command.



Below is what it seems to be running on.
CentOS release 6.10 (Final)
17.8.11 cos6.build1708180301.19



This also has Plesk installed. I am open to installing a plugin.



-----PVS,VGS,LVS



PVS Output



PV VG Fmt Attr PSize PFree
/dev/xvdj1 data lvm2 a--u 50.00g 0


VGS Output



VG #PV #LV #SN Attr VSize VFree
data 1 1 0 wz--n- 50.00g 0


LVS Output



LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
www data -wi-ao---- 50.00g









share|improve this question























  • Please add the output of pvs and vgs and lvs to your question. This may impact the answer. Also, please don't post screenshots, but cut'n'paste the text.
    – Stephen Harris
    Sep 11 at 1:28











  • thank you. added them
    – Ela Buwa
    Sep 11 at 1:31










  • Please avoid using images when text will do.
    – Rui F Ribeiro
    Sep 11 at 7:45














up vote
1
down vote

favorite












So, long story short, got a server(EC2) with 2 EBS pointed to it. (100G & 200G).
Upon investigation, I come across that the /var/www mount has only 50GB assigned.
My requirement is to increase this 50GB's to 100GB if possible.



The structure of the disk is as the below image.enter image description here



Above is the output I get when I run the lsblk command.



Below is what it seems to be running on.
CentOS release 6.10 (Final)
17.8.11 cos6.build1708180301.19



This also has Plesk installed. I am open to installing a plugin.



-----PVS,VGS,LVS



PVS Output



PV VG Fmt Attr PSize PFree
/dev/xvdj1 data lvm2 a--u 50.00g 0


VGS Output



VG #PV #LV #SN Attr VSize VFree
data 1 1 0 wz--n- 50.00g 0


LVS Output



LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
www data -wi-ao---- 50.00g









share|improve this question























  • Please add the output of pvs and vgs and lvs to your question. This may impact the answer. Also, please don't post screenshots, but cut'n'paste the text.
    – Stephen Harris
    Sep 11 at 1:28











  • thank you. added them
    – Ela Buwa
    Sep 11 at 1:31










  • Please avoid using images when text will do.
    – Rui F Ribeiro
    Sep 11 at 7:45












up vote
1
down vote

favorite









up vote
1
down vote

favorite











So, long story short, got a server(EC2) with 2 EBS pointed to it. (100G & 200G).
Upon investigation, I come across that the /var/www mount has only 50GB assigned.
My requirement is to increase this 50GB's to 100GB if possible.



The structure of the disk is as the below image.enter image description here



Above is the output I get when I run the lsblk command.



Below is what it seems to be running on.
CentOS release 6.10 (Final)
17.8.11 cos6.build1708180301.19



This also has Plesk installed. I am open to installing a plugin.



-----PVS,VGS,LVS



PVS Output



PV VG Fmt Attr PSize PFree
/dev/xvdj1 data lvm2 a--u 50.00g 0


VGS Output



VG #PV #LV #SN Attr VSize VFree
data 1 1 0 wz--n- 50.00g 0


LVS Output



LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
www data -wi-ao---- 50.00g









share|improve this question















So, long story short, got a server(EC2) with 2 EBS pointed to it. (100G & 200G).
Upon investigation, I come across that the /var/www mount has only 50GB assigned.
My requirement is to increase this 50GB's to 100GB if possible.



The structure of the disk is as the below image.enter image description here



Above is the output I get when I run the lsblk command.



Below is what it seems to be running on.
CentOS release 6.10 (Final)
17.8.11 cos6.build1708180301.19



This also has Plesk installed. I am open to installing a plugin.



-----PVS,VGS,LVS



PVS Output



PV VG Fmt Attr PSize PFree
/dev/xvdj1 data lvm2 a--u 50.00g 0


VGS Output



VG #PV #LV #SN Attr VSize VFree
data 1 1 0 wz--n- 50.00g 0


LVS Output



LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
www data -wi-ao---- 50.00g






linux ubuntu centos aws plesk






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 11 at 20:17









Rui F Ribeiro

36.8k1273117




36.8k1273117










asked Sep 11 at 1:21









Ela Buwa

1134




1134











  • Please add the output of pvs and vgs and lvs to your question. This may impact the answer. Also, please don't post screenshots, but cut'n'paste the text.
    – Stephen Harris
    Sep 11 at 1:28











  • thank you. added them
    – Ela Buwa
    Sep 11 at 1:31










  • Please avoid using images when text will do.
    – Rui F Ribeiro
    Sep 11 at 7:45
















  • Please add the output of pvs and vgs and lvs to your question. This may impact the answer. Also, please don't post screenshots, but cut'n'paste the text.
    – Stephen Harris
    Sep 11 at 1:28











  • thank you. added them
    – Ela Buwa
    Sep 11 at 1:31










  • Please avoid using images when text will do.
    – Rui F Ribeiro
    Sep 11 at 7:45















Please add the output of pvs and vgs and lvs to your question. This may impact the answer. Also, please don't post screenshots, but cut'n'paste the text.
– Stephen Harris
Sep 11 at 1:28





Please add the output of pvs and vgs and lvs to your question. This may impact the answer. Also, please don't post screenshots, but cut'n'paste the text.
– Stephen Harris
Sep 11 at 1:28













thank you. added them
– Ela Buwa
Sep 11 at 1:31




thank you. added them
– Ela Buwa
Sep 11 at 1:31












Please avoid using images when text will do.
– Rui F Ribeiro
Sep 11 at 7:45




Please avoid using images when text will do.
– Rui F Ribeiro
Sep 11 at 7:45










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










First, you have to make sure the PV (Physical Volume) on /dev/xvdj1 takes the whole partition. You can do that by running



pvresize /dev/xvdj1


This will resize the PV to take all available space. See man pvresize for more options.



After that, you can resize the LV (Logical Volume); for example:



lvresize --resizefs --size 88G /dev/data/www


to resize the device to 88GB. Use



lvresize --resizefs -l 100%FREE /dev/data/www


to allocate all free space in the VG to the data/www LV. See man lvresize for more options.



For more information on LVM, see An Introduction to LVM Concepts, Terminology, and Operations






share|improve this answer




















  • You sir, are a legend. Worked like a charm. Thank you so much
    – Ela Buwa
    Sep 11 at 11:35










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f468145%2fincrease-space-on-part-lvm-or-mount%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










First, you have to make sure the PV (Physical Volume) on /dev/xvdj1 takes the whole partition. You can do that by running



pvresize /dev/xvdj1


This will resize the PV to take all available space. See man pvresize for more options.



After that, you can resize the LV (Logical Volume); for example:



lvresize --resizefs --size 88G /dev/data/www


to resize the device to 88GB. Use



lvresize --resizefs -l 100%FREE /dev/data/www


to allocate all free space in the VG to the data/www LV. See man lvresize for more options.



For more information on LVM, see An Introduction to LVM Concepts, Terminology, and Operations






share|improve this answer




















  • You sir, are a legend. Worked like a charm. Thank you so much
    – Ela Buwa
    Sep 11 at 11:35














up vote
1
down vote



accepted










First, you have to make sure the PV (Physical Volume) on /dev/xvdj1 takes the whole partition. You can do that by running



pvresize /dev/xvdj1


This will resize the PV to take all available space. See man pvresize for more options.



After that, you can resize the LV (Logical Volume); for example:



lvresize --resizefs --size 88G /dev/data/www


to resize the device to 88GB. Use



lvresize --resizefs -l 100%FREE /dev/data/www


to allocate all free space in the VG to the data/www LV. See man lvresize for more options.



For more information on LVM, see An Introduction to LVM Concepts, Terminology, and Operations






share|improve this answer




















  • You sir, are a legend. Worked like a charm. Thank you so much
    – Ela Buwa
    Sep 11 at 11:35












up vote
1
down vote



accepted







up vote
1
down vote



accepted






First, you have to make sure the PV (Physical Volume) on /dev/xvdj1 takes the whole partition. You can do that by running



pvresize /dev/xvdj1


This will resize the PV to take all available space. See man pvresize for more options.



After that, you can resize the LV (Logical Volume); for example:



lvresize --resizefs --size 88G /dev/data/www


to resize the device to 88GB. Use



lvresize --resizefs -l 100%FREE /dev/data/www


to allocate all free space in the VG to the data/www LV. See man lvresize for more options.



For more information on LVM, see An Introduction to LVM Concepts, Terminology, and Operations






share|improve this answer












First, you have to make sure the PV (Physical Volume) on /dev/xvdj1 takes the whole partition. You can do that by running



pvresize /dev/xvdj1


This will resize the PV to take all available space. See man pvresize for more options.



After that, you can resize the LV (Logical Volume); for example:



lvresize --resizefs --size 88G /dev/data/www


to resize the device to 88GB. Use



lvresize --resizefs -l 100%FREE /dev/data/www


to allocate all free space in the VG to the data/www LV. See man lvresize for more options.



For more information on LVM, see An Introduction to LVM Concepts, Terminology, and Operations







share|improve this answer












share|improve this answer



share|improve this answer










answered Sep 11 at 8:08









mhutter

567210




567210











  • You sir, are a legend. Worked like a charm. Thank you so much
    – Ela Buwa
    Sep 11 at 11:35
















  • You sir, are a legend. Worked like a charm. Thank you so much
    – Ela Buwa
    Sep 11 at 11:35















You sir, are a legend. Worked like a charm. Thank you so much
– Ela Buwa
Sep 11 at 11:35




You sir, are a legend. Worked like a charm. Thank you so much
– Ela Buwa
Sep 11 at 11:35

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f468145%2fincrease-space-on-part-lvm-or-mount%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?