Greetings!

     Back on November 21, I had asked a question (on the Bacula-users)
disk, and Josh Fisher was nice enough to provide an answer.  The question
was can I have USB external hard drives mounted to a specific mount point?
He suggested something I had also thought I would prefer to do at that
time, and that was have only one of the (two) USB disks I have turned on,
for the backup that day, and have the bacula daemon write to the same
pathlist.

     In doing this, however, there is another thing I don't like.
Specifically, the first Saturday of the month (Dec 3), it did a full
backup to the SimpleTech USB drive.  The first Tuesday of the month (Dec
6), it did a full backup to the Western Digital drive.  Then, the second
and subsequent Saturdays (for the SimpleTech drive) and Tuesdays (for the
Western Digital drive), it did "Differential, since=2005-12-06 01:05:03".
So, if I happened to need to do a full restore from the Western Digital
drive, I was okay.  But, if I needed to do a full restore from the
SimpleTech drive, whatever files may have been added/modified between Dec
3 and Dec 6 wasn't there.

     So, this led me back into thinking I wanted to have a specific
directory/mount point for both USB drives, and have the system automount
them to specific pathlists.  And, Josh Fisher had provided information
that it was fstab-sync, and some helpful highlights, to get me started.

     And, that's what I've spent some time, today, trying to configure.

     I want the Western Digital drive to be automounted to /media/wd, and
the SimpleTech drive to /media/simpletech.  And, I've created these
directory in /media, so they exist all the time, whether something is
currently mounted to them or not:

[EMAIL PROTECTED] ~]$ dir /media/
cdrecorder/  cdrom/  floppy/  floppy1/  simpletech/  usbdisk/  wd/

     Now!  To my questions!  :-)

     I haven't been able to find exactly what to specify, in the XML file,
which I am placing in /etc/hal/fdi/policy, to have the system identify the
drive, when I turn one or the other USB drive on.  It will place the
drive on /media/usbdisk.

     I have been trying a large number of possibilities for the file,
which I'm calling storage-policy-usb-disks.fdi.  The *current* contents
are:

<<>>
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- --> 

<deviceinfo version="0.2">

  <device>
    <match key="block.is_volume" bool="true">
      <match key="volume.fsusage" string="filesystem">
        <match key="volume.uuid" string="1058:0400">
            <merge key="volume.policy.desired_mount_point" 
type="string">/media/wd</merge>
        </match>
      </match>
    </match>
  </device>

</deviceinfo>
<<>>

     (I said current, because I have tried a variety of different things,
the vendor and product, through what I tried above.)

     I'll mention some lines that I consider important, when I "lsusb -v",
when the drives are turned on.

     Here are some lines I consider important for when the Western Digital
drive is on:

<<>>
Bus 001 Device 017: ID 1058:0400 Western Digital Technologies, Inc. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x1058 Western Digital Technologies, Inc.
  idProduct          0x0400 
  bcdDevice            1.12
  iManufacturer         138 Western Digital
  iProduct              154 External HDD
  .
  .
  .
<<>>

     ...and here are the equivalent lines for the SimpleTech drive:

<<>>
Bus 001 Device 016: ID 4971:a002  
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x4971 
  idProduct          0xa002 
  bcdDevice            0.01
  iManufacturer           1 Prolific Technology Inc.
  iProduct                2 ATAPI-6 Bridge Controller
  .
  .
  .
<<>>

     The last thing I've been trying to identify is by the ID number (on
the Bus line, for both.  This is 1058:0400 for the Western Digital, and
4971:a002 for the SimpleTech.

     I've been unsuccessful.  And, so, since I've never done this before,
I'm coming to people who know more about it, and asking for your
assistance.  I am open to whatever suggestions you may have, to have this
work.

     I will be *glad* to provide any information I've not provided in this
message.  (I wanted to keep it as short as possible, yet provide enough
information to allow you to know what I'm working with, and that I have
been trying to do it, by myself!)  :-)

     If anyone has any tips on what I'm missing, I'd appreciate hearing
it.  Thank you!

     Barry


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to