Increase space on part/lvm or mount
Clash 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.
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
add a comment |Â
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.
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
Please add the output ofpvs
andvgs
andlvs
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
add a comment |Â
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.
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
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.
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
linux ubuntu centos aws plesk
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 ofpvs
andvgs
andlvs
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
add a comment |Â
Please add the output ofpvs
andvgs
andlvs
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
add a comment |Â
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
You sir, are a legend. Worked like a charm. Thank you so much
â Ela Buwa
Sep 11 at 11:35
add a comment |Â
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
You sir, are a legend. Worked like a charm. Thank you so much
â Ela Buwa
Sep 11 at 11:35
add a comment |Â
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
You sir, are a legend. Worked like a charm. Thank you so much
â Ela Buwa
Sep 11 at 11:35
add a comment |Â
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
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
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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Please add the output of
pvs
andvgs
andlvs
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