1752579 Members
4110 Online
108788 Solutions
New Discussion юеВ

Re: PVMOVE question

 
SOLVED
Go to solution
Stefalap
Occasional Advisor

PVMOVE question

We are migrating to a new SVC SAN. We need to migrate the data.

I ran the following commands

vgextend /dev/vg08 /dev/dsk/c110t0d0
pvmove /dev/dsk/c53t9d1 /dev/dsk/c110t0d0
vgreduce vg08 /dev/dsk/c53t9d1


Following these commands, are there still data on the old disk (c53t9d1)
If there are still data on it, how do i delete it?

Thanks in advance
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor
Solution

Re: PVMOVE question

Hi Stefalap:

Logically from an LVM perspective, there is no data on the old disk.

If, however, you mean could the information thereon be read, yes, the bit patterns remain. You could "clean" the old disk by writing zeros or random patterns to it n-times where n's value increases for increasing paranoia:

# vgreduce vg08 /dev/dsk/c53t9d1

...then:

# dd if=/dev/zero of=/dev/rdsk/c53t9d1 bs=1024k

...or:

# dd if=/dev/urandom of=/dev/rdsk/c53t9d1 bs=1024k

Regards!

...JRF...
Stefalap
Occasional Advisor

Re: PVMOVE question

HI James

That was clear and great.
and YES Paranoia is the key word here
Naveen M
Advisor

Re: PVMOVE question

To clear LVM header structures, we can use pvremove as well.