Operating System - HP-UX
1833007 Members
2892 Online
110048 Solutions
New Discussion

Is pvcreate needed when replacing FC10 disk?

 
SOLVED
Go to solution
Jack C. Mahaffey
Super Advisor

Is pvcreate needed when replacing FC10 disk?

I've seen some inconsistencies in FC10 disk replacement threads. I'm going to replace some FC10 disks this week. Are there any guidelines when pvcreate is necessary to replace disks.

Here's the steps I think I need to follow:

1 Determine physical disk locations (dd)
2 Run ioscan -fnkH hardware path to determine disk device name
3 Run pvdisplay using disk device name from ioscan to determine both primary and alternate paths.
4 Run tdlist to get adapter and n-port loop ids.
5 Pull disk
6 Replace disk
7 Run fcmsutil replace_disk for primary path
# fcmsutil /dev/td2 replace_disk â l 6
8 Run fcmsutil replace_disk for alternate path
# fcmsutil /dev/td4 replace_disk â l 6
9 Run pvcreate against the primary path
# pvcreate â f /dev/dsk/c5t6d0
10 Run ioscan for disk to be recognized.
11 # vgcfgrestore â n /dev/vg01 /dev/dsk/c5t6d0
12 # vgchange â a y /dev/vg01
13 # vgsync /dev/vg01


Thanks in adv
6 REPLIES 6
Jack C. Mahaffey
Super Advisor

Re: Is pvcreate needed when replacing FC10 disk?

It looks like post replaced the hyphen "-" with the wierd characters.

Jack C. Mahaffey
Super Advisor

Re: Is pvcreate needed when replacing FC10 disk?

Looks like I put the post in the wrong forum also. Sorry...
Johan Lorimier
Frequent Advisor
Solution

Re: Is pvcreate needed when replacing FC10 disk?

Hi,

the pvcreate is needed.
your steps ares almost in the right order but you have to do the ioscan before running the fcmsutil command. You may have to run an "ioscan -fn" instead of an "ioscan -fnC disk" to have your new device recognized.

Johan
Jack C. Mahaffey
Super Advisor

Re: Is pvcreate needed when replacing FC10 disk?

Johan... Thanks... I'll update my steps.

jack
Helen French
Honored Contributor

Re: Is pvcreate needed when replacing FC10 disk?

Since you are only replacing the disk, you don't need to do pvcreate. After you replace the disk, check with ioscan and fcmsutil commands. Then run vgcfgrestore.

If you are adding a new VG or extending a VG, you have to pvcreate the disk first.
Life is a promise, fulfill it!
Jack C. Mahaffey
Super Advisor

Re: Is pvcreate needed when replacing FC10 disk?

Shiju... Thanks... I'll update my steps again.