Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

Remove unwanted boot disk

Andrew_80
Advisor

Remove unwanted boot disk

Hello all..

My issue is I have an extra disk marked as a Boot Disk when I do lvlnboot -v and this disk c0t5d0 should not be a boot disk. I tested my Primary and Alternate and they work fine. How can I remove the mark "Boot Disk" from this disk
lvlnboot -v
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c4t6d0 (1/0/0/3/0.6.0) -- Boot Disk
/dev/dsk/c7t6d0 (1/0/1/0/0/1/1.6.0)
/dev/dsk/c0t6d0 (0/0/0/3/0.6.0) -- Boot Disk
/dev/dsk/c0t5d0 (0/0/0/3/0.5.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c4t6d0
/dev/dsk/c0t6d0
Root: lvol3 on: /dev/dsk/c4t6d0
/dev/dsk/c0t6d0
Swap: lvol2 on: /dev/dsk/c4t6d0
/dev/dsk/c0t6d0
Dump: lvol2 on: /dev/dsk/c4t6d0, 0
Dump: lvol9 on: /dev/dsk/c7t6d0, 1
The Sky is the Limit
6 REPLIES
S.K. Chan
Honored Contributor

Re: Remove unwanted boot disk

I think all you have to do is run pvcreate on that disk to destroy its reserved boot area.
# pvcreate -f /dev/rdsk/c0t5d0
Be VERY sure that c0t5d0 is not used before you run pvcreate on it.
Michael Tully
Honored Contributor

Re: Remove unwanted boot disk

Try using :

# pvdisplay -v /dev/dsk/c0t5d0

This will display any logical volume information if there is any. As long as there is none, then the disk can have be blurbed and re-used. If there is these logical volumes should be removed nicely, otherwise, your LVM will not not like it.

# pvcreate -f /dev/dsk/c0t5d0
will flatten the disk

Anyone for a Mutiny ?
Andrew_80
Advisor

Re: Remove unwanted boot disk

Sorry I forgot to mention, the disk is mirror of c7t6d0 which has swap. is there a way to do it without pvcreate ?

Is there a reverse command for mkboot ?
The Sky is the Limit
Sridhar Bhaskarla
Honored Contributor

Re: Remove unwanted boot disk

I am not sure if you want to do a pvcreate on the disk while it is in the volume group. Doing a pvcreate is going to destroy the LVM structures including VGID and will create problems. (You can use vgcfgrestore to fix the problem through).

In your case, when you did a 'pvcreate -B' on the disk initially while adding the disk into the volume group, it got recognized as the boot disk.

You can probably do a selective dd and erase the boot area but I would not suggest it.

I would say to move the logical volumes out of it to other disks in the same VG, take it out of vg00, do a "pvcreate -f" and then vgextend it back to vg00. This is a safe procedure.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Frank Slootweg
Honored Contributor

Re: Remove unwanted boot disk

> Is there a reverse command for mkboot ?

Yes, rmboot(1M), see the mkboot(1M) manual page "man mkboot" or "man rmboot"):

> NAME
> mkboot, rmboot - install, update or remove boot programs from disk
Steven E. Protter
Exalted Contributor

Re: Remove unwanted boot disk

split the mirrors on swap first and anything else mirrored to the disk. I do that once a decade so I cheated and used sam

Then lvremove the mirror copy thats on that disk.

Then pvceate -f

Then lvextend -m 1 /vg00/lvol2 /dev/dsk/c0t5d0

Repeat for anyting else mirrored.

Then you're done.

It can all be done by day, no system down time required at all.

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