How do I create Free Extents, so I can replace a physical drive in this lvm Volume Group?

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











up vote
1
down vote

favorite












I have a Fedora Linux 28 system with 4 physical drives all in one LVM Volume Group. This system's motherboard only has 4 SATA slots. My goal is to remove the /dev/sdd physical drive from the Volume Group. I set this LVM Volume Group up during the installation of Fedora and I haven't made any changes to it since.



sudo lvm pvdisplay -m outputs the following:



 --- Physical volume ---
PV Name /dev/sdb2
VG Name fedora
PV Size <148.05 GiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 37900
Free PE 0
Allocated PE 37900
PV UUID VWJMSa-pvQ2-7Ih8-viHe-buy2-PYJC-GEefBa

--- Physical Segments ---
Physical extent 0 to 37899:
Logical volume /dev/fedora/root
Logical extents 76310 to 114209

--- Physical volume ---
PV Name /dev/sdc1
VG Name fedora
PV Size <74.53 GiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 19079
Free PE 0
Allocated PE 19079
PV UUID fiknY0-2s1A-tk8S-TLBz-WH2E-DAjH-DdSEoD

--- Physical Segments ---
Physical extent 0 to 19078:
Logical volume /dev/fedora/root
Logical extents 114210 to 133288

--- Physical volume ---
PV Name /dev/sdd1
VG Name fedora
PV Size <74.53 GiB / not usable 2.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 19079
Free PE 1
Allocated PE 19078
PV UUID nIeix3-CrhC-BM3o-ZBFU-xowH-h2MS-LohQZ6

--- Physical Segments ---
Physical extent 0 to 18082:
Logical volume /dev/fedora/root
Logical extents 133289 to 151371
Physical extent 18083 to 19077:
Logical volume /dev/fedora/swap
Logical extents 0 to 994
Physical extent 19078 to 19078:
FREE

--- Physical volume ---
PV Name /dev/sda1
VG Name fedora
PV Size <298.09 GiB / not usable 4.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 76310
Free PE 0
Allocated PE 76310
PV UUID emQpJu-VuAs-20mU-KcJz-d8Wu-wAJK-8caUof

--- Physical Segments ---
Physical extent 0 to 76309:
Logical volume /dev/fedora/root
Logical extents 0 to 76309


I'm trying to follow this guide, which describes how to use the pvmove command, but running pvmove /dev/sdd1 gives me this error:



No extents available for allocation.


How do I create extents for the allocation process?



EDIT



lvm pvs



PV VG Fmt Attr PSize PFree
/dev/sda1 fedora lvm2 a-- <298.09g 0
/dev/sdb2 fedora lvm2 a-- <148.05g 0
/dev/sdc1 fedora lvm2 a-- <74.53g 0
/dev/sdd1 fedora lvm2 a-- <74.53g 4.00m


lvm lvs



LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root fedora -wi-ao---- <591.30g
swap fedora -wi-ao---- <3.89g


lvm vgs



 VG #PV #LV #SN Attr VSize VFree
fedora 4 2 0 wz--n- <595.19g 4.00m


EDIT 2



df -Th



/dev/mapper/fedora-root ext4 582G 443G 110G 81% /









share|improve this question









New contributor




Nathan Jones is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • you have to add new disk, you only have 1 (one) extend free. pvmove will only work if there is a free disk to "receive" moved extents.
    – Archemar
    4 hours ago










  • @Archemar Do you mean a new physical drive? I can't do that, as I'm already using all available SATA slots. I have >75GB free, so is it possible to use that free space in the pvmove?
    – Nathan Jones
    4 hours ago











  • You must first delete or shrink some existing LVs.
    – Michael Hampton
    4 hours ago







  • 1




    And your root filesystem is probably XFS, which can't be shrunk. You somehow dug a hole for yourself here. You're going to have to add another disk, at least temporarily.
    – Michael Hampton
    4 hours ago






  • 1




    Oh, well, in that case you can just do it the usual way. No problem.
    – Michael Hampton
    4 hours ago














up vote
1
down vote

favorite












I have a Fedora Linux 28 system with 4 physical drives all in one LVM Volume Group. This system's motherboard only has 4 SATA slots. My goal is to remove the /dev/sdd physical drive from the Volume Group. I set this LVM Volume Group up during the installation of Fedora and I haven't made any changes to it since.



sudo lvm pvdisplay -m outputs the following:



 --- Physical volume ---
PV Name /dev/sdb2
VG Name fedora
PV Size <148.05 GiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 37900
Free PE 0
Allocated PE 37900
PV UUID VWJMSa-pvQ2-7Ih8-viHe-buy2-PYJC-GEefBa

--- Physical Segments ---
Physical extent 0 to 37899:
Logical volume /dev/fedora/root
Logical extents 76310 to 114209

--- Physical volume ---
PV Name /dev/sdc1
VG Name fedora
PV Size <74.53 GiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 19079
Free PE 0
Allocated PE 19079
PV UUID fiknY0-2s1A-tk8S-TLBz-WH2E-DAjH-DdSEoD

--- Physical Segments ---
Physical extent 0 to 19078:
Logical volume /dev/fedora/root
Logical extents 114210 to 133288

--- Physical volume ---
PV Name /dev/sdd1
VG Name fedora
PV Size <74.53 GiB / not usable 2.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 19079
Free PE 1
Allocated PE 19078
PV UUID nIeix3-CrhC-BM3o-ZBFU-xowH-h2MS-LohQZ6

--- Physical Segments ---
Physical extent 0 to 18082:
Logical volume /dev/fedora/root
Logical extents 133289 to 151371
Physical extent 18083 to 19077:
Logical volume /dev/fedora/swap
Logical extents 0 to 994
Physical extent 19078 to 19078:
FREE

--- Physical volume ---
PV Name /dev/sda1
VG Name fedora
PV Size <298.09 GiB / not usable 4.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 76310
Free PE 0
Allocated PE 76310
PV UUID emQpJu-VuAs-20mU-KcJz-d8Wu-wAJK-8caUof

--- Physical Segments ---
Physical extent 0 to 76309:
Logical volume /dev/fedora/root
Logical extents 0 to 76309


I'm trying to follow this guide, which describes how to use the pvmove command, but running pvmove /dev/sdd1 gives me this error:



No extents available for allocation.


How do I create extents for the allocation process?



EDIT



lvm pvs



PV VG Fmt Attr PSize PFree
/dev/sda1 fedora lvm2 a-- <298.09g 0
/dev/sdb2 fedora lvm2 a-- <148.05g 0
/dev/sdc1 fedora lvm2 a-- <74.53g 0
/dev/sdd1 fedora lvm2 a-- <74.53g 4.00m


lvm lvs



LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root fedora -wi-ao---- <591.30g
swap fedora -wi-ao---- <3.89g


lvm vgs



 VG #PV #LV #SN Attr VSize VFree
fedora 4 2 0 wz--n- <595.19g 4.00m


EDIT 2



df -Th



/dev/mapper/fedora-root ext4 582G 443G 110G 81% /









share|improve this question









New contributor




Nathan Jones is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • you have to add new disk, you only have 1 (one) extend free. pvmove will only work if there is a free disk to "receive" moved extents.
    – Archemar
    4 hours ago










  • @Archemar Do you mean a new physical drive? I can't do that, as I'm already using all available SATA slots. I have >75GB free, so is it possible to use that free space in the pvmove?
    – Nathan Jones
    4 hours ago











  • You must first delete or shrink some existing LVs.
    – Michael Hampton
    4 hours ago







  • 1




    And your root filesystem is probably XFS, which can't be shrunk. You somehow dug a hole for yourself here. You're going to have to add another disk, at least temporarily.
    – Michael Hampton
    4 hours ago






  • 1




    Oh, well, in that case you can just do it the usual way. No problem.
    – Michael Hampton
    4 hours ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have a Fedora Linux 28 system with 4 physical drives all in one LVM Volume Group. This system's motherboard only has 4 SATA slots. My goal is to remove the /dev/sdd physical drive from the Volume Group. I set this LVM Volume Group up during the installation of Fedora and I haven't made any changes to it since.



sudo lvm pvdisplay -m outputs the following:



 --- Physical volume ---
PV Name /dev/sdb2
VG Name fedora
PV Size <148.05 GiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 37900
Free PE 0
Allocated PE 37900
PV UUID VWJMSa-pvQ2-7Ih8-viHe-buy2-PYJC-GEefBa

--- Physical Segments ---
Physical extent 0 to 37899:
Logical volume /dev/fedora/root
Logical extents 76310 to 114209

--- Physical volume ---
PV Name /dev/sdc1
VG Name fedora
PV Size <74.53 GiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 19079
Free PE 0
Allocated PE 19079
PV UUID fiknY0-2s1A-tk8S-TLBz-WH2E-DAjH-DdSEoD

--- Physical Segments ---
Physical extent 0 to 19078:
Logical volume /dev/fedora/root
Logical extents 114210 to 133288

--- Physical volume ---
PV Name /dev/sdd1
VG Name fedora
PV Size <74.53 GiB / not usable 2.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 19079
Free PE 1
Allocated PE 19078
PV UUID nIeix3-CrhC-BM3o-ZBFU-xowH-h2MS-LohQZ6

--- Physical Segments ---
Physical extent 0 to 18082:
Logical volume /dev/fedora/root
Logical extents 133289 to 151371
Physical extent 18083 to 19077:
Logical volume /dev/fedora/swap
Logical extents 0 to 994
Physical extent 19078 to 19078:
FREE

--- Physical volume ---
PV Name /dev/sda1
VG Name fedora
PV Size <298.09 GiB / not usable 4.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 76310
Free PE 0
Allocated PE 76310
PV UUID emQpJu-VuAs-20mU-KcJz-d8Wu-wAJK-8caUof

--- Physical Segments ---
Physical extent 0 to 76309:
Logical volume /dev/fedora/root
Logical extents 0 to 76309


I'm trying to follow this guide, which describes how to use the pvmove command, but running pvmove /dev/sdd1 gives me this error:



No extents available for allocation.


How do I create extents for the allocation process?



EDIT



lvm pvs



PV VG Fmt Attr PSize PFree
/dev/sda1 fedora lvm2 a-- <298.09g 0
/dev/sdb2 fedora lvm2 a-- <148.05g 0
/dev/sdc1 fedora lvm2 a-- <74.53g 0
/dev/sdd1 fedora lvm2 a-- <74.53g 4.00m


lvm lvs



LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root fedora -wi-ao---- <591.30g
swap fedora -wi-ao---- <3.89g


lvm vgs



 VG #PV #LV #SN Attr VSize VFree
fedora 4 2 0 wz--n- <595.19g 4.00m


EDIT 2



df -Th



/dev/mapper/fedora-root ext4 582G 443G 110G 81% /









share|improve this question









New contributor




Nathan Jones is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have a Fedora Linux 28 system with 4 physical drives all in one LVM Volume Group. This system's motherboard only has 4 SATA slots. My goal is to remove the /dev/sdd physical drive from the Volume Group. I set this LVM Volume Group up during the installation of Fedora and I haven't made any changes to it since.



sudo lvm pvdisplay -m outputs the following:



 --- Physical volume ---
PV Name /dev/sdb2
VG Name fedora
PV Size <148.05 GiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 37900
Free PE 0
Allocated PE 37900
PV UUID VWJMSa-pvQ2-7Ih8-viHe-buy2-PYJC-GEefBa

--- Physical Segments ---
Physical extent 0 to 37899:
Logical volume /dev/fedora/root
Logical extents 76310 to 114209

--- Physical volume ---
PV Name /dev/sdc1
VG Name fedora
PV Size <74.53 GiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 19079
Free PE 0
Allocated PE 19079
PV UUID fiknY0-2s1A-tk8S-TLBz-WH2E-DAjH-DdSEoD

--- Physical Segments ---
Physical extent 0 to 19078:
Logical volume /dev/fedora/root
Logical extents 114210 to 133288

--- Physical volume ---
PV Name /dev/sdd1
VG Name fedora
PV Size <74.53 GiB / not usable 2.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 19079
Free PE 1
Allocated PE 19078
PV UUID nIeix3-CrhC-BM3o-ZBFU-xowH-h2MS-LohQZ6

--- Physical Segments ---
Physical extent 0 to 18082:
Logical volume /dev/fedora/root
Logical extents 133289 to 151371
Physical extent 18083 to 19077:
Logical volume /dev/fedora/swap
Logical extents 0 to 994
Physical extent 19078 to 19078:
FREE

--- Physical volume ---
PV Name /dev/sda1
VG Name fedora
PV Size <298.09 GiB / not usable 4.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 76310
Free PE 0
Allocated PE 76310
PV UUID emQpJu-VuAs-20mU-KcJz-d8Wu-wAJK-8caUof

--- Physical Segments ---
Physical extent 0 to 76309:
Logical volume /dev/fedora/root
Logical extents 0 to 76309


I'm trying to follow this guide, which describes how to use the pvmove command, but running pvmove /dev/sdd1 gives me this error:



No extents available for allocation.


How do I create extents for the allocation process?



EDIT



lvm pvs



PV VG Fmt Attr PSize PFree
/dev/sda1 fedora lvm2 a-- <298.09g 0
/dev/sdb2 fedora lvm2 a-- <148.05g 0
/dev/sdc1 fedora lvm2 a-- <74.53g 0
/dev/sdd1 fedora lvm2 a-- <74.53g 4.00m


lvm lvs



LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root fedora -wi-ao---- <591.30g
swap fedora -wi-ao---- <3.89g


lvm vgs



 VG #PV #LV #SN Attr VSize VFree
fedora 4 2 0 wz--n- <595.19g 4.00m


EDIT 2



df -Th



/dev/mapper/fedora-root ext4 582G 443G 110G 81% /






linux fedora lvm






share|improve this question









New contributor




Nathan Jones is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Nathan Jones is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 4 hours ago





















New contributor




Nathan Jones is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 5 hours ago









Nathan Jones

1062




1062




New contributor




Nathan Jones is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Nathan Jones is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Nathan Jones is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • you have to add new disk, you only have 1 (one) extend free. pvmove will only work if there is a free disk to "receive" moved extents.
    – Archemar
    4 hours ago










  • @Archemar Do you mean a new physical drive? I can't do that, as I'm already using all available SATA slots. I have >75GB free, so is it possible to use that free space in the pvmove?
    – Nathan Jones
    4 hours ago











  • You must first delete or shrink some existing LVs.
    – Michael Hampton
    4 hours ago







  • 1




    And your root filesystem is probably XFS, which can't be shrunk. You somehow dug a hole for yourself here. You're going to have to add another disk, at least temporarily.
    – Michael Hampton
    4 hours ago






  • 1




    Oh, well, in that case you can just do it the usual way. No problem.
    – Michael Hampton
    4 hours ago
















  • you have to add new disk, you only have 1 (one) extend free. pvmove will only work if there is a free disk to "receive" moved extents.
    – Archemar
    4 hours ago










  • @Archemar Do you mean a new physical drive? I can't do that, as I'm already using all available SATA slots. I have >75GB free, so is it possible to use that free space in the pvmove?
    – Nathan Jones
    4 hours ago











  • You must first delete or shrink some existing LVs.
    – Michael Hampton
    4 hours ago







  • 1




    And your root filesystem is probably XFS, which can't be shrunk. You somehow dug a hole for yourself here. You're going to have to add another disk, at least temporarily.
    – Michael Hampton
    4 hours ago






  • 1




    Oh, well, in that case you can just do it the usual way. No problem.
    – Michael Hampton
    4 hours ago















you have to add new disk, you only have 1 (one) extend free. pvmove will only work if there is a free disk to "receive" moved extents.
– Archemar
4 hours ago




you have to add new disk, you only have 1 (one) extend free. pvmove will only work if there is a free disk to "receive" moved extents.
– Archemar
4 hours ago












@Archemar Do you mean a new physical drive? I can't do that, as I'm already using all available SATA slots. I have >75GB free, so is it possible to use that free space in the pvmove?
– Nathan Jones
4 hours ago





@Archemar Do you mean a new physical drive? I can't do that, as I'm already using all available SATA slots. I have >75GB free, so is it possible to use that free space in the pvmove?
– Nathan Jones
4 hours ago













You must first delete or shrink some existing LVs.
– Michael Hampton
4 hours ago





You must first delete or shrink some existing LVs.
– Michael Hampton
4 hours ago





1




1




And your root filesystem is probably XFS, which can't be shrunk. You somehow dug a hole for yourself here. You're going to have to add another disk, at least temporarily.
– Michael Hampton
4 hours ago




And your root filesystem is probably XFS, which can't be shrunk. You somehow dug a hole for yourself here. You're going to have to add another disk, at least temporarily.
– Michael Hampton
4 hours ago




1




1




Oh, well, in that case you can just do it the usual way. No problem.
– Michael Hampton
4 hours ago




Oh, well, in that case you can just do it the usual way. No problem.
– Michael Hampton
4 hours ago















active

oldest

votes











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: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






Nathan Jones is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f481149%2fhow-do-i-create-free-extents-so-i-can-replace-a-physical-drive-in-this-lvm-volu%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








Nathan Jones is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















Nathan Jones is a new contributor. Be nice, and check out our Code of Conduct.












Nathan Jones is a new contributor. Be nice, and check out our Code of Conduct.











Nathan Jones is a new contributor. Be nice, and check out our Code of Conduct.













 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f481149%2fhow-do-i-create-free-extents-so-i-can-replace-a-physical-drive-in-this-lvm-volu%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?