Operating System - HP-UX
1834191 Members
2601 Online
110064 Solutions
New Discussion

Re: Undoing pvcreate -B..

 
SOLVED
Go to solution
PatRoy
Regular Advisor

Undoing pvcreate -B..

Hi all.

Running HPUX 11.31 IPF here. I have a volume group which the OS seems to think that a disk in it is bootable...

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

Current path "/dev/dsk/c6t0d0" is an alternate link, skip.
lvlnboot: LIF information corrupt or not present on "/dev/disk/disk9".
Use the "mkboot" command to initialize the LIF area.
Boot Definitions for Volume Group /dev/vg01:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c4t0d0
/dev/dsk/c6t0d0
/dev/disk/disk9 -- Boot Disk
No Boot Logical Volume configured
No Root Logical Volume configured
No Swap Logical Volume configured
No Dump Logical Volume configured

---------

Checking out the SAM logs, seems like the disk was created with:

/usr/sbin/pvcreate -B /dev/rdisk/disk9 && /usr/sbin/vgextend -A y -x y /dev/vg01 /dev/disk/disk9

The -B must be the prob here.. but ain't sure how I can undo that without recreating... Any suggestions?

Thanks a lot..

Pat
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Undoing pvcreate -B..

Shalom Pat,

Maybe 11.31 has some new feature I'm not aware of but the only way I know to overwrite this data is to do the process over again.

That would been getting the disk out of the volume group its probably in.

This kind of disk configuration should be done at the command line, not with sam to avoid these kind of issues.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Patrick Wallek
Honored Contributor

Re: Undoing pvcreate -B..

The only way to "undo" a 'pvcreate -B' is to do a normal 'pvcreate' on the disk.

But you can't do that while the disk is part of a VG.

This is a reason I don't use SAM to do any disk / VG work.
James R. Ferguson
Acclaimed Contributor
Solution

Re: Undoing pvcreate -B..

Hi Pat:

Use the '-B n' argument to 'vgmodify'.

http://docs.hp.com/en/B2355-60130/vgmodify.1M.html

Regards!

...JRF...
Patrick Wallek
Honored Contributor

Re: Undoing pvcreate -B..

I learned something new today.
(No points here please.)
PatRoy
Regular Advisor

Re: Undoing pvcreate -B..

Great!!! thanks for your help all!! :D