cancel
Showing results for 
Search instead for 
Did you mean: 

DRD: removing a clone

Sheila McKenzie
Occasional Contributor

DRD: removing a clone

I have installed DRD and cloned the boot disk to another disk using:

drd clone -t /dev/dsk/c1t15d0

I now wish to remove the clone so that I can use the disk for something else. I do not wish to remove the DRD product since I will likley clone again in the near future.

How do I safely remove a clone?
5 REPLIES
Matti_Kurkela
Honored Contributor

Re: DRD: removing a clone

If the clone is not currently mounted or otherwise in use, there is no need to explicitly "remove" the clone: just overwrite it.

For example, you could "pvcreate -f /dev/rdsk/c1t15d0" and then proceed just like with a new disk.

MK
MK
Sheila McKenzie
Occasional Contributor

Re: DRD: removing a clone

Certainly isn't the cleanest approach.

After doing, the command: "drd status" is deceiving showing the "old" disk as being the clone and a hint indicating an issue with the EFI partition ("Boot loader and AUTO file missing"). The command iteslf completes with a "Displaying DRD Clone Image Information succeeded."

I was hoping for something a little tidier with no trace of the "old" disk or confusion.

Thanks.
Sunya_1
Occasional Advisor

Re: DRD: removing a clone

either use SMH UI or LVM command set.. you can force that disk to be use by LVM. Just create a new VG. Creat some LV.. That is OK..

It will treat the disk like repartitionning.
Johnson Punniyalingam
Honored Contributor

Re: DRD: removing a clone

You need use (pvcreate -f)

Once You perform "pvcreate -f" has been done, All Your Clone disk volume header and VBDA information has been erased or removed from the disk,

Now can use the disk ,for something else which you intend to do,

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
VK2COT
Honored Contributor

Re: DRD: removing a clone

Hello,

It is safe to remove the clone.
If you want the full procedure,
it is as follows:

# lvrmboot -s drd00
# lvremove -f /dev/drd00/lvol2
# lvrmboot -d lvol3 /dev/drd00
# lvremove -f /dev/drd00/lvol3
# lvrmboot -r drd00
# lvremove -f /dev/drd00/lvol4
# vgremove drd00

Cheers,

VK2COT
VK2COT - Dusan Baljevic