Results 1 to 8 of 8

Thread: snapshot backup not working

  1. #1
    Join Date
    Feb 2011
    Posts
    12

    Default snapshot backup not working

    I get this error when I try a snapshot backup:

    INFO: starting new backup job: vzdump 100 --remove 0 --mode snapshot --compress lzo --storage backup --node vmh
    INFO: Starting Backup of VM 100 (qemu)
    INFO: status = running
    INFO: mode failure - unable to dump into snapshot (use option --dumpdir)
    INFO: trying 'suspend' mode instead
    INFO: backup mode: suspend

    The backup is successful however when I do the following command via ssh:

    vzdump --dumpdir /mnt/backup --mode snapshot 100
    INFO: starting new backup job: vzdump 100 --dumpdir /mnt/backup --mode snapshot
    INFO: Starting Backup of VM 100 (qemu)
    INFO: status = running
    INFO: backup mode: snapshot
    INFO: ionice priority: 7
    INFO: Logical volume "vzsnap-vmh-0" created
    INFO: creating archive '/mnt/backup/vzdump-qemu-100-2012_05_07-09_50_20.tar'
    INFO: adding '/mnt/backup/vzdump-qemu-100-2012_05_07-09_50_20.tmp/qemu-server.conf' to archive ('qemu-server.conf')
    INFO: adding '/mnt/vzsnap0/images/100/vm-100-disk-1.raw' to archive ('vm-disk-virtio0.raw')

    Is there a config file somewhere to set the options correctly for the web gui?

    I am running proxmox 2.1 with my own RAID setup. I have kept the same lvm layout except that the volume group is named pve1 instead of pve.
    I used the following howto:http://www.howtoforge.com/proxmox-2-with-software-raid

  2. #2
    Join Date
    Aug 2006
    Posts
    9,556

    Default Re: snapshot backup not working

    post you /etc/pve/storage.cfg

    and also your lvm setup (lvdisplay, pvdisplay)
    Best regards,
    Tom

    Do you have already a Commercial Support Subscription? - If not, Buy now

  3. #3
    Join Date
    Jun 2010
    Posts
    27

    Default Re: snapshot backup not working

    I have the exact same question but with v 1.9 and I did not see anywhere, how I could subscribe to this thread so I'm adding my post ;-)

    more /etc/pve/storage.cfg dir: local
    path /var/lib/vz
    content images,iso,vztmpl,rootdir


    dir: Dump-containers
    path /var/lib/vz/dump
    shared
    content backup


    dir: les-iso
    path /var/lib/vz/iso
    shared
    content iso



    ==> lvdisplay


    --- Logical volume ---
    LV Name /dev/pve/swap
    VG Name pve
    LV UUID Nzog3K-L6yD-pntT-qAsB-j0YZ-yvQl-MTR5An
    LV Write Access read/write
    LV Status available
    # open 1
    LV Size 7.00 GB
    Current LE 1792
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 253:0

    --- Logical volume ---
    LV Name /dev/pve/root
    VG Name pve
    LV UUID VgtNJn-q6Kn-CZmq-EA1S-mOXF-wtiC-bXxw7G
    LV Write Access read/write
    LV Status available
    # open 1
    LV Size 20.00 GB
    Current LE 5120
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 253:1

    --- Logical volume ---
    LV Name /dev/pve/data
    VG Name pve
    LV UUID cMtZnm-jdtr-mfkT-L4fx-E6ZB-Oxhp-Ghh3WY
    LV Write Access read/write
    LV Status available
    # open 1
    LV Size 665.25 GB
    Current LE 170304
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 253:2




    ==> pvdisplay
    --- Physical volume ---
    PV Name /dev/sda2
    VG Name pve
    PV Size 696.24 GB / not usable 837.00 KB
    Allocatable yes
    PE Size (KByte) 4096
    Total PE 178238
    Free PE 1022
    Allocated PE 177216
    PV UUID my4adC-KkvT-ljtY-as0E-NvQ6-EhRm-dvGxYT

    thanks for any clue on this

  4. #4
    Join Date
    Feb 2011
    Posts
    12

    Default Re: snapshot backup not working

    Here is my setup:
    cat /etc/pve/storage.cfg
    dir: local
    path /var/lib/vz
    content images,iso,vztmpl,rootdir

    dir: backup
    path /var/lib/vz/backup
    content backup
    maxfiles 3
    lvdisplay
    --- Logical volume ---
    LV Path /dev/pve1/swap
    LV Name swap
    VG Name pve1
    LV UUID c99idI-dMDT-iYRA-CLJH-59GG-fooH-qbGqir
    LV Write Access read/write
    LV Creation host, time ,
    LV Status available
    # open 1
    LV Size 11.00 GiB
    Current LE 2816
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 253:1

    --- Logical volume ---
    LV Path /dev/pve1/root
    LV Name root
    VG Name pve1
    LV UUID UDqlVK-A3G6-fZ4k-BSQD-TiaU-Z7TW-y4vdK0
    LV Write Access read/write
    LV Creation host, time ,
    LV Status available
    # open 1
    LV Size 96.00 GiB
    Current LE 24576
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 253:0

    --- Logical volume ---
    LV Path /dev/pve1/data
    LV Name data
    VG Name pve1
    LV UUID daNwG2-WlTu-k0FC-cIie-CcGf-voj9-vWmuW1
    LV Write Access read/write
    LV Creation host, time ,
    LV Status available
    # open 1
    LV Size 354.27 GiB
    Current LE 90694
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 253:3
    pvdisplay
    --- Physical volume ---
    PV Name /dev/md1
    VG Name pve1
    PV Size 465.26 GiB / not usable 2.87 MiB
    Allocatable yes
    PE Size 4.00 MiB
    Total PE 119106
    Free PE 1020
    Allocated PE 118086
    PV UUID civUhd-GVaM-TKlo-Iutc-ITdH-AKRW-Rj2PrU

  5. #5
    Join Date
    Aug 2006
    Posts
    9,556

    Default Re: snapshot backup not working

    > dir: backup
    > path /var/lib/vz/backup

    you cannot use a backup target under /var/lib/vz, this would create an infinite loop for LVM snapshots. use a backup target outside /var/lib/vz.
    Best regards,
    Tom

    Do you have already a Commercial Support Subscription? - If not, Buy now

  6. #6
    Join Date
    Aug 2006
    Posts
    9,556

    Default Re: snapshot backup not working

    more /etc/pve/storage.cfg dir: local
    path /var/lib/vz
    content images,iso,vztmpl,rootdir


    dir: Dump-containers
    path /var/lib/vz/dump
    shared
    content backup
    you cannot mark local storage like /var/lib/vz/dump as "shared". its local storage and NOT shared so donīt mark it as shared.

    backup: if you want LVM snapshots, you need to define a backup target outside /var/lib/vz
    Best regards,
    Tom

    Do you have already a Commercial Support Subscription? - If not, Buy now

  7. #7
    Join Date
    Jun 2010
    Posts
    27

    Default Re: snapshot backup not working

    Thanks Tom.

    Have a good day,

    Guillaume

  8. #8
    Join Date
    Feb 2011
    Posts
    12

    Default Re: snapshot backup not working

    Thanks Tom It all works perfectly now.

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
  •