1833777 Members
1948 Online
110063 Solutions
New Discussion

Re: remove mirror disk

 
SOLVED
Go to solution
ovoserver
Advisor

remove mirror disk

l have removed the mirror disk using the following command:

#lvreduce -m 1 -A n /dev/vg00/lvol? /dev/dsk/c2t1d0s2
#vgreduce -f /dev/vg00 /dev/dsk/c2t1d0s2
#vgscan -a

but still display like this as below:

# ioscan -funCdisk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-C
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
/dev/dsk/c2t0d0s1 /dev/rdsk/c2t0d0s1
/dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0s2
/dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s3
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
/dev/dsk/c2t1d0s1 /dev/rdsk/c2t1d0s1
/dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s3


Any ideas on this problem? thx!
10 REPLIES 10
Ninad_1
Honored Contributor

Re: remove mirror disk

Hi,

What you have done is remove the mirror for the logical volume/s and then remove the disk from the VG. Disk would still be available to the server unless removed/depresented from storage.
Thus you will still see the disk in ioscan.
Am not sure thats what you wanted to see.
Sorry - but not completely understood your problem.

Regards,
Ninad
ovoserver
Advisor

Re: remove mirror disk

To clearify my problem, l just want to display as follow:

# ioscan -funCdisk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-C
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
/dev/dsk/c2t0d0s1 /dev/rdsk/c2t0d0s1
/dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0s2
/dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s3
F Verschuren
Esteemed Contributor

Re: remove mirror disk

the ioscan comand will only show the hartware status of the disk If you want to check if the disk is still in vg00, you can use:
vgdisplay /dev/vg00

ps is you removing the disk for repleasment do not forget to copy the other s1 and s3 date more info is in the document:
When good things go bad.
(just searce the forum for it you will find a lot of links.
ovoserver
Advisor

Re: remove mirror disk

Hi alls

thx for your reply,

l remember the output before mirrorring should be:

# ioscan -funCdisk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-C
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
/dev/dsk/c2t0d0s1 /dev/rdsk/c2t0d0s1
/dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0s2
/dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s3
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0

Do any commands make it display the original output? thx
F Verschuren
Esteemed Contributor

Re: remove mirror disk

to clear the previous partition configuration on the disk:
# idisk â Rw /dev/rdsk/c2t1d0
more info
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf
F Verschuren
Esteemed Contributor

Re: remove mirror disk

For some reason my last post was showing strange caracters retry:
idisk -RW /dev/rdsk/c2t1d0

Ps why do you want to cleat the partition configuration?
ovoserver
Advisor

Re: remove mirror disk

Hi F Verschuren,

Sorry for late reply.

l have tried to run your command, but it is not successful.

l just want to know if there is a way to restore the configuation before mirror.
sujit kumar singh
Honored Contributor
Solution

Re: remove mirror disk

Hello,
If u are looking for as to get the ioscan O/p display only the DSF for the new disk as /dev/dsk/c2t1d0 and /dev/rdsk/c2t1d0 u need to follow the following steps.

1)put in the new disk.
2)before running the idisk command to create the partitions s1 s2 and s3 on the disk u need to maually remove the device files using rm -ri /dev/dsk/c2t1d0s* and rm -ri /dev/rdsk/c2t1d0s*(I think u can also do rmsf for this purpose like rmsf -H 0/1/1/0.1.0 --- this is the H/W path of the disk for which u have removed the mirror.)
3)perform the ioscan again
4)insf -e -C disk
5)run idisk to create the partitions s1 s2 and s3 on the disks.
6)insf -eC disk to create the new block and raw device files for the s1 s2 and s3.
7)follow the remaining steps of Mirroring/Replacement of the disk.




Regards Sujit
please do not forget to assign the points.
ovoserver
Advisor

Re: remove mirror disk

Hi Sujit,

Thanks for your reply.

l will follow your steps next time since the harddisk has been formated.

ovoserver
Advisor

Re: remove mirror disk

I have found a solution to this question