Change from local-lvm to local storage

Discussion in 'Proxmox VE: Installation and configuration' started by David Serarols, Feb 15, 2018.

  1. David Serarols

    David Serarols New Member

    Joined:
    Feb 15, 2018
    Messages:
    5
    Likes Received:
    1
    Hi,

    I have recently installed a Proxmox 4.4-18/ef2610e8 node in a existing cluster. Our node has a 8 TB disc, but I realised that our storage is like this:

    local: 100 GB
    local-lvm : (almost) 8 TB

    Since the other nodes on the cluster have storage type local, we would prefer this new node will be the same.

    How can I erase this local-lvm and transfer all space to local storage?

    There is not any VM in the node, so I think it must be easy.

    Any suggestion?
     
  2. fireon

    fireon Well-Known Member
    Proxmox Subscriber

    Joined:
    Oct 25, 2010
    Messages:
    2,976
    Likes Received:
    181
    Yes that is possible. First remove the existing LVM-Thin:
    Code:
    lvremove pve/data
    Then create an normal lvm on existing group. For example:
    Code:
    lvcreate -L 755.96G -n data pve
    Format it:
    Code:
    mkfs.ext4 /dev/pve/data
    Mount it in the fstab. The mounttarget must be empy, so delete everything in there.
    Code:
    /dev/pve/data /var/lib/vz ext4 defaults 0 2
    rm -rf /var/lib/vz/* && mount -a
    
    After all create you normal directorystorge.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. David Serarols

    David Serarols New Member

    Joined:
    Feb 15, 2018
    Messages:
    5
    Likes Received:
    1
    Hi Fireon,

    Thank you very much!

    So if I have correctly understood your instructions, after peform these commands I'll have an only storage type local (ZFS)?

    I attach what I have now. I would like to have just a storage with all my space (8 TB) type local (ZFS).

    Again...thank you!
     

    Attached Files:

  4. fireon

    fireon Well-Known Member
    Proxmox Subscriber

    Joined:
    Oct 25, 2010
    Messages:
    2,976
    Likes Received:
    181
    No ZFS. You have an normal EXT4 local Storage. You would like ZFS instead?

    What now? ZFS or local storage with ext4.
    You an cluster so you must have the same storageformat here. Otherwise you are not able to migrate VMs.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. David Serarols

    David Serarols New Member

    Joined:
    Feb 15, 2018
    Messages:
    5
    Likes Received:
    1
    Sorry, I am a really newbie at Proxmox. Indeed I didn't provide valid information.

    I'll try to explain again:

    We had a Proxmox cluster with three nodes, all running 4.4-18/ef2610e8 version. Nodes one, two and three had a storage type local (I am not sure if this is a specific filesystem); please note that their storage is not local-lvm. Pic attached.

    I recently added a new node (Lizard05) but I realised that its storege was local and local-lvm. The problem is that all my space (around 8 TB) is on local-lvm and this is not working for me because I can not migrate VM from other nodes.

    So, I would like to know a procedure to remove lizard05 local-lvm and use this free space in lizard05 local. There is any VM machine in this node, I think I can do that without installing again Proxmon on my host machine.

    I hope this explanation is better than the first one :)

    Regards!
    David
     

    Attached Files:

  6. fireon

    fireon Well-Known Member
    Proxmox Subscriber

    Joined:
    Oct 25, 2010
    Messages:
    2,976
    Likes Received:
    181
    Look at my first post, that is your answer. Delete LVM-Thin and make it is normal LVM with ext4.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. fireon

    fireon Well-Known Member
    Proxmox Subscriber

    Joined:
    Oct 25, 2010
    Messages:
    2,976
    Likes Received:
    181
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. David Serarols

    David Serarols New Member

    Joined:
    Feb 15, 2018
    Messages:
    5
    Likes Received:
    1
    Thank you very much for your comments, fireon. I am going to try this procedure.

    One more question: is there any risk at performig this for the rest of nodes of the cluster? Do you recommend me I remove the node from the cluster before I change the storage?

    Regards!
    David
     
  9. fireon

    fireon Well-Known Member
    Proxmox Subscriber

    Joined:
    Oct 25, 2010
    Messages:
    2,976
    Likes Received:
    181
    No risk.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. David Serarols

    David Serarols New Member

    Joined:
    Feb 15, 2018
    Messages:
    5
    Likes Received:
    1
    It seems it worked! Thank you very much :)
     
    fireon likes this.
  11. fireon

    fireon Well-Known Member
    Proxmox Subscriber

    Joined:
    Oct 25, 2010
    Messages:
    2,976
    Likes Received:
    181
    Perfect :) Please set your thread to solved by edit the title. Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice