SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Media Assignment (different Drives)
Author Message
Post Media Assignment (different Drives) 
Setup:

I have 2 DLT drives (a and b) set up to accept jobs dedicated to each drive. Certain types of jobs go to a and certain types go to b and this seems to work fine. The problem I'm running into is having a drive request media in another drive. Both are valid for writing and are in the same pool but for some reason I'll get media mount requests on drive a for the media in drive b and vic/versa. Anyone have any ideas why this might be? The two media ID's aren't full and the upcoming jobs still show that a backup destined for drive b is going to request the media already mounted in a.

Suggestions greatly appreciated,
Thanks!
Lonny

Post Media Assignment (different Drives) 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you don't want them getting crossed, you need to set two different
media types for the two drives. Media type is an arbitrary name and is
only used for selection purposes -- it does not have to be an actual
media type (DDS4, etc.)

=R

Lonny Selinger wrote:
Setup:

I have 2 DLT drives (a and b) set up to accept jobs dedicated to each drive. Certain types of jobs go to a and certain types go to b and this seems to work fine. The problem I'm running into is having a drive request media in another drive. Both are valid for writing and are in the same pool but for some reason I'll get media mount requests on drive a for the media in drive b and vic/versa. Anyone have any ideas why this might be? The two media ID's aren't full and the upcoming jobs still show that a backup destined for drive b is going to request the media already mounted in a.

Suggestions greatly appreciated,
Thanks!
Lonny

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users

- --
---- _ _ _ _ ___ _ _ _
|Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer III
|$&| |__| | | |__/ | \| _| |novosirj < at > um... - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGZB26mb+gadEcsb4RAj2AAKCVX867MEppnejQMtt++ZvRI8QhPQCgre5e
T7ZS0nDP7CVmHZXTX+GMNCs=
=lVMc
-----END PGP SIGNATURE-----

Post Media Assignment (different Drives) 
----- "Ryan Novosielski" <novosirj < at > um...> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you don't want them getting crossed, you need to set two different
media types for the two drives. Media type is an arbitrary name and
is
only used for selection purposes -- it does not have to be an actual
media type (DDS4, etc.)

Ok next question, I'm assuming there's no clean way to reassign the media type to existing volumes? I've just appended a corresponding a or b for Media Type associated with drive a and b but in the database I'll still have the existing media assigned to the original media type. Is it possible (even manually) to change that in the DB and have it not mess up my existing catalog etc?

Thanks again Ryan,

Lonny

Post Media Assignment (different Drives) 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lonny Selinger wrote:
----- "Ryan Novosielski" <novosirj < at > um...> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you don't want them getting crossed, you need to set two different
media types for the two drives. Media type is an arbitrary name and
is
only used for selection purposes -- it does not have to be an actual
media type (DDS4, etc.)

Ok next question, I'm assuming there's no clean way to reassign the media type to existing volumes? I've just appended a corresponding a or b for Media Type associated with drive a and b but in the database I'll still have the existing media assigned to the original media type. Is it possible (even manually) to change that in the DB and have it not mess up my existing catalog etc?

I'm not sure, actually. Certainly it is possible by SQL, but there may
also be some other way with btape or similar commands. Changing that
stuff carefully with SQL commands shouldn't cause any trouble though as
far as I know. Search the list archives, perhaps -- this one has been
asked before.

Safest bet is just to take a DB backup and give it a shot -- if it
messes anything up, you can always restore the DB pretty quickly.

- --
---- _ _ _ _ ___ _ _ _
|Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer III
|$&| |__| | | |__/ | \| _| |novosirj < at > um... - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGZDuQmb+gadEcsb4RApLMAJ9fhA2OvgyUS3/7hmIaMQalNA39vQCgwwJC
ylaZg/MUTWFLPE66PXW5t/o=
=gdjP
-----END PGP SIGNATURE-----

Post Media Assignment (different Drives) 
Hi,

On 6/4/2007 3:54 PM, Lonny Selinger wrote:
Setup:

I have 2 DLT drives (a and b) set up to accept jobs dedicated to each
drive. Certain types of jobs go to a and certain types go to b and
this seems to work fine. The problem I'm running into is having a
drive request media in another drive. Both are valid for writing and
are in the same pool but for some reason I'll get media mount
requests on drive a for the media in drive b and vic/versa. Anyone
have any ideas why this might be? The two media ID's aren't full and
the upcoming jobs still show that a backup destined for drive b is
going to request the media already mounted in a.

Which version of Bacula? This should happen rarely since 1.38, I
believe, since in that version the catalog notices which device used a
volume last.

Suggestions greatly appreciated, Thanks! Lonny

Different media types, but that has been suggested... the catalog update
fpr the existing volumes is rather simple: In SQL, something like
'UPDATE Media SET MediaType="a" WHERE <however you can most easily
select the volumes>;' is all you need.

You could select by Volume name, with wildcards, or using a list of
volume IDs, for example.

Arno

--
IT-Service Lehmann al < at > it...
Arno Lehmann http://www.its-lehmann.de

Post Media Assignment (different Drives) 
----- "Arno Lehmann" <al < at > it...> wrote:
Hi,

On 6/4/2007 3:54 PM, Lonny Selinger wrote:
Setup:

I have 2 DLT drives (a and b) set up to accept jobs dedicated to
each
drive. Certain types of jobs go to a and certain types go to b and
this seems to work fine. The problem I'm running into is having a
drive request media in another drive. Both are valid for writing
and
are in the same pool but for some reason I'll get media mount
requests on drive a for the media in drive b and vic/versa. Anyone
have any ideas why this might be? The two media ID's aren't full
and
the upcoming jobs still show that a backup destined for drive b is
going to request the media already mounted in a.

Which version of Bacula? This should happen rarely since 1.38, I
believe, since in that version the catalog notices which device used a

volume last.

I'm using a binary version for CentOS-5: 2.0.3-1

Suggestions greatly appreciated, Thanks! Lonny

Different media types, but that has been suggested... the catalog
update
fpr the existing volumes is rather simple: In SQL, something like
'UPDATE Media SET MediaType="a" WHERE <however you can most easily
select the volumes>;' is all you need.

You could select by Volume name, with wildcards, or using a list of
volume IDs, for example.

Luckily I only have a few assigned ID's right now so it wasn't a huge deal changing them by name:

Before:
mysql> select MediaID,MediaType from Media;
+---------+-----------+
| MediaID | MediaType |
+---------+-----------+
| 1 | DLT-IV |
| 2 | DLT-IV |
| 3 | DLT-IV |
| 4 | DLT-IVa |
| 5 | DLT-IVb |
+---------+-----------+

mysql> UPDATE Media SET MediaType="DLT-IVa" WHERE MediaID=1;
mysql> UPDATE Media SET MediaType="DLT-IVb" WHERE MediaID=2 OR MediaID=3;

After:
mysql> select MediaID,MediaType from Media;
+---------+-----------+
| MediaID | MediaType |
+---------+-----------+
| 1 | DLT-IVa |
| 2 | DLT-IVb |
| 3 | DLT-IVb |
| 4 | DLT-IVa |
| 5 | DLT-IVb |
+---------+-----------+

Thanks for all the help guys. Hopefully this should be happy tonight :)

Arno

--
IT-Service Lehmann al < at > it...
Arno Lehmann http://www.its-lehmann.de

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB