Oh f**k!!! I've deleted hd5 - What now??

Oh f**k!!! I've deleted hd5 - What now??

Post by John Dryde » Wed, 16 Sep 1998 04:00:00



Is there a non - get the last good backup tape and restore - solution??

Mr B. I. G. Burke

 
 
 

Oh f**k!!! I've deleted hd5 - What now??

Post by Matthew S. Cro » Wed, 16 Sep 1998 04:00:00




>Is there a non - get the last good backup tape and restore - solution??

If this is AIX v4, then simply recreate it:

mklv -ae -tboot -yhd5 rootvg 2 <disk_name>

where <disk_name> is an optional argument that should be used if your
rootvg has more than 1 physical disk.  After recreating it, you should
use "lslv -m hd5" to verify that the partitions are contiguous.

It is a bit more complicated for AIX v3, but I'm assuming that you're
using v4.

 
 
 

Oh f**k!!! I've deleted hd5 - What now??

Post by sysadmi » Wed, 16 Sep 1998 04:00:00


And does this keep all the data intact on all the filesystems that were
living on hd5?

--
===========================================
Opinions my own and not representative of my employer
Do not listen to me: I have brain damage
===========================================
"Spock!  We're talking about millions of lives!"
Spock (raised eyebrow) "Nevertheless, if the Romulans are indeed an offshoot
of Vulcan *,... it is imperative we attack."




>>Is there a non - get the last good backup tape and restore - solution??

>If this is AIX v4, then simply recreate it:

>mklv -ae -tboot -yhd5 rootvg 2 <disk_name>

>where <disk_name> is an optional argument that should be used if your
>rootvg has more than 1 physical disk.  After recreating it, you should
>use "lslv -m hd5" to verify that the partitions are contiguous.

>It is a bit more complicated for AIX v3, but I'm assuming that you're
>using v4.

 
 
 

Oh f**k!!! I've deleted hd5 - What now??

Post by Richard Payn » Wed, 16 Sep 1998 04:00:00


hd5 is the boot partition, these is no data stored there,
just the bootable kernel, and it can be recreated at
anytime from the running kernel.

--
Rich Payne
(Speaking for myself, not my employer)
payner at timken dot com


>And does this keep all the data intact on all the filesystems that were
>living on hd5?

>--
>===========================================
>Opinions my own and not representative of my employer
>Do not listen to me: I have brain damage
>===========================================
>"Spock!  We're talking about millions of lives!"
>Spock (raised eyebrow) "Nevertheless, if the Romulans are indeed an
offshoot
>of Vulcan *,... it is imperative we attack."



>>>Is there a non - get the last good backup tape and restore - solution??

>>If this is AIX v4, then simply recreate it:

>>mklv -ae -tboot -yhd5 rootvg 2 <disk_name>

>>where <disk_name> is an optional argument that should be used if your
>>rootvg has more than 1 physical disk.  After recreating it, you should
>>use "lslv -m hd5" to verify that the partitions are contiguous.

>>It is a bit more complicated for AIX v3, but I'm assuming that you're
>>using v4.

 
 
 

Oh f**k!!! I've deleted hd5 - What now??

Post by Peter Bruder » Wed, 16 Sep 1998 04:00:00


You need to run i

bosboot -a

else you have an empty filesystem and your box
will never boot again.


> And does this keep all the data intact on all the filesystems that were
> living on hd5?



>>If this is AIX v4, then simply recreate it:

>>mklv -ae -tboot -yhd5 rootvg 2 <disk_name>

>>where <disk_name> is an optional argument that should be used if your
>>rootvg has more than 1 physical disk.  After recreating it, you should
>>use "lslv -m hd5" to verify that the partitions are contiguous.

--

 Bruderer Research GmbH          Tel ++41 52 620 26 53
 Internet Security Services      Fax ++41 52 620 26 54
 
 
 

Oh f**k!!! I've deleted hd5 - What now??

Post by Norman Lev » Thu, 17 Sep 1998 04:00:00



> Date: Tue, 15 Sep 1998 18:28:08 +0100
> Subject: Oh f**k!!! I've deleted hd5 - What now??

> Is there a non - get the last good backup tape and restore - solution??

> Mr B. I. G. Burke

First, do NOT shut down.  Next, use smit to create hd5 and request
the OUTER EDGE for allocation.  Check with
lslv -m hd5
and see if you got chunks 1 and 2 for hd5 use.  (should get it if you
haven't requested other lv's in the outer edge)

Then,
bosboot -ad/dev/ipldevice
and have a long cool one as bosboot cranks along for 3-4 minutes.
When it completes, you are golden.

ps, if you want you can create a file "/tmp/bozo" which looks like
0001 hdisk0
0002 hdisk0
(above assumes hdisk0 is your ipldevice)
and use smit to create hd5 and point to /tmp/bozo as the 'map file'
on the smit dialog screen.

....
Norman Levin
VM/Dynamics, Inc

 
 
 

Oh f**k!!! I've deleted hd5 - What now??

Post by John McQu » Thu, 17 Sep 1998 04:00:00


You lucky so & so. There are a lot of LV's a lot more critical than hd5
it simply contains the boot info and can be easily recreated as detailed
in other replys, or do you think hd5 is a disk, like hdisk5. Again, hd5
is a small, one or two PP LV without a filesystem on it called the BLV
the Boot Logical Volume. It gets destroyed & recreated on the fly all
the time, when bosboot is run, software upgrades etc. As I said you were
lucky.

Regards

John


> And does this keep all the data intact on all the filesystems that were
> living on hd5?

> --
> ===========================================
> Opinions my own and not representative of my employer
> Do not listen to me: I have brain damage
> ===========================================
> "Spock!  We're talking about millions of lives!"
> Spock (raised eyebrow) "Nevertheless, if the Romulans are indeed an offshoot
> of Vulcan *,... it is imperative we attack."



> >>Is there a non - get the last good backup tape and restore - solution??

> >If this is AIX v4, then simply recreate it:

> >mklv -ae -tboot -yhd5 rootvg 2 <disk_name>

> >where <disk_name> is an optional argument that should be used if your
> >rootvg has more than 1 physical disk.  After recreating it, you should
> >use "lslv -m hd5" to verify that the partitions are contiguous.

> >It is a bit more complicated for AIX v3, but I'm assuming that you're
> >using v4.

 
 
 

Oh f**k!!! I've deleted hd5 - What now??

Post by Matthew S. Cro » Thu, 17 Sep 1998 04:00:00




>Then,
>bosboot -ad/dev/ipldevice
>and have a long cool one as bosboot cranks along for 3-4 minutes.
>When it completes, you are golden.

Your machine is slow.  On my E30:

# date;bosboot -a;date
Wed Sep 16 09:50:17 CDT 1998

bosboot: Boot image is 6258 512 byte blocks.
Wed Sep 16 09:50:41 CDT 1998

 
 
 

Oh f**k!!! I've deleted hd5 - What now??

Post by Scott L. Field » Thu, 17 Sep 1998 04:00:00


Uhh, make sure to run "bosboot" on the disk that the boot LV exists on. You
might
need to run "bootlist" to point to the disk if it is not the same disk it
was on,
orginally.



>>Is there a non - get the last good backup tape and restore - solution??

>If this is AIX v4, then simply recreate it:

>mklv -ae -tboot -yhd5 rootvg 2 <disk_name>

>where <disk_name> is an optional argument that should be used if your
>rootvg has more than 1 physical disk.  After recreating it, you should
>use "lslv -m hd5" to verify that the partitions are contiguous.

>It is a bit more complicated for AIX v3, but I'm assuming that you're
>using v4.