[prev in list] [next in list] [prev in thread] [next in thread] 

List:       aix-l
Subject:    Re: Fwd: Re: mksysb recovery problems MORE INFO
From:       Martin Trcka <trcka () GCSYSTEM ! CZ>
Date:       2004-07-22 13:48:52
Message-ID: 40FFC5C4.2040801 () gcsystem ! cz
[Download RAW message or body]

David,
there are several ways how to restore a file from a mksysb file.

Generally, each mksysb tapa has 4 images:
a boot image,
a mkinst image (or something like that)
a dummy image (empty)
a rootvg image

So, with that being said, you must skip the first three images. That's
why you had to issue "tctl fsf3", precisely speeking "tctl -f
/dev/rmt0.1 fsf3", providing tape has been rewinded (tctl -f /dev/rmt0.1
rewind) before actual restore.

But, the rootvg image is in BACKUP format, so you have to use "restore"
command in order to restore files.

As to tape_block size, mksysb tapes use block_size of 512b for the first
three images, so it can be a good idea to set tape drive's block_size to
512. If it won't help try block size "0" (zero)

Correct order of steps to recover a file from a mksysb tape is as follows:

- insert tape into a tape drive
- chdev -l rmt0 -a block_size=512 (or 0)
tctl -f /dev/rmt0.1 rewind
tctl -f /dev/rmt0.1 fsf 3
restore -xvf /dev/rmt0.1 ./path/filename
tctl -f /dev/rmt0.1 offline

or
- insert tape into a tape drive
- chdev -l rmt0 -a block_size=512 (or 0)
tctl -f /dev/rmt0.1 rewind
restore -s4 -xvf /dev/rmt0.1 ./path/filename
tctl -f /dev/rmt0.1 offline

Hope this helps...

Martin

