Использование DVD в качестве носителя

59 views
Skip to first unread message

Сергей

unread,
Sep 15, 2010, 8:06:25 AM9/15/10
to ru-bacula
Доброго времени суток.

Подскажите, у кого-нибудь получалось использовать DVD - диски в
качестве хранилища?
У меня все попытки окнчиваются вот этим:
Please mount Volume "dvd.6m.0303" or label a new one for:
Job: Orca.2010-09-15_15.25.53_53
Storage: "dev.DVD" (/dev/sr0)
Pool: pool.DVD.6m
Media type: DVD
Connecting to Storage daemon DVD.orca at orca.pomorsu.local:9103 ...
Sending label command for Volume "dvd.6m.0303" Slot 0 ...
End of Volume "dvd.6m.0303" at 0:0 on device "dev.DVD" (/dev/sr0)
(part_size=0, free_space=0, free_space_errno=0).
3912 Failed to label Volume: ERR=block.c:1029 Read zero bytes at 0:0
on device "dev.DVD" (/dev/sr0).

Label command failed for Volume dvd.6m.0303.
Do not forget to mount the drive!!!
Do not forget to mount the drive!!!

mount storage=DVD.orca
3001 OK mount requested. Device="dev.DVD" (/dev/sr0)
DDS-4.orca JobId 2625: End of Volume "dvd.6m.0303" at 0:0 on device
"dev.DVD" (/dev/sr0) (part_size=0, free_space=0, free_space_errno=0).
DDS-4.orca JobId 2625: Marking Volume "dvd.6m.0303" in Error in
Catalog.
sargass-dir JobId 2625: Created new Volume "dvd.6m.0304" in catalog.
DDS-4.orca JobId 2625: Please mount Volume "dvd.6m.0304" or label a
new one for:

ну и так далее.

bacula-sd:
Device {
Name = dev.DVD
Device Type = DVD
Media Type = DVD
Archive Device = /dev/sr0
LabelMedia = yes;
Random Access = yes;
AutomaticMount = yes;
RemovableMedia = yes;
AlwaysOpen = no;
MaximumPartSize = 1000M;
RequiresMount = yes;
MountPoint = /mnt/bacula-dvd;
MountCommand = "/bin/mount -t iso9660 -o ro %a %m"
UnmountCommand = "/bin/umount %m";
SpoolDirectory = /storage/bacula/spool;
WritePartCommand = "/etc/bacula/scripts/dvd-handler %a write %e %v"
FreeSpaceCommand = "/etc/bacula/scripts/dvd-handler %a free"
}


bacula-dir:

Storage {
Name = DVD.orca
Address = orca.pomorsu.local
SDPort = 9103
Device = dev.DVD
Media Type = DVD
Maximum Concurrent Jobs = 3
AllowCompression = Yes
}

Pool {
Name = pool.DVD.6m
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 6 month
Label Format = "dvd.6m."
}

тот же клиент на диск бэкапится нормально совершенно

Andrey Rogozhnikov

unread,
Sep 15, 2010, 9:14:52 PM9/15/10
to ru-b...@googlegroups.com
Присоединяюсь к вопросу. Бэкапы на DVD перестали работать после обновления какой-то из редакций пятого центоса.

Сергей

unread,
Sep 16, 2010, 2:14:41 AM9/16/10
to ru-bacula
Андрей, не поделитесь работавшим конфигом?

On 16 сен, 05:14, Andrey Rogozhnikov <rogozhnikov.and...@gmail.com>
wrote:

Andrey Rogozhnikov

unread,
Sep 16, 2010, 3:14:42 AM9/16/10
to ru-b...@googlegroups.com
bacula-sd.conf:

Device {
        Name = DVDRW
        Media Type = DVD
        Archive Device = /dev/hda
        LabelMedia = yes; # lets Bacula label unlabeled media
        Random Access = Yes;
        AutomaticMount = yes; # when device opened, read it
        RemovableMedia = yes;
        AlwaysOpen = no;
        MaximumPartSize = 100M;
        RequiresMount = yes;
        MountPoint = /mnt/cdrom;
        MountCommand = "/bin/mount -t iso9660 -o ro %a %m"
        UnmountCommand = "/bin/umount %m";
        SpoolDirectory = /var/spool/bacula;
        WritePartCommand = "/etc/bacula/dvd-handler %a write %e %v";
        FreeSpaceCommand = "/etc/bacula/dvd-handler %a free";
}

bacula-dir.conf:

Storage {
        Name = DVDRW
        Address = ***.***.***.***
        SDPort = 9103
        Password = "********"
        Device  = DVDRW
        Media Type = DVD
}

Pool {
        Name = DVDPool
        Pool Type = Backup
        Recycle = No
        AutoPrune = Yes
        Volume Retention = 3 months
        Maximum Volume Jobs = 1
        Maximum Volume Bytes = 4500000000
        Label Format = DVD-
}

Andrey Rogozhnikov

unread,
Sep 18, 2010, 12:47:45 PM9/18/10
to ru-b...@googlegroups.com
Сергей, как результаты?

Сергей

unread,
Sep 20, 2010, 4:01:49 AM9/20/10
to ru-bacula
Пока нет времени на эксперименты, попробую-отпишусь

On 18 сен, 20:47, Andrey Rogozhnikov <rogozhnikov.and...@gmail.com>
wrote:
> Сергей, как результаты?

Reply all
Reply to author
Forward
0 new messages