Operating System - HP-UX
1829749 Members
1720 Online
109992 Solutions
New Discussion

Re: after inserting new internal disk

 
???_185
Regular Advisor

after inserting new internal disk

after root mirror fail, I insert new disk for new mirror in rx4640.

[uh2:/]strings /etc/lvmtab
/dev/vg01
/dev/dsk/c12t0d0
/dev/dsk/c12t0d1
/dev/vg02
/dev/dsk/c12t0d2
/dev/dsk/c12t0d3
/dev/vg03
/dev/dsk/c12t0d4



[uh2:/]vgscan -a
Creating "/etc/lvmtab".
Couldn't stat physical volume "/dev/dsk/c0t0d0":
Invalid argument
Physical Volume "/dev/dsk/c2t0d0" is not part of a Volume Group

vgscan: has no correspoding valid raw device file under /dev/rdsk.
Verification of unique LVM disk id on each disk in the volume group
/dev/vg00 failed.


[uh2:/]
[uh2:/]ioscan -fnkC disk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/3/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GMAS3735NC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t1d0 /dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s1 /dev/rdsk/c2t1d0 /dev/rdsk/c2t1d0s3
/dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0s1

I can't remove vg00-/dev/dsk/c2t0d0
system don't recognize disk.
why? and any solution?
Thanks Regard.
8 REPLIES 8
curt larson_1
Honored Contributor

Re: after inserting new internal disk

this doc should be able to answer your questions:
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
???_185
Regular Advisor

Re: after inserting new internal disk

finally, I lost root lbmtab information.
I have backup file about lvmtab
how can I solve this problem
[uh2:/]strings /etc/lvmtab.backup
/dev/vg00
/dev/dsk/c2t1d0s2
/dev/dsk/c2t0d0s2
/dev/vg01
/dev/dsk/c12t0d0
/dev/dsk/c12t0d1
/dev/vg02
/dev/dsk/c12t0d2
/dev/dsk/c12t0d3
/dev/vg03
/dev/dsk/c12t0d4
[uh2:/]strings /etc/lvmtab
/dev/vg01
/dev/dsk/c12t0d0
/dev/dsk/c12t0d1
/dev/vg02
/dev/dsk/c12t0d2
/dev/dsk/c12t0d3
/dev/vg03
/dev/dsk/c12t0d4
RAC_1
Honored Contributor

Re: after inserting new internal disk

c0t0d0 looks a like cdrom/dvd drive.
What does following commands say?
diskinfo -v /dev/rdsk/c0t0d0
There is no substitute to HARDWORK
curt larson_1
Honored Contributor

Re: after inserting new internal disk

man vgscan
???_185
Regular Advisor

Re: after inserting new internal disk

c0t0d0 is cdrom/dvd drive.
I have three task.
first, restore vgoo
second, split mirror disk
third, remirror root.

in rx4640, it needs execute restoration in sigle mode?

1.mkdir /dev/vg00
mknod /dev/vg00/group c 64 0x000000
vgimport -s -m /VG00_MAP /dev/vg00
vgchange -a y /dev/vg00
vgcfgbackup /dev/vg00
mount -a
setboot -p
lvlnboot -R
lvlnboot -v

2.vgreduce -f


3.remirroring


is it right?
Torsten.
Acclaimed Contributor

Re: after inserting new internal disk

Forget about the vgscan command, because your new disk is empty. You'll have to restore the lvm structure to it.
First step is to create the partitions in order to get the cxtydzs.. (s1 s2 s3) devices.

Create a file (e.g. /tmp/dskpart) with this content:

3
EFI 500MB
HPUX 100%
HPSP 400MB

Now run idisk:

#idisk -f /tmp/dskpart -w /dev/rdsk/c2t0d0

create the device files:

#insf -e -H 0/1/1/0.0.0

now restore lvm information

#vgcfgrestore â n vg00 /dev/rdsk/c2t0d0s2

activate vg

#vgchange -a y vg00

update boot area

#mkboot â e â l /dev/rdsk/c2t0d0

sync the vg

#vgsync vg00

Update the root volume group information:

# lvlnboot -R /dev/vg00

set the autostart string

#echo â boot vmunixâ > ./AUTO
# efi_cp -d /dev/rdsk/c2t0d0s1 ./AUTO /efi/hpux/auto

for more information see the documentation mentioned earlier

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

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!   
Nguyen Anh Tien
Honored Contributor

Re: after inserting new internal disk

I am
1. reduce all lv on vg00.
#for i in 1 2 3 4 5 6 7 8
do
lvreduce -m 0 -k /dev/vg00/lvol$i /dev/dsk/c2t0d0
done
NOTE: if you have more than 8 lv pls reduce by manual.
2,vgreduce -f vg00
3,mv /etc/lvmtab /etc/lvmtab.old
4,reduce pv "/dev/dsk/c2t0d0" from vg00
5, pvcreate -f /dev/rdsk/c2t0d0
6, vgextend vg00 /dev/dsk/c2t0d0
7,vgcfgrestore -n vg00 /dev/rdsk/c2t0d0
#for i in 1 2 3 4 5 6 7 8
do
lvreduce -m 1 /dev/vg00/lvol$i /dev/dsk/c2t0d0
done
8,setboot -a HWPATH of /dev/dsk/c2t0d0
9,mirroring all lv in vg00 again
HTH
tienna
HP is simple
Torsten.
Acclaimed Contributor

Re: after inserting new internal disk

Please do not use /dev/dsk/c2t0d0,
use /dev/dsk/c2t0d0s2 , since this is an integrity system (itanium2)

Regards
T

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!