David Zarnoch wrote:
> Sorry...
>
> We are using an LTO1 drive and are running AIX5.2
>
> We have already tried the following(found on the web)
> which didn't work
>
> To recover specific files from a backup made with mksysb, try
> $ tctl fsf 3
> $ tar xvf /dev/rmt0.1 ./your/file/name
>
> Complained about the blocksize
>
> and
>
> $ tctl fsf 3
> $ restore -xvf /dev/rmt0.1 ./your/file/name
>
> Said the tape was not in backup format
>
> Thanks!
>
> Dave Zarnoch
>
>
>
> ------------------------------------------------------------------------
>
> Subject:
> Re: mksysb recovery problems
> From:
> "David Zarnoch" <David.Zarnoch@Bisys.com>
> Date:
> Thu, 22 Jul 2004 07:38:34 -0500
> To:
> <aix-l@Princeton.EDU>
>
> To:
> <aix-l@Princeton.EDU>
>
>
> Folks,
>
> Basically the DB guys said it was OK to just use whatever OS configuration
> was present on the system and that they could restore the databases
> themselves
>
> So, we just changed the name and IP of the system to the system that was
> on the mksysb
>
> Unfortunately, one of the DB admins needs his home directory restored
> which is on the mksysb
>
> How does one restore specific files from a mksysb?
>
> Thanks!
>
> Dave Zarnoch
> david.zarnoch@bisys.com
>
>
>>>>JKREMBLAS@REDHEARTGIFTS.COM 07/21/04 02:41PM >>>
>
> Wednesday, July 21, 2004, A.D.
>
> Dave,
>
>         I've seen this before and for the life of me I don't remember
> what "0>" means. I do know this is a firmware prompt, so naturally the
> next question would be: Why are we getting a firmware prompt?
>
>         Before we explore this matter further, let's get some facts
> straight:
>
>         (1)     What is the type/model/series of the machine? Is this a
> server or workstation? I ask this because some models do not support
> booting from tape.
>
>         (2)     What is the current version of the AIX operating system
> on the machine?
>
>         (3)     What is the version of the AIX operating system on the
> purported mksysb tape?
>
>         (4)     What LED code is displayed when you get the "0>" prompt?
> First, does your machine have an LED display?
>
>         (5)     Is the system a standalone or rack-mounted system?
>
>         (6)     Is the machine an IBM RS/6000 machine or a pSeries
> machine (p630 on up)?
>
>         Please advise.
>
>         Best wishes,
>
>
>         Joseph Kremblas
>         IBM Certified Advanced Technical Expert--RS/6000 AIX
>         IBM Certified Specialist--pSeries AIX 5L Systems Support
>         IBM Certified Specialist--pSeries AIX 5L Systems Administration
>         IBM Certified Specialist--RS/6000 SP and PSSP
>         IBM Certified Solutions Expert--WebSphere MQ/MQSeries
>         IBM Certified Specialist--WebSphere MQ/MQSeries
>         Phone: (623) 877-5722
>
>         "Doubt is a pain too lonely to know that faith is his twin
> brother."
>
>
> -----Original Message-----
> From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
> David Zarnoch
> Sent: Wednesday, July 21, 2004 7:50 AM
> To: aix-l@Princeton.EDU
> Subject: Re: mksysb recovery problems
>
>
> Folks,
>
> The system that we are trying to restore has an installed OS.
>
> We are now attempting to boot into the SMS menu and change
> the  bootlist to disk
>
> BTW...The error we got on the mksysb boot was
>
> 0>
>
> on the screen
>
> Dave
>
>
>>>>JKREMBLAS@REDHEARTGIFTS.COM 07/21/04 10:37AM >>>
>
> Wednesday, July 21, 2004, A.D.
>
> Good morning, Dave,
>
>         It's unclear as to whether you are trying to boot from a mksysb
> TAPE or not as already appropriately addressed by Martin in an earlier
> response to your issue(s).
>
>         If, in fact, you are trying to boot from a mksysb TAPE, AND you
> know this is the correct image for the machine you're trying to recover,
> then we can nip this little problem in the bud by simply changing your
> boot list on the machine. By default, the tape device is not part of the
> boot list. So, the plan is to boot from one of your CD-ROMs and change
> the boot list. Afterwards, we can mount the tape and reboot the system
> from the mksysb TAPE. The procedure that would guide me would look
> something like this:
>
>         (1)     Boot from CD-ROM.
>         (2)     Change boot list.
>                 Command: bootlist -m normal rmt0 hdisk0
>         (3)     Power off machine.
>         (4)     Insert mksysb tape in tape drive.
>
>         I hope this information helps, and good luck.
>
>         Best wishes,
>
>
>         Joseph Kremblas
>         IBM Certified Advanced Technical Expert--RS/6000 AIX
>         IBM Certified Specialist--pSeries AIX 5L Systems Support
>         IBM Certified Specialist--pSeries AIX 5L Systems Administration
>         IBM Certified Specialist--RS/6000 SP and PSSP
>         IBM Certified Solutions Expert--WebSphere MQ/MQSeries
>         IBM Certified Specialist--WebSphere MQ/MQSeries
>         Phone: (623) 877-5722
>
>         "Doubt is a pain too lonely to know that faith is his twin
> brother."
>
>
> -----Original Message-----
> From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
> David Zarnoch
> Sent: Wednesday, July 21, 2004 6:19 AM
> To: aix-l@Princeton.EDU
> Subject: mksysb recovery problems
>
>
> Folks,
>
> We are trying to recover a box from a mksysb.
>
> We first tried to boot off the mksysb but it failed
>
> Then we tried to boot off CDROMs then access the
> mksysb but we got an error indicating that the operating
> system was different between the CDROMs and the mksysb
> (we suspect that the former admin used personal CDs to
> create the operating system that do not match the level
> we are using presently)
>
> Is there anything we can try?
>
> My boss is pretty hot about this...
> :0(
>
> Thanks!
>
> Dave Zarnoch
> david.zarnoch@bisys.com

--

S pozdravem / Best Regards,

Martin Trcka, IT Consultant
Tech. Support Department
GC System a.s., Spitalka 41, 60200 Brno, Czech Rep.
mob: +420 602 452 361
fax: +420 543 537 333
email: trcka@gcsystem.cz
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic