Operating System - HP-UX
1833776 Members
2380 Online
110063 Solutions
New Discussion

Re: re : disk mirroring for hpux 11.31

 
SOLVED
Go to solution
Vincent_5
Super Advisor

re : disk mirroring for hpux 11.31

Hi Guys,
Assuming if you base on the attach output of a rx server. What is disk2's device file and what is disk2_p2 device file???

Please advice

Regards
Vincent
nothing is better than to know more
8 REPLIES 8
Torsten.
Acclaimed Contributor
Solution

Re: re : disk mirroring for hpux 11.31

I guess you already know about the new mass storage stack in 11.31.
So you are aware of the new device files.

I would recommend to use them for mirroring (/dev/disk/diskx).

To translate, run

ioscan -m dsf

and you will see how the "old" and "new" device files belong together.

a disk2_p2 is the same as , let's say c1t2d0s2 - refer to the ioscan command.

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!   
Vincent_5
Super Advisor

Re: re : disk mirroring for hpux 11.31

Hi Torsen,
Thanks for the info, so in this case what should be input on this command below for disk2 with referrence to the output

idisk -f /tmp/idf -w /dev/rdisk/disk2

disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 36.4GST336754LC

/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
/dev/dsk/c2t0d0s1 /dev/rdsk/c2t0d0s1

/dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0s2

/dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s3

disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 36.4GST336754LC

/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0

/dev/dsk/c2t1d0s1 /dev/rdsk/c2t1d0s1

/dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0s2

/dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s3


Please advice???

Regards
Vincent
nothing is better than to know more
Torsten.
Acclaimed Contributor

Re: re : disk mirroring for hpux 11.31

Yes - already in the post above!



ioscan -m dsf


to translate.
Again, you should use the "new" device files!
Read this too:
http://docs.hp.com/en/5991-6481/ch01s04.html#bhchdjde

(Legacy Device Files versus Persistent Device Files)

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!   
Torsten.
Acclaimed Contributor

Re: re : disk mirroring for hpux 11.31

The result will look similar to this:

$ ioscan -m dsf
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk4 /dev/rdsk/c0t1d0
/dev/rdisk/disk5 /dev/rdsk/c0t0d0
/dev/rdisk/disk5_p1 /dev/rdsk/c0t0d0s1
/dev/rdisk/disk5_p2 /dev/rdsk/c0t0d0s2
/dev/rdisk/disk5_p3 /dev/rdsk/c0t0d0s3

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!   
Vincent_5
Super Advisor

Re: re : disk mirroring for hpux 11.31

Hi Torsen,
Thanks I understand now.

Regards
Vincent
nothing is better than to know more
Torsten.
Acclaimed Contributor

Re: re : disk mirroring for hpux 11.31

... and your results should look like this at the end (of course with *your* device files):

# vgdisplay -v vg00
...
...
--- Physical volumes ---
PV Name /dev/disk/disk5
PV Status available
Total PE 4341
Free PE 0
Autoswitch On

PV Name /dev/disk/disk6
PV Status available
Total PE 4341
Free PE 0
Autoswitch On


#lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk5 -- Boot Disk
/dev/disk/disk6 -- Boot Disk
Boot: lvol1 on: /dev/disk/disk5
/dev/disk/disk6
Root: lvol3 on: /dev/disk/disk5
/dev/disk/disk6
Swap: lvol2 on: /dev/disk/disk5
/dev/disk/disk6
Dump: lvol2 on: /dev/disk/disk5, 0


#strings /etc/lvmtab
/dev/vg00
/dev/disk/disk5
/dev/disk/disk6

#setboot
Primary bootpath : 0/1/1/0.0x0.0x0 (/dev/rdisk/disk5)
Alternate bootpath : 0/1/1/1.0x2.0x0 (/dev/rdisk/disk6)






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!   
Vincent_5
Super Advisor

Re: re : disk mirroring for hpux 11.31

Hi
Sorry to bother you again, when I try to do the mirroring, it don't seems to be able to see the persistent device file .

Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk4 /dev/rdsk/c0t1d0
/dev/rdisk/disk5 /dev/rdsk/c0t0d0
/dev/rdisk/disk5_p1 /dev/rdsk/c0t0d0s1
/dev/rdisk/disk5_p2 /dev/rdsk/c0t0d0s2
/dev/rdisk/disk5_p3 /dev/rdsk/c0t0d0s3

how to see the device file /dev/rdisk/disk4


Pls help

Regards
Vincent
nothing is better than to know more
Torsten.
Acclaimed Contributor

Re: re : disk mirroring for hpux 11.31

The legacy device file is here:

/dev/rdisk/disk4 /dev/rdsk/c0t1d0

After you run "idisk" and "insf" you should see the "*_p1/2/3" entries.

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!