Veritas-bu

[Veritas-bu] Migrating master from Windows to Solaris

2003-10-15 14:18:16
Subject: [Veritas-bu] Migrating master from Windows to Solaris
From: scott.kendall AT abbott DOT com (scott.kendall AT abbott DOT com)
Date: Wed, 15 Oct 2003 13:18:16 -0500
This is a multipart message in MIME format.
--=_alternative 006496CF86256DC0_=
Content-Type: text/plain; charset="us-ascii"

I would take the MediaDB on the master out of the picture before starting 
the process again by moving the volumes in it to another media server's 
MediaDB using 
bpmedialist -mlist -h <master>

to get a list of all of the media assigned and in use by the master (for 
bpmedialist, not -M for everything on master... a.k.a. all media servers 
with configured STUs, but -h to show only those on master server) and then 
use

bpmedia -movedb -m <media> -newserver <existing media server> -oldserver 
<master>

to move the media off of the master.  then you can repopulate the MediaDB 
on the master by moving them back after the migration or just leave them 
on the new media server.


- Scott





Larry Fahnoe <fahnoe AT fahnoetech DOT com>
Sent by: veritas-bu-admin AT mailman.eng.auburn DOT edu
10/07/2003 02:01 PM

 
        To:     David Chapa <david.chapa AT adic DOT com>
        cc:     veritas-bu AT mailman.eng.auburn DOT edu
        Subject:        Re: [Veritas-bu] Migrating master from Windows to 
Solaris


I added media id 888001 this morning.

bash-2.05# vmquery -m 888001
=============================================================================
media ID:              888001
media type:            DLT cartridge tape (11)
barcode:               888001
description:           test insert 1
volume pool:           Bad (6)
robot type:            TLD - Tape Library DLT (8)
robot number:          0
robot slot:            300
robot host:            osiris.stp.mrll.com
volume group:          00_000_TLD
created:               Tue Oct 07 07:53:48 2003
assigned:              ---
last mounted:          ---
first mount:           ---
expiration date:       ---
number of mounts:      0
max mounts allowed:    ---
=============================================================================
bash-2.05# bpexpdate -ev 888001 -d 0
Are you SURE you want to delete 888001 y/n (n)? y
fatal NB media database error
bash-2.05# bperror -U -hoursago 1 -server osiris.stp.mrll.com
    TIME            SERVER/CLIENT                      TEXT
10/07/2003 13:10:15 osiris.stp.mrll.com -  changing 888001 (host: -any-) 
                    to expiration date Wed Dec 31 18:00:00 1969 (0)
10/07/2003 13:10:51 osiris.stp.mrll.com -  altered 0 image records and
                    media with mediaid 888001
10/07/2003 13:10:51 osiris.stp.mrll.com -  short read occurred reading
                    media database, bytes = 93

>From bptm log:

13:10:51 [18388] <2> bptm: INITIATING: -change_exp_date -ev 888001
         -date 0
13:10:51 [18388] <2> db_byid: search for media id 888001
13:10:51 [18388] <2> getsockconnected: host=osiris.stp.mrll.com
         service=bpdbm address=150.228.21.135 protocol=tcp
         non-reserved port=13721
13:10:51 [18388] <32> db_get: short read occurred reading media
         database, bytes = 93
13:10:51 [18388] <2> bptm: EXITING with status 91 <----------

After talking with Veritas support this morning (& hearing the
official stance on how unsupported this process is), I did gather some
helpful information on what components I should have migrated and
which should not have been.  My sense now is that the volDB is okay,
and that the mediaDB is what has been broken.  I ran dos2unix on the
whole netbackup/db tree, and I suspect I broke mediaDB in the
process.  I think I'll scrap the data I currently have on the Solaris
server and try the restore steps again, but this time be more
selective in what "text" files I convert.

Opinions?

--Larry

On Tue, Oct 07, 2003 at 10:52:40AM -0600, David Chapa commenced mumbling:
> Larry:
> 
> What's the error when you try to expire media?

-- 
Larry Fahnoe, Fahnoe Technology Consulting, fahnoe AT FahnoeTech DOT com
952/925-0744      Minneapolis, Minnesota       www.FahnoeTech.com 
_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu



--=_alternative 006496CF86256DC0_=
Content-Type: text/html; charset="us-ascii"


<br><font size=2 face="Arial">I would take the MediaDB on the master out of the 
picture before starting the process again by moving the volumes in it to 
another media server's MediaDB using </font>
<br><font size=2 face="Arial">bpmedialist -mlist -h &lt;master&gt;</font>
<br>
<br><font size=2 face="Arial">to get a list of all of the media assigned and in 
use by the master (for bpmedialist, not -M for everything on master... a.k.a. 
all media servers with configured STUs, but -h to show only those on master 
server) and then use</font>
<br>
<br><font size=2 face="Arial">bpmedia -movedb -m &lt;media&gt; -newserver 
&lt;existing media server&gt; -oldserver &lt;master&gt;</font>
<br>
<br><font size=2 face="Arial">to move the media off of the master. &nbsp;then 
you can repopulate the MediaDB on the master by moving them back after the 
migration or just leave them on the new media server.</font>
<br>
<br>
<br><font size=2 face="Arial">- Scott</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>Larry Fahnoe &lt;fahnoe AT fahnoetech DOT 
com&gt;</b></font>
<br><font size=1 face="sans-serif">Sent by: veritas-bu-admin AT 
mailman.eng.auburn DOT edu</font>
<p><font size=1 face="sans-serif">10/07/2003 02:01 PM</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; 
&nbsp; &nbsp; &nbsp;David Chapa &lt;david.chapa AT adic DOT com&gt;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; 
&nbsp; &nbsp; &nbsp;veritas-bu AT mailman.eng.auburn DOT edu</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; 
&nbsp; &nbsp; &nbsp;Re: [Veritas-bu] Migrating master from Windows to 
Solaris</font></table>
<br>
<br>
<br><font size=2 face="Courier New">I added media id 888001 this morning.<br>
<br>
bash-2.05# vmquery -m 888001<br>
=============================================================================<br>
media ID: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;888001<br>
media type: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DLT cartridge tape (11)<br>
barcode: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 888001<br>
description: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; test insert 1<br>
volume pool: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Bad (6)<br>
robot type: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TLD - Tape Library DLT 
(8)<br>
robot number: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0<br>
robot slot: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;300<br>
robot host: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;osiris.stp.mrll.com<br>
volume group: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;00_000_TLD<br>
created: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tue Oct 07 07:53:48 
2003<br>
assigned: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;---<br>
last mounted: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;---<br>
first mount: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ---<br>
expiration date: &nbsp; &nbsp; &nbsp; ---<br>
number of mounts: &nbsp; &nbsp; &nbsp;0<br>
max mounts allowed: &nbsp; &nbsp;---<br>
=============================================================================<br>
bash-2.05# bpexpdate -ev 888001 -d 0<br>
Are you SURE you want to delete 888001 y/n (n)? y<br>
fatal NB media database error<br>
bash-2.05# bperror -U -hoursago 1 -server osiris.stp.mrll.com<br>
 &nbsp; &nbsp;TIME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SERVER/CLIENT 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;TEXT<br>
10/07/2003 13:10:15 osiris.stp.mrll.com - &nbsp;changing 888001 (host: -any-) 
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;to 
expiration date Wed Dec 31 18:00:00 1969 (0)<br>
10/07/2003 13:10:51 osiris.stp.mrll.com - &nbsp;altered 0 image records and<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;media 
with mediaid 888001<br>
10/07/2003 13:10:51 osiris.stp.mrll.com - &nbsp;short read occurred reading<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;media 
database, bytes = 93<br>
<br>
>From bptm log:<br>
<br>
13:10:51 [18388] &lt;2&gt; bptm: INITIATING: -change_exp_date -ev 888001<br>
 &nbsp; &nbsp; &nbsp; &nbsp; -date 0<br>
13:10:51 [18388] &lt;2&gt; db_byid: search for media id 888001<br>
13:10:51 [18388] &lt;2&gt; getsockconnected: host=osiris.stp.mrll.com<br>
 &nbsp; &nbsp; &nbsp; &nbsp; service=bpdbm address=150.228.21.135 
protocol=tcp<br>
 &nbsp; &nbsp; &nbsp; &nbsp; non-reserved port=13721<br>
13:10:51 [18388] &lt;32&gt; db_get: short read occurred reading media<br>
 &nbsp; &nbsp; &nbsp; &nbsp; database, bytes = 93<br>
13:10:51 [18388] &lt;2&gt; bptm: EXITING with status 91 &lt;----------<br>
<br>
After talking with Veritas support this morning (&amp; hearing the<br>
official stance on how unsupported this process is), I did gather some<br>
helpful information on what components I should have migrated and<br>
which should not have been. &nbsp;My sense now is that the volDB is okay,<br>
and that the mediaDB is what has been broken. &nbsp;I ran dos2unix on the<br>
whole netbackup/db tree, and I suspect I broke mediaDB in the<br>
process. &nbsp;I think I'll scrap the data I currently have on the Solaris<br>
server and try the restore steps again, but this time be more<br>
selective in what &quot;text&quot; files I convert.<br>
<br>
Opinions?<br>
<br>
--Larry<br>
<br>
On Tue, Oct 07, 2003 at 10:52:40AM -0600, David Chapa commenced mumbling:<br>
&gt; Larry:<br>
&gt; <br>
&gt; What's the error when you try to expire media?<br>
<br>
-- <br>
Larry Fahnoe, Fahnoe Technology Consulting, fahnoe AT FahnoeTech DOT com<br>
952/925-0744 &nbsp; &nbsp; &nbsp;Minneapolis, Minnesota &nbsp; &nbsp; &nbsp; 
www.FahnoeTech.com <br>
_______________________________________________<br>
Veritas-bu maillist &nbsp;- &nbsp;Veritas-bu AT mailman.eng.auburn DOT edu<br>
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu<br>
</font>
<br>
<br>
--=_alternative 006496CF86256DC0_=--

<Prev in Thread] Current Thread [Next in Thread>