Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: [LVM] Reduce LVM volume

  1. #11
    Join Date
    Oct 2006
    Beans
    Hidden!

    Re: [LVM] Reduce LVM volume

    Thanks, much appreciated!
    It's still ~10 hours of moving... I'll bump the thread when I've got any news.

  2. #12
    Join Date
    Oct 2006
    Beans
    Hidden!

    Re: [LVM] Reduce LVM volume

    pvmove don't remove the drive from the volume group, I'm getting following from the command:
    Code:
    root@tux ~ # pvmove -v /dev/sdd1 --alloc anywhere
        Finding volume group "datavg"
        Archiving volume group "datavg" metadata (seqno 18).
        Creating logical volume pvmove0
      No data to move for datavg
    So I guess I should use pvremove instead? I tried with the test flag first and got following output.
    Code:
    root@tux ~ # pvremove -v -t /dev/sdd1 
      Test mode: Metadata will NOT be updated.
      Can't pvremove physical volume "/dev/sdd1" of volume group "datavg" without -ff
        Test mode: Wiping internal cache
        Wiping internal VG cache
    root@tux ~ # pvremove -v /dev/sdd1 
      Can't pvremove physical volume "/dev/sdd1" of volume group "datavg" without -ff
    Is the -ff standard, should I do a pvremove -v -ff /dev/sdd1?

  3. #13
    Join Date
    Nov 2009
    Location
    Mataro, Spain
    Beans
    13,318
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: [LVM] Reduce LVM volume

    I think the No data to move only means the extends on sdd1 are not used in the LVM, there is no actual data on them. Which is good news since you can only remove a physical device that hold no LVM data in use.

    The command to remove sdd1 from the LVM is not pvremove, it's vgreduce. It should be like:
    Code:
    sudo vgreduce datavg /dev/sdd1
    http://www.tldp.org/HOWTO/LVM-HOWTO/...pvsfromvg.html

    You did reduce the filesystem first, right? Anyway, if pvmove says there is no data to move then sdd1 hasn't been used yet and will be easy to remove.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 14.04 LTS 64bit & Windows 10 Pro 64bit

  4. #14
    Join Date
    Oct 2006
    Beans
    Hidden!

    Re: [LVM] Reduce LVM volume

    Yes, I should off course use vgreduce, thanks.
    I've updated my list with vgreduce, another lvextend due to some unallocated space on sda3 after lvreduce.

    The LVM is now configures as I want, thanks for your help darkod.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •