Power Failer and VM qcow2 file gone

Discussion in 'Proxmox VE: Installation and configuration' started by parbat bhatiya, Mar 7, 2019.

  1. parbat bhatiya

    parbat bhatiya New Member

    Joined:
    Jun 19, 2018
    Messages:
    22
    Likes Received:
    0
    hello

    as i used directory base storage as proxmox default configuration

    i have problem when power failer then my widnows 2012 r2 qcow2 gone

    after main server hard rebooted and this vm when i am starting getting error

    vm doest not exist qcow2 file what to do ?

    i did try recovery all way like

    r-studio testdisk and other recovery i did try but no luck is there anyway to do recovery or help plz ?

    or how i can prevent for my feature like this issue with some advance configuration ? or help plz
     
  2. Chris

    Chris Proxmox Staff Member
    Staff Member

    Joined:
    Jan 2, 2019
    Messages:
    230
    Likes Received:
    23
    Hi,
    what exactly is the error when trying to start the VM? Is your disk corrupt? Is your qcow2 disk still visible in the output of `pvesm list <storage>`? Is it in the default image folder under /var/lib/vz/images/?
    To avoid data loss by power failure you have to perform regular backups onto a preferably remote host and test their consistency by attempted restore. Also a UPS can help to avoid power cuts and allow for a graceful shutdown.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. parbat bhatiya

    parbat bhatiya New Member

    Joined:
    Jun 19, 2018
    Messages:
    22
    Likes Received:
    0
    no any other way ? or alternate way like storage method ? change or something ?

    and here any way to recover ?

    and yes pvesm list local do not apear my 102 in /var/lib/images so is there way to recover this qcow2 file ?

    i did try studio but seen 4 kb file only so unable to recover :) in deleted i have seen
     
  4. Chris

    Chris Proxmox Staff Member
    Staff Member

    Joined:
    Jan 2, 2019
    Messages:
    230
    Likes Received:
    23
    So your qcow2 image is still there but not connected to the VM anymore? Is this correct? You can try to import the disk by running `qm importdisk <vmid> <source> <storage>` to reattach it to the VM.
    See `man qm` for more details.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Chris

    Chris Proxmox Staff Member
    Staff Member

    Joined:
    Jan 2, 2019
    Messages:
    230
    Likes Received:
    23
    Also have a look at `qemu-img check filename` if you want to check the consistency of your disk image.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. parbat bhatiya

    parbat bhatiya New Member

    Joined:
    Jun 19, 2018
    Messages:
    22
    Likes Received:
    0
    no i did not happen recover but restore from my old backup but now

    seems any way to make it safty to do not happen like this agai n ?

    because its crashed disk and gone did not happen success for recover becuase our hard drive is one file and there is binary kind of reocvery option seen so i think difficulty to restore it from recovery softwares i did managed from my old backup

    but proxmox have backup but if i want ot keep last 2 backup and remove old backup is it possible ? by weekly shedule ?
     
  7. parbat bhatiya

    parbat bhatiya New Member

    Joined:
    Jun 19, 2018
    Messages:
    22
    Likes Received:
    0
    why proxmox does not have inbuild disk checking features for make server healthy and happy :)

    really this is big mistake disk is very important as hart of our clients and mine and everybody so plz

    anyone can implement on this for next version ? because its huge drawback so if achive we can capture many cusotmers with our proxmox plus values and reputation also :)
     
  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