Operating System - HP-UX
1752275 Members
5047 Online
108786 Solutions
New Discussion юеВ

Re: Remove the Mirrored Root Disk

 
P Vel
Occasional Advisor

Remove the Mirrored Root Disk

Hi All,

I need to remove the mirroed root disk. Because this server has already enough reduntacy for the root disk as it has an in-built SmartArray RAID Controller with RAID level 1. Please help me with the procedure how to remove the mirrored disk from root VG and use for another VG

Thanks in advance...
11 REPLIES 11
nijokj
Trusted Contributor

Re: Remove the Mirrored Root Disk

first you need to lvreduce all the mirrord lvs

Remove mirror copies of logical extents of a logical volume from the
physical volume /dev/dsk/c1t0d0:
eg:lvreduce -m 0 /dev/vg01/lvol4 /dev/dsk/c1t0d0


lvreduce -m 0 /dev/vg00/lvname
Remove physical volume /dev/dsk/c0t1d0 from volume group /dev/vg01:

eg:vgreduce /dev/vg00 /dev/dsk/c0t1d0
P Vel
Occasional Advisor

Re: Remove the Mirrored Root Disk

Thanks.

How will I remove those 3 partions (EFI, HPUX, HPSP) from the disk?

Shibin_2
Honored Contributor

Re: Remove the Mirrored Root Disk

Once you removed the disk from VG, you can do pvcreate -f /dev/rdsk/cxtydz to remove all data and can reuse for any VG.

You may read this. Good for understanding.

When_Good_Disks_Go_Bad_WP
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf
Regards
Shibin
P Vel
Occasional Advisor

Re: Remove the Mirrored Root Disk

Yes Shibin,

But system's ioscan output still shows all three partion in disk..
P Vel
Occasional Advisor

Re: Remove the Mirrored Root Disk

I had already run # idisk -R disk

But how to remove the device special file?
Shibin_2
Honored Contributor

Re: Remove the Mirrored Root Disk

First you haven't told, what is your OS version.

Do you want it to be completely taken out from the system ?
Regards
Shibin
P Vel
Occasional Advisor

Re: Remove the Mirrored Root Disk

B.11.23

No... I need to use this disk for an another VG. But I want to remove those partions. But it is done with #idisk -R.

Now I want to remove those device files. Should I need to run rmsf for all individual special files (for both block/character) or any other way?

nijokj
Trusted Contributor

Re: Remove the Mirrored Root Disk

yes , you should run rmsf


eg: rmsf -H
Shibin_2
Honored Contributor

Re: Remove the Mirrored Root Disk

You need to use the disk on another VG on same server? If it will be using for same server, why you want to remove the special files? You just need to remove the LUN from VG, do pvcreate with -f, then add to another VG you required.
Regards
Shibin