Re: [Bacula-users] Moving volumes from one SD to another

2016-12-09 Thread Kern Sibbald
On 12/09/2016 09:01 PM, Josip Deanovic wrote: > On Friday 2016-12-09 07:50:33 Kern Sibbald wrote: > [...] >> The storageid helps Bacula find the right storage device when it is not >> specified, but it *should* not be required. > This is valuable piece of information. > > Next year (probably in nex

Re: [Bacula-users] Moving volumes from one SD to another

2016-12-09 Thread Josip Deanovic
On Friday 2016-12-09 07:50:33 Kern Sibbald wrote: [...] > The storageid helps Bacula find the right storage device when it is not > specified, but it *should* not be required. This is valuable piece of information. Next year (probably in next few months) I will setup a lab which will help me to t

Re: [Bacula-users] Moving volumes from one SD to another

2016-12-09 Thread Kern Sibbald
On 12/09/2016 03:51 PM, Josh Fisher wrote: > > On 12/9/2016 7:49 AM, Kern Sibbald wrote: >> Sorry Josh, but Bacula never queries for available volumes (with the >> exception of removable File media). The information in the Media record >> is used to know which device should be used in many cases.

Re: [Bacula-users] Moving volumes from one SD to another

2016-12-09 Thread Josh Fisher
On 12/9/2016 7:49 AM, Kern Sibbald wrote: > Sorry Josh, but Bacula never queries for available volumes (with the > exception of removable File media). The information in the Media record > is used to know which device should be used in many cases. OK. What about tapes in autoloaders? I know it i

Re: [Bacula-users] Moving volumes from one SD to another

2016-12-09 Thread Kern Sibbald
Sorry Josh, but Bacula never queries for available volumes (with the exception of removable File media). The information in the Media record is used to know which device should be used in many cases. On 12/09/2016 01:22 PM, Josh Fisher wrote: > On 12/9/2016 6:32 AM, Martin Simmons wrote: >> If

Re: [Bacula-users] Moving volumes from one SD to another

2016-12-09 Thread Kern Sibbald
On 12/09/2016 12:32 PM, Martin Simmons wrote: > If a volume moves to a different location then it seems to me that changing > the StorageId is the logical thing to do. > > IMHO, changing the Media Type of an existing volume is a timebomb waiting to > explode if you need to use bscan (because the ex

Re: [Bacula-users] Moving volumes from one SD to another

2016-12-09 Thread Josh Fisher
On 12/9/2016 6:32 AM, Martin Simmons wrote: > If a volume moves to a different location then it seems to me that changing > the StorageId is the logical thing to do. Has anyone tried simply moving them without changing the StorageId or anything else? Devices are directly queried for their availa

Re: [Bacula-users] Moving volumes from one SD to another

2016-12-09 Thread Martin Simmons
If a volume moves to a different location then it seems to me that changing the StorageId is the logical thing to do. IMHO, changing the Media Type of an existing volume is a timebomb waiting to explode if you need to use bscan (because the existing label contains the old media type). __Martin

Re: [Bacula-users] Moving volumes from one SD to another

2016-12-09 Thread Martin Simmons
Yes, that's what I did and it was very easy. Both storages have the same Media Type. __Martin > On Thu, 8 Dec 2016 09:47:00 -0500, Dan Langille said: > > I added another bacula-sd to my configuration. It has more storage than the > existing SD. Both SD use file-based storage. > > All n

[Bacula-users] Moving volumes from one SD to another

2016-12-08 Thread Kern Sibbald
OK, I understand all those points, and I can say that Bacula will not notice by itself that Volumes have moved, so you will need to help it by using Pools or Media Types, but it should not require digging into StorageIds, which I don't think is even in the main ma

Re: [Bacula-users] Moving volumes from one SD to another

2016-12-08 Thread Kern Sibbald
The best way to tell it is to move them to a Pool that only the new SD can read, or to change the Media Type of the Volumes.  The storageid helps Bacula find the right storage device when it is not specified, but it *should* not be required.  I have never personal

Re: [Bacula-users] Moving volumes from one SD to another

2016-12-08 Thread Wanderlei Huttel
In this case, the only way is update Media record in Catalog using SQL. Dan I read in your blog about bacula command "setip". Do you have some example how to use this feature? More detailed? Or some tips? Best Regards *Wanderlei Hüttel* http://www.huttel.com.br 2016-12-08 19:10 GMT-02:00 Dan La

Re: [Bacula-users] Moving volumes from one SD to another

2016-12-08 Thread Dan Langille
CMR, Yes, we could do a copy job, but that would take much longer than other methods. In my case, the Volumes were moved via cp, but others could involve scp or, better still, zfs send | zfs recv. -- Dan Langille - BSDCan / PGCon d...@langille.org > On Dec 8, 2016, at 3:29 PM, C M Reinehr w

Re: [Bacula-users] Moving volumes from one SD to another

2016-12-08 Thread Dan Langille
Agreed. It will know. But logically, you have not *moved* the Volumes from one SD to another. They are the same SD, according to Bacula. In my case, the Volumes are indeed on a new SD, both logically and physically. -- Dan Langille - BSDCan / PGCon d...@langille.org > On Dec 8, 2016, at 4:

Re: [Bacula-users] Moving volumes from one SD to another

2016-12-08 Thread Wanderlei Huttel
But if you will disable the old Storage, you can just edit the IP address and passwords of this old Storage and change to the information of new storage, in this case "IP address and password", of course you had to move manually the volumes to the new storage. Bacula create new Storages by name. I

Re: [Bacula-users] Moving volumes from one SD to another

2016-12-08 Thread C M Reinehr
Dan, Wouldn't this be a Copy Job? CMR On 12/08/2016 02:21 PM, Dan Langille wrote: > It is a completely new SD. There is no IP address to change because > it's a new IP address. > -- > Dan Langille - BSDCan / PGCon > d...@langille.org > > > > >> On Dec 8, 2016, at 3:19

Re: [Bacula-users] Moving volumes from one SD to another

2016-12-08 Thread Dan Langille
To be clear, we are not solving an existing problem. My backups and restores are working. We are discussing whether or not Bacula should know/notice that Volumes are now on another SD. -- Dan Langille - BSDCan / PGCon d...@langille.org > On Dec 8, 2016, at 3:21 PM, Dan Langille wrote: >

Re: [Bacula-users] Moving volumes from one SD to another

2016-12-08 Thread Dan Langille
It is a completely new SD. There is no IP address to change because it's a new IP address. -- Dan Langille - BSDCan / PGCon d...@langille.org > On Dec 8, 2016, at 3:19 PM, Wanderlei Huttel > wrote: > > Hello Dan > > Probably because if you add a new Storage, you will need to changer the

Re: [Bacula-users] Moving volumes from one SD to another

2016-12-08 Thread Dan Langille
OK, but how will Bacula know that the files/Volumes are now on a new SD? The db is still pointing to the old SD. -- Dan Langille - BSDCan / PGCon d...@langille.org > On Dec 8, 2016, at 10:50 AM, Kern Sibbald wrote: > > Hello Dan, > > From what users have reported, one must update the stora

Re: [Bacula-users] Moving volumes from one SD to another

2016-12-08 Thread Kern Sibbald
Hello Dan, From what users have reported, one must update the storageid, and it is clear to me that if you use the same name for the Storage in the Director's resource but it points to a different machine, you must update the storageid.  However, if you use

[Bacula-users] Moving volumes from one SD to another

2016-12-08 Thread Dan Langille
I added another bacula-sd to my configuration. It has more storage than the existing SD. Both SD use file-based storage. All new backups are going to the new SD. I want to copy all the old Volumes to the new SD and have them available there. I suspect all I need to do is copy the Volumes ove