Integrity Servers
cancel
Showing results for 
Search instead for 
Did you mean: 

EFI partitions removed by mistake.

 
SOLVED
Go to solution
Davis Paul
Valued Contributor

EFI partitions removed by mistake.

Hi all,
By mistake, idisk -R /dev/disk/disk4. Its my boot disk and no boot disk mirroring. Is it possible to recreate ?

Davis.
24 REPLIES 24
Michael Steele_2
Honored Contributor
Solution

Re: EFI partitions removed by mistake.

Good question, here's the procedure for mirroring looks like you use the idisk command

a. Create a partition description file. For example:
# vi /tmp/pdf
In this example the partition description file contains:
3
EFI 500MB
HPUX 100%
HPSP 400MB
b. Partition the disk using idisk and the partition description file created in step 1a:
# idisk -f /tmp/pdf -w /dev/rdsk/c2t1d0

page 26 of attached.
Support Fatherhood - Stop Family Law
Torsten.
Acclaimed Contributor

Re: EFI partitions removed by mistake.

According to the man page you must specify "w" together with "R" to have write access with idisk -R.
System still up? Check with idisk if the partitions are still valid.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Davis Paul
Valued Contributor

Re: EFI partitions removed by mistake.

System is still up and running.


# idisk /dev/rdisk/disk4
idisk version: 1.44
idisk: Primary partition information not valid.
Run idisk with -r option to restore.
Torsten.
Acclaimed Contributor

Re: EFI partitions removed by mistake.

Did you try this? Don't reboot now!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Davis Paul
Valued Contributor

Re: EFI partitions removed by mistake.

# idisk with -r /dev/rdisk/disk4
idisk: Stat of disk failed(2)
Michael Steele_2
Honored Contributor

Re: EFI partitions removed by mistake.

Sigh, well, you're going to have to start looking into Itanium System Recovery procedures and I believe this begins with a boot DVD.

With that in mind, the bootable DVD and the EFI are both used for bringin up the box.

Restoring from an ignite image takes no time at all and may be the easiest solution.

Here is the latest doc on HP's System Reocvery.

http://docs.hp.com/en/5992-6584/ch15s02.html
Support Fatherhood - Stop Family Law
Torsten.
Acclaimed Contributor

Re: EFI partitions removed by mistake.

It's a bit strange.

The man page says about -R:

==> The -w option must be specified for information to be written to the disk.


but the examples on the same page say

==> Destroy all partition information on the disk:

idisk -R /dev/rdsk/c1t4d0

But it also says

==> Restore partition information from either a good primary or alternate header or table to the header or table that is bad:

idisk -w -r /dev/rdsk/c1t4d0

http://docs.hp.com/en/B2355-60130/idisk.1M.html




Maybe its time to look for your backup now ... just to be safe before proceeding.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Michael Steele_2
Honored Contributor

Re: EFI partitions removed by mistake.


Hi

Can you explain how the EFI was destroyed? I have a professional curiousity in any thing that will knock down a box.
Support Fatherhood - Stop Family Law
Davis Paul
Valued Contributor

Re: EFI partitions removed by mistake.

Torsten,

sory my "idisk -r" posted above was not correct. please check the below output.

# idisk -r /dev/rdisk/disk4
idisk version: 1.44
********************** WARNING ***********************
If you continue you may destroy all data on this disk.
Do you wish to continue(yes/no)? yes
idisk: Both the primary and alternate partition table entries are bad.
Restoration is not possible. Partitions must be created using data file.


# idisk -w -r /dev/rdisk/disk4
idisk version: 1.44
********************** WARNING ***********************
If you continue you may destroy all data on this disk.
Do you wish to continue(yes/no)? yes
idisk: Both the primary and alternate partition table entries are bad.
Restoration is not possible. Partitions must be created using data file.