Remove unknown Device in LVM

Multi tool use
Multi tool use

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











up vote
3
down vote

favorite












Does anyone know how to remove below unknown device(0) from lv/vg/pv?



CentOS 6.7



[root@localhost ~]# lvs -a -o +devices
Couldn't find device with uuid kAWxh3-gucl-ZrAl-GOYw-uLKV-xrBB-J9EJf5.
Couldn't find device for segment belonging to VolGroup/lv_home while checking used and assumed devices.
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices
lv_home VolGroup -wi-ao--p- 164.61g /dev/sda2(12800)
lv_home VolGroup -wi-ao--p- 164.61g unknown device(0)
lv_root VolGroup -wi-ao---- 50.00g /dev/sda2(0)
lv_swap VolGroup -wi-ao---- 4.90g /dev/sda2(29340)


pvdisplay
Couldn't find device with uuid kAWxh3-gucl-ZrAl-GOYw-uLKV-xrBB-J9EJf5.
Couldn't find device for segment belonging to VolGroup/lv_home while checking used and assumed devices.
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup
PV Size 119.51 GiB / not usable 3.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 30594
Free PE 0
Allocated PE 30594
PV UUID 6O0VwG-V12w-QkXG-8vNu-Kjns-zQvs-UU0NXK

--- Physical volume ---
PV Name unknown device
VG Name VolGroup
PV Size 100.00 GiB / not usable 4.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 25599
Free PE 0
Allocated PE 25599
PV UUID kAWxh3-gucl-ZrAl-GOYw-uLKV-xrBB-J9EJf5

--- Physical volume ---
PV Name /dev/sdc1
VG Name VolGroup
PV Size 200.00 GiB / not usable 1.34 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 51199
Free PE 51199
Allocated PE 0
PV UUID nxQOZp-KY1t-UfkE-wWmO-Aq1V-ZEOx-VxocqO

vgs -a -o +devices
Couldn't find device with uuid kAWxh3-gucl-ZrAl-GOYw-uLKV-xrBB-J9EJf5.
Couldn't find device for segment belonging to VolGroup/lv_home while checking used and assumed devices.
VG #PV #LV #SN Attr VSize VFree Devices
VolGroup 3 3 0 wz-pn- 419.50g 200.00g /dev/sda2(0)
VolGroup 3 3 0 wz-pn- 419.50g 200.00g /dev/sda2(12800)
VolGroup 3 3 0 wz-pn- 419.50g 200.00g unknown device(0)
VolGroup 3 3 0 wz-pn- 419.50g 200.00g /dev/sda2(29340)









share|improve this question



























    up vote
    3
    down vote

    favorite












    Does anyone know how to remove below unknown device(0) from lv/vg/pv?



    CentOS 6.7



    [root@localhost ~]# lvs -a -o +devices
    Couldn't find device with uuid kAWxh3-gucl-ZrAl-GOYw-uLKV-xrBB-J9EJf5.
    Couldn't find device for segment belonging to VolGroup/lv_home while checking used and assumed devices.
    LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices
    lv_home VolGroup -wi-ao--p- 164.61g /dev/sda2(12800)
    lv_home VolGroup -wi-ao--p- 164.61g unknown device(0)
    lv_root VolGroup -wi-ao---- 50.00g /dev/sda2(0)
    lv_swap VolGroup -wi-ao---- 4.90g /dev/sda2(29340)


    pvdisplay
    Couldn't find device with uuid kAWxh3-gucl-ZrAl-GOYw-uLKV-xrBB-J9EJf5.
    Couldn't find device for segment belonging to VolGroup/lv_home while checking used and assumed devices.
    --- Physical volume ---
    PV Name /dev/sda2
    VG Name VolGroup
    PV Size 119.51 GiB / not usable 3.00 MiB
    Allocatable yes (but full)
    PE Size 4.00 MiB
    Total PE 30594
    Free PE 0
    Allocated PE 30594
    PV UUID 6O0VwG-V12w-QkXG-8vNu-Kjns-zQvs-UU0NXK

    --- Physical volume ---
    PV Name unknown device
    VG Name VolGroup
    PV Size 100.00 GiB / not usable 4.00 MiB
    Allocatable yes (but full)
    PE Size 4.00 MiB
    Total PE 25599
    Free PE 0
    Allocated PE 25599
    PV UUID kAWxh3-gucl-ZrAl-GOYw-uLKV-xrBB-J9EJf5

    --- Physical volume ---
    PV Name /dev/sdc1
    VG Name VolGroup
    PV Size 200.00 GiB / not usable 1.34 MiB
    Allocatable yes
    PE Size 4.00 MiB
    Total PE 51199
    Free PE 51199
    Allocated PE 0
    PV UUID nxQOZp-KY1t-UfkE-wWmO-Aq1V-ZEOx-VxocqO

    vgs -a -o +devices
    Couldn't find device with uuid kAWxh3-gucl-ZrAl-GOYw-uLKV-xrBB-J9EJf5.
    Couldn't find device for segment belonging to VolGroup/lv_home while checking used and assumed devices.
    VG #PV #LV #SN Attr VSize VFree Devices
    VolGroup 3 3 0 wz-pn- 419.50g 200.00g /dev/sda2(0)
    VolGroup 3 3 0 wz-pn- 419.50g 200.00g /dev/sda2(12800)
    VolGroup 3 3 0 wz-pn- 419.50g 200.00g unknown device(0)
    VolGroup 3 3 0 wz-pn- 419.50g 200.00g /dev/sda2(29340)









    share|improve this question

























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      Does anyone know how to remove below unknown device(0) from lv/vg/pv?



      CentOS 6.7



      [root@localhost ~]# lvs -a -o +devices
      Couldn't find device with uuid kAWxh3-gucl-ZrAl-GOYw-uLKV-xrBB-J9EJf5.
      Couldn't find device for segment belonging to VolGroup/lv_home while checking used and assumed devices.
      LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices
      lv_home VolGroup -wi-ao--p- 164.61g /dev/sda2(12800)
      lv_home VolGroup -wi-ao--p- 164.61g unknown device(0)
      lv_root VolGroup -wi-ao---- 50.00g /dev/sda2(0)
      lv_swap VolGroup -wi-ao---- 4.90g /dev/sda2(29340)


      pvdisplay
      Couldn't find device with uuid kAWxh3-gucl-ZrAl-GOYw-uLKV-xrBB-J9EJf5.
      Couldn't find device for segment belonging to VolGroup/lv_home while checking used and assumed devices.
      --- Physical volume ---
      PV Name /dev/sda2
      VG Name VolGroup
      PV Size 119.51 GiB / not usable 3.00 MiB
      Allocatable yes (but full)
      PE Size 4.00 MiB
      Total PE 30594
      Free PE 0
      Allocated PE 30594
      PV UUID 6O0VwG-V12w-QkXG-8vNu-Kjns-zQvs-UU0NXK

      --- Physical volume ---
      PV Name unknown device
      VG Name VolGroup
      PV Size 100.00 GiB / not usable 4.00 MiB
      Allocatable yes (but full)
      PE Size 4.00 MiB
      Total PE 25599
      Free PE 0
      Allocated PE 25599
      PV UUID kAWxh3-gucl-ZrAl-GOYw-uLKV-xrBB-J9EJf5

      --- Physical volume ---
      PV Name /dev/sdc1
      VG Name VolGroup
      PV Size 200.00 GiB / not usable 1.34 MiB
      Allocatable yes
      PE Size 4.00 MiB
      Total PE 51199
      Free PE 51199
      Allocated PE 0
      PV UUID nxQOZp-KY1t-UfkE-wWmO-Aq1V-ZEOx-VxocqO

      vgs -a -o +devices
      Couldn't find device with uuid kAWxh3-gucl-ZrAl-GOYw-uLKV-xrBB-J9EJf5.
      Couldn't find device for segment belonging to VolGroup/lv_home while checking used and assumed devices.
      VG #PV #LV #SN Attr VSize VFree Devices
      VolGroup 3 3 0 wz-pn- 419.50g 200.00g /dev/sda2(0)
      VolGroup 3 3 0 wz-pn- 419.50g 200.00g /dev/sda2(12800)
      VolGroup 3 3 0 wz-pn- 419.50g 200.00g unknown device(0)
      VolGroup 3 3 0 wz-pn- 419.50g 200.00g /dev/sda2(29340)









      share|improve this question















      Does anyone know how to remove below unknown device(0) from lv/vg/pv?



      CentOS 6.7



      [root@localhost ~]# lvs -a -o +devices
      Couldn't find device with uuid kAWxh3-gucl-ZrAl-GOYw-uLKV-xrBB-J9EJf5.
      Couldn't find device for segment belonging to VolGroup/lv_home while checking used and assumed devices.
      LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices
      lv_home VolGroup -wi-ao--p- 164.61g /dev/sda2(12800)
      lv_home VolGroup -wi-ao--p- 164.61g unknown device(0)
      lv_root VolGroup -wi-ao---- 50.00g /dev/sda2(0)
      lv_swap VolGroup -wi-ao---- 4.90g /dev/sda2(29340)


      pvdisplay
      Couldn't find device with uuid kAWxh3-gucl-ZrAl-GOYw-uLKV-xrBB-J9EJf5.
      Couldn't find device for segment belonging to VolGroup/lv_home while checking used and assumed devices.
      --- Physical volume ---
      PV Name /dev/sda2
      VG Name VolGroup
      PV Size 119.51 GiB / not usable 3.00 MiB
      Allocatable yes (but full)
      PE Size 4.00 MiB
      Total PE 30594
      Free PE 0
      Allocated PE 30594
      PV UUID 6O0VwG-V12w-QkXG-8vNu-Kjns-zQvs-UU0NXK

      --- Physical volume ---
      PV Name unknown device
      VG Name VolGroup
      PV Size 100.00 GiB / not usable 4.00 MiB
      Allocatable yes (but full)
      PE Size 4.00 MiB
      Total PE 25599
      Free PE 0
      Allocated PE 25599
      PV UUID kAWxh3-gucl-ZrAl-GOYw-uLKV-xrBB-J9EJf5

      --- Physical volume ---
      PV Name /dev/sdc1
      VG Name VolGroup
      PV Size 200.00 GiB / not usable 1.34 MiB
      Allocatable yes
      PE Size 4.00 MiB
      Total PE 51199
      Free PE 51199
      Allocated PE 0
      PV UUID nxQOZp-KY1t-UfkE-wWmO-Aq1V-ZEOx-VxocqO

      vgs -a -o +devices
      Couldn't find device with uuid kAWxh3-gucl-ZrAl-GOYw-uLKV-xrBB-J9EJf5.
      Couldn't find device for segment belonging to VolGroup/lv_home while checking used and assumed devices.
      VG #PV #LV #SN Attr VSize VFree Devices
      VolGroup 3 3 0 wz-pn- 419.50g 200.00g /dev/sda2(0)
      VolGroup 3 3 0 wz-pn- 419.50g 200.00g /dev/sda2(12800)
      VolGroup 3 3 0 wz-pn- 419.50g 200.00g unknown device(0)
      VolGroup 3 3 0 wz-pn- 419.50g 200.00g /dev/sda2(29340)






      centos lvm






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 20 '16 at 22:55









      Jeff Schaller

      32.7k849110




      32.7k849110










      asked Oct 14 '16 at 13:50









      Wang Siming

      1612




      1612




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote













          You can either use pvremove or its better to use vgreduce , with UUID or if it doesnt work then use vgreduce --all to clean up things and add again what you want to be in VG.






          share|improve this answer




















          • vgreduce with -f option wont work, because this unknown device is already in LVS list. system asked me to do the cleanup from lv level first.
            – Wang Siming
            Oct 14 '16 at 15:18










          • Plus, I cannot do --all because, this VG is control all filesystems
            – Wang Siming
            Oct 14 '16 at 15:19

















          up vote
          1
          down vote













          vgreduce --removemissing VG works fine.






          share|improve this answer




















            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%2f316417%2fremove-unknown-device-in-lvm%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote













            You can either use pvremove or its better to use vgreduce , with UUID or if it doesnt work then use vgreduce --all to clean up things and add again what you want to be in VG.






            share|improve this answer




















            • vgreduce with -f option wont work, because this unknown device is already in LVS list. system asked me to do the cleanup from lv level first.
              – Wang Siming
              Oct 14 '16 at 15:18










            • Plus, I cannot do --all because, this VG is control all filesystems
              – Wang Siming
              Oct 14 '16 at 15:19














            up vote
            2
            down vote













            You can either use pvremove or its better to use vgreduce , with UUID or if it doesnt work then use vgreduce --all to clean up things and add again what you want to be in VG.






            share|improve this answer




















            • vgreduce with -f option wont work, because this unknown device is already in LVS list. system asked me to do the cleanup from lv level first.
              – Wang Siming
              Oct 14 '16 at 15:18










            • Plus, I cannot do --all because, this VG is control all filesystems
              – Wang Siming
              Oct 14 '16 at 15:19












            up vote
            2
            down vote










            up vote
            2
            down vote









            You can either use pvremove or its better to use vgreduce , with UUID or if it doesnt work then use vgreduce --all to clean up things and add again what you want to be in VG.






            share|improve this answer












            You can either use pvremove or its better to use vgreduce , with UUID or if it doesnt work then use vgreduce --all to clean up things and add again what you want to be in VG.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Oct 14 '16 at 14:45









            Ijaz Khan

            3,09931333




            3,09931333











            • vgreduce with -f option wont work, because this unknown device is already in LVS list. system asked me to do the cleanup from lv level first.
              – Wang Siming
              Oct 14 '16 at 15:18










            • Plus, I cannot do --all because, this VG is control all filesystems
              – Wang Siming
              Oct 14 '16 at 15:19
















            • vgreduce with -f option wont work, because this unknown device is already in LVS list. system asked me to do the cleanup from lv level first.
              – Wang Siming
              Oct 14 '16 at 15:18










            • Plus, I cannot do --all because, this VG is control all filesystems
              – Wang Siming
              Oct 14 '16 at 15:19















            vgreduce with -f option wont work, because this unknown device is already in LVS list. system asked me to do the cleanup from lv level first.
            – Wang Siming
            Oct 14 '16 at 15:18




            vgreduce with -f option wont work, because this unknown device is already in LVS list. system asked me to do the cleanup from lv level first.
            – Wang Siming
            Oct 14 '16 at 15:18












            Plus, I cannot do --all because, this VG is control all filesystems
            – Wang Siming
            Oct 14 '16 at 15:19




            Plus, I cannot do --all because, this VG is control all filesystems
            – Wang Siming
            Oct 14 '16 at 15:19












            up vote
            1
            down vote













            vgreduce --removemissing VG works fine.






            share|improve this answer
























              up vote
              1
              down vote













              vgreduce --removemissing VG works fine.






              share|improve this answer






















                up vote
                1
                down vote










                up vote
                1
                down vote









                vgreduce --removemissing VG works fine.






                share|improve this answer












                vgreduce --removemissing VG works fine.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Aug 23 at 17:11









                Rodrigo Vieira Rodrigues

                111




                111



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f316417%2fremove-unknown-device-in-lvm%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    jDCVWBr4N9,ooDU 8ntm1fx0R5dV,LnraFkjCjN0bgkK 1w yufCjtUjNHk23
                    v4ZhhFw B8c6uEogo

                    Popular posts from this blog

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

                    How many registers does an x86_64 CPU actually have?

                    Displaying single band from multi-band raster using QGIS