Operating System - HP-UX
1833777 Members
1948 Online
110063 Solutions
New Discussion

idisk dsf lvm root mirror

 
SOLVED
Go to solution
scoooot
Frequent Advisor

idisk dsf lvm root mirror

Need help, I seem to have destroyed the partition information on a mirror disk. Luck for me I'm just building this 2 node cluster and no impact to business.

Here's my issue.....
Rather than use /dev/disk/disk4_p2 I used /dev/disk/disk4 and I messed the partitioning up. So I did a bumch of stuff trying to retieve information pertaining to partition. In the end I did a
#idisk -R /dev/rdsk/c3t0d0
thinking I could recreate partitions but it's not working for me.
I think I've tried just about every idisk command in the man pages, and it seems both the primary and secondary partitions have gone south.

I do a:
#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.

What do I need to do to apply partition information to this disk?
That which doesn't kill us makes us stronger.
6 REPLIES 6
Khairy
Esteemed Contributor

Re: idisk dsf lvm root mirror

hi,

Is this mirrored disk?

If its mirror, it would be good to check partition table from its mirror disk.

* Assuming disk4 is mirror to disk2 (/dev/rdsk/c1t1d0)

1) retrieve partition desc from disk2
# idisk /dev/rdsk/c1t1d0

2) edit a partition desc file and insert values from what you've seen from above output.

# vi /tmp/partfile
3
EFI 500MB
HP-UX 100%
HPSP 400MB

3) Use idisk command to initialize
# idisk -wf /tmp/partfile /dev/rdsk/disk4

Hope this help. Good luck.

Rgds
scoooot
Frequent Advisor

Re: idisk dsf lvm root mirror

I tried that. Check out the following:
#idisk -f /tmp/partfile -w /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: Invalid partition type.

This is a fresh install 11.31, unpatched. Perhaps I should apply patched before I spin my wheels anymore.

Unless there are more suggestions? (-:
That which doesn't kill us makes us stronger.
scoooot
Frequent Advisor

Re: idisk dsf lvm root mirror

Partfile looks like:

3
EFI 500MB
HP-UX 100%
HPSP 400MB
That which doesn't kill us makes us stronger.
Khairy
Esteemed Contributor
Solution

Re: idisk dsf lvm root mirror

hi brother,

typo error in prev post. The file format should be like this;

# vi /tmp/partfile
3
EFI 500MB
HPUX 100%
HPSP 400MB

notice HPUX should not contain '-'.

Try this and let us know.

Good luck.

scoooot
Frequent Advisor

Re: idisk dsf lvm root mirror

Worked like a damn. Thanks a bunch.
That which doesn't kill us makes us stronger.
scoooot
Frequent Advisor

Re: idisk dsf lvm root mirror

All is well thanks for the help.
That which doesn't kill us makes us stronger.