1837195 Members
2707 Online
110115 Solutions
New Discussion

Re: wrong bootdisk

 
N.Gawlik
Occasional Visitor

wrong bootdisk

Hi,
I have rx2660 und HPUX 11.23.
I have 2 boot Disks ( c7t1d0 with S1,S2,S3 and C7t0d0 with s1,s2,s3).When i make a mirror disk c7t1d0, i did mistake with idisk. I did instead of (idisk -wf /partfile /dev/rdsk/c7t1d0) i did idisk -wf /partfile /dev/rdsk/c1t1d0). Now i have three disks with s Partition and i need only two disks. How can i remove disk c1t1d0 ?

Thnaks
Norbert

total 0
brw-r----- 1 bin sys 31 0x000000 Jul 29 10:41 c0t0d0
brw-r----- 1 bin sys 31 0x010000 Jul 29 10:45 c1t0d0
brw-r----- 1 bin sys 31 0x011000 Jul 29 10:45 c1t1d0
brw-r----- 1 bin sys 31 0x011001 Jul 29 10:41 c1t1d0s1
brw-r----- 1 bin sys 31 0x011002 Jul 29 10:41 c1t1d0s2
brw-r----- 1 bin sys 31 0x011003 Jul 29 10:41 c1t1d0s3
brw-r----- 1 bin sys 31 0x012000 Jul 29 10:45 c1t2d0
brw-r----- 1 bin sys 31 0x013000 Jul 29 10:45 c1t3d0
brw-r----- 1 bin sys 31 0x030000 Jul 29 10:45 c3t0d0
brw-r----- 1 bin sys 31 0x031000 Jul 29 10:45 c3t1d0
brw-r----- 1 bin sys 31 0x032000 Jul 29 10:45 c3t2d0
brw-r----- 1 bin sys 31 0x033000 Jul 29 10:45 c3t3d0
brw-r----- 1 bin sys 31 0x070000 Jul 29 10:41 c7t0d0
brw-r----- 1 bin sys 31 0x070001 Jul 29 10:41 c7t0d0s1
brw-r----- 1 bin sys 31 0x070002 Jul 29 10:41 c7t0d0s2
brw-r----- 1 bin sys 31 0x070003 Jul 29 10:41 c7t0d0s3
brw-r----- 1 bin sys 31 0x071000 Jul 29 10:41 c7t1d0
brw-r----- 1 bin sys 31 0x071001 Jul 29 11:02 c7t1d0s1
brw-r----- 1 bin sys 31 0x071002 Jul 29 11:02 c7t1d0s2
brw-r----- 1 bin sys 31 0x071003 Jul 29 11:02 c7t1d0s3
Class I H/W Path Driver S/W State H/W Type Description
====================================================================================
disk 11 0/0/2/1.0.16.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP DG072ABAB3
/dev/dsk/c7t0d0 /dev/rdsk/c7t0d0
/dev/dsk/c7t0d0s1 /dev/rdsk/c7t0d0s1
/dev/dsk/c7t0d0s2 /dev/rdsk/c7t0d0s2
/dev/dsk/c7t0d0s3 /dev/rdsk/c7t0d0s3
disk 2 0/1/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP DG072BB975
/dev/dsk/c7t1d0 /dev/rdsk/c7t1d0
/dev/dsk/c7t1d0s1 /dev/rdsk/c7t1d0s1
/dev/dsk/c7t1d0s2 /dev/rdsk/c7t1d0s2
/dev/dsk/c7t1d0s3 /dev/rdsk/c7t1d0s3
disk 7 0/2/1/0/4/0.0.0 sdisk CLAIMED DEVICE COMPAQ BD07289BB8
/dev/dsk/c1t0d0 /dev/rdsk/c1t0d0
disk 8 0/2/1/0/4/0.1.0 sdisk CLAIMED DEVICE COMPAQ BD07289BB8
/dev/dsk/c1t1d0 /dev/rdsk/c1t1d0
/dev/dsk/c1t1d0s1 /dev/rdsk/c1t1d0s1
/dev/dsk/c1t1d0s2 /dev/rdsk/c1t1d0s2
/dev/dsk/c1t1d0s3 /dev/rdsk/c1t1d0s3
disk 9 0/2/1/0/4/0.2.0 sdisk CLAIMED DEVICE COMPAQ BD07289BB8
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 10 0/2/1/0/4/0.3.0 sdisk CLAIMED DEVICE COMPAQ BD07289BB8
/dev/dsk/c1t3d0 /dev/rdsk/c1t3d0
disk 3 0/3/1/0/4/0.0.0 sdisk CLAIMED DEVICE COMPAQ BD07289BB8
/dev/dsk/c3t0d0 /dev/rdsk/c3t0d0
disk 4 0/3/1/0/4/0.1.0 sdisk CLAIMED DEVICE COMPAQ BD07289BB8
/dev/dsk/c3t1d0 /dev/rdsk/c3t1d0
disk 5 0/3/1/0/4/0.2.0 sdisk CLAIMED DEVICE COMPAQ BD07289BB8
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
disk 6 0/3/1/0/4/0.3.0 sdisk CLAIMED DEVICE COMPAQ BD07289BB8
/dev/dsk/c3t3d0 /dev/rdsk/c3t3d0
12 REPLIES 12
Ivan Krastev
Honored Contributor

Re: wrong bootdisk

Remove partitions with idisk -R, remove special files with rmsf and after that re-create partitions with idisk -wf ....

regards,
ivan
N.Gawlik
Occasional Visitor

Re: wrong bootdisk

Hi,
you mean idisk -R /dev/rdsk/c1td0 and afterwards idisk -wf /dev/rdsk/c1t1d0

Nob
Sharma Sanjeev
Respected Contributor

Re: wrong bootdisk

Hi
Do

idisk -R /dev/rdsk/c1t1d0
and
idisk -wf /dev/rdsk/c7t1d0
and Remove Device files also with rmsf

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Fabio Ettore
Honored Contributor

Re: wrong bootdisk

Hi,

a similar thread follows:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1247928

I think it is enough to do the following steps:

pvcreate -f /dev/rdsk/c1t1d0
rmsf -H 0/2/1/0/4/0.1.0
ioscan -fnCdisk
insf -e -H 0/2/1/0/4/0.1.0
ioscan -fnCdisk

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!
N.Gawlik
Occasional Visitor

Re: wrong bootdisk

Hi,
Thanks for your help. I will try it Saturday.

Have a great day !
Deepak Kr
Respected Contributor

Re: wrong bootdisk

Hi,

Please try this!!
#ioscan -fnkC disk|grep c1t1d0
Note down all device files like

/dev/rdsk/c1t1d0s1
/dev/rdsk/c1t1d0s2
/dev/rdsk/c1t1d0s3

then
run
#idisk -R /dev/rdsk/c1t1d0
Also:
#rmsf /dev/rdsk/c1t1d0s1
#rmsf /dev/rdsk/c1t1d0s2
#rmsf /dev/rdsk/c1t1d0s3

This will remove all newly created device files. Run insf -eC disk to recreate device files for c1t1d0
like

/dev/dsk/c1t1d0
/dev/rdsk/c1t1d0

Hope this will solve your query!!

Cheers!!

"There is always some scope for improvement"
Torsten.
Acclaimed Contributor

Re: wrong bootdisk

IMHO it is better to reverse these steps from post above.
First "rmsf", then "idisk -R ...".
Sometimes you will see problems when trying to remove device files for non-existent devices.

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!   
N.Gawlik
Occasional Visitor

Re: wrong bootdisk

Hi,

i have my problem solved.
I take out the disk c1t1d0 and i put a new disk in the system.
Than i make
pvchange -a n /dev/dsk/c1t1d0
pvcgfrestore -n vg02 /dev/rdsk/c1t1d0
pvchange -a y /dev/rdsk/c1t1d0

Class I H/W Path Driver S/W State H/W Type Description
====================================================================================
disk 0 0/0/2/1.0.16.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP DG072A9BB7
/dev/dsk/c7t0d0 /dev/rdsk/c7t0d0
/dev/dsk/c7t0d0s1 /dev/rdsk/c7t0d0s1
/dev/dsk/c7t0d0s2 /dev/rdsk/c7t0d0s2
/dev/dsk/c7t0d0s3 /dev/rdsk/c7t0d0s3
disk 2 0/1/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP DG072A8B54
/dev/dsk/c7t1d0 /dev/rdsk/c7t1d0
/dev/dsk/c7t1d0s1 /dev/rdsk/c7t1d0s1
/dev/dsk/c7t1d0s2 /dev/rdsk/c7t1d0s2
/dev/dsk/c7t1d0s3 /dev/rdsk/c7t1d0s3
disk 7 0/2/1/0/4/0.0.0 sdisk CLAIMED DEVICE COMPAQ BD07289BB8
/dev/dsk/c1t0d0 /dev/rdsk/c1t0d0
disk 8 0/2/1/0/4/0.1.0 sdisk CLAIMED DEVICE COMPAQ BD07289BB8
/dev/dsk/c1t1d0 /dev/rdsk/c1t1d0
disk 9 0/2/1/0/4/0.2.0 sdisk CLAIMED DEVICE COMPAQ BD07289BB8
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 10 0/2/1/0/4/0.3.0 sdisk CLAIMED DEVICE COMPAQ BD07289BB8
/dev/dsk/c1t3d0 /dev/rdsk/c1t3d0
disk 3 0/3/1/0/4/0.0.0 sdisk CLAIMED DEVICE COMPAQ BD07289BB8
/dev/dsk/c3t0d0 /dev/rdsk/c3t0d0
disk 4 0/3/1/0/4/0.1.0 sdisk CLAIMED DEVICE COMPAQ BD07289BB8
/dev/dsk/c3t1d0 /dev/rdsk/c3t1d0
disk 5 0/3/1/0/4/0.2.0 sdisk CLAIMED DEVICE COMPAQ BD07289BB8
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
disk 6 0/3/1/0/4/0.3.0 sdisk CLAIMED DEVICE COMPAQ BD07289BB8
/dev/dsk/c3t3d0 /dev/rdsk/c3t3d0

I have another ask: what happened when i put again the old disk with three Partitions in the system ?

Regards !
Norbert
Torsten.
Acclaimed Contributor

Re: wrong bootdisk

As long as you don't remove the partitions from the disk (idisk -R), your system will again discover them and create device files for them, for example

cxtydzs1, ...s2, ...s3

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!   
Fabio Ettore
Honored Contributor

Re: wrong bootdisk

Hi,

in case you insert again that disk then

idisk -R /dev/rdsk/c1t1d0
pvcreate -f /dev/rdsk/c1t1d0
rmsf -H 0/2/1/0/4/0.1.0
ioscan -fnCdisk
insf -e -H 0/2/1/0/4/0.1.0
ioscan -fnCdisk

and you will have the disk with no partitions.

Best regards,
Fabio
WISH? IMPROVEMENT!
N.Gawlik
Occasional Visitor

Re: wrong bootdisk

Hi,

it is ok when i make

System is runing

#pvchange -a n /dev/dsk/c1t1d0

disk out

another "old" disk with three Partitions i insert in the system

#rmsf /dev/rdsk/c1t1d0s1
#rmsf /dev/rdsk/c1t1d0s2
#rmsf /dev/rdsk/c1t1d0s3

#idisk -R /dev/rdsk/c1t1d0

#vgcfgrestore -n vg02 /dev/rdsk/c1t1d0
#vgchange -a y /dev/dsk/c1t1d0

Regards
Norbert
Torsten.
Acclaimed Contributor

Re: wrong bootdisk

The vgcfgrestore commands depends if you still have a valig config for this disk.

Check with

#vgcfgrestore -n vg02 -l

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!