You need a filesystem to store backup files.
Thanks for your answer. That was what I was thinking...
I've tried following method for a
work around to use iscsi for destination of vzdump backups, and it works on a test machine.
It basically uses an iSCSI Target and mounts it as a local directory:
This is the procedure I used:
=============================================================
We create a new iSCSI target
Checking "Use LUNs directly"
After Save we can see on var/log/messages:
Mar 3 18:27:10 proxmox kernel: scsi3 : iSCSI Initiator over TCP/IP
Mar 3 18:27:10 proxmox kernel: scsi 3:0:0:0: Direct-Access OPNFILER VIRTUAL-DISK 0 PQ: 0 ANSI: 4
Mar 3 18:27:10 proxmox kernel: sd 3:0:0:0: Attached scsi generic sg2 type 0
Mar 3 18:27:10 proxmox kernel: sd 3:0:0:0: [sdb] 63438848 512-byte logical blocks: (32.4 GB/30.2 GiB)
Mar 3 18:27:10 proxmox kernel: sd 3:0:0:0: [sdb] Write Protect is off
Mar 3 18:27:10 proxmox kernel: sd 3:0:0:0: [sdb] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
Mar 3 18:27:10 proxmox kernel: sdb: unknown partition table
Mar 3 18:27:10 proxmox kernel: sd 3:0:0:0: [sdb] Attached SCSI disk
Mar 3 18:27:10 proxmox kernel: sdb: detected capacity change from 0 to 32480690176
i.e. It has detected a new device and named it sdb
==============================================================
On a ssh terminal sesion :
proxmox:~#
fdisk -l
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 * 1 66 524288 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 66 30401 243671712 8e Linux LVM
Disk /dev/dm-0: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
... ... ... .. . Part Removed .........
Disk /dev/sdb: 32.4 GB, 32480690176 bytes
64 heads, 32 sectors/track, 30976 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk identifier: 0x00000000
Disk /dev/sdb doesn't contain a valid partition table
proxmox:~#
i.e /dev/sdb is present with no valid partition
==========================================================
So we create it
proxmox:~#
fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x2aae58ae.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
The number of cylinders for this disk is set to 30976.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help):
w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
proxmox:~#
=========================================
Format partition using ext4
proxmox:~#
mkfs.ext4 /dev/sdb
mke2fs 1.41.3 (12-Oct-2008)
/dev/sdb is entire device, not just one partition!
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1982464 inodes, 7929856 blocks
396492 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
242 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
proxmox:~#
====================================
Mount file system:
#
mkdir /mnt/iscsi1
#
mount /dev/sdb /mnt/iscsi1
====================================
Now on proxmox we can add a new Directory on Storage page
Name: Directorio-Backups
Directorio:
/mnt/iscsi1
Shared: YES
Type: Vzdump Backups
=====================================
And it works as a destination for vzdumps
Please revise it, and correct any mistake, or improvement you can find/suggest, before I install it on a production machine.
Thanks in advance:
Vicente