Operating System - HP-UX
1840287 Members
3483 Online
110162 Solutions
New Discussion

copy all data of the disk

 
JuDi_4
Occasional Advisor

copy all data of the disk

Hi everyone!
I have hp-ux 11.23 sever and EVA8100.
Disks
/vg01/lv01
/vg02/lv02
has information.
disks
/vg03/lv03
/vg04/lv04
/vg05/lv05
/vg06/lv06
are empty.
I need to make 2 copy all data.
Disk size of all disk the same.
How can i do this quickly?
That is the best practice?
cp? dd? EVA tools (snapcopy)?
Best Regards,
Judi.
2 REPLIES 2
E.A
Occasional Advisor

Re: copy all data of the disk


you can use dd and the raw dfs.

dd if=/dev/vg0X/rlv01 of=/dev/vg0X/rlv02 bs=64k

I guess you get the best performance with mirroring the content directly on the storage system, depending on how large the volumes are
Change is the transformation of what is already known
Michael Steele_2
Honored Contributor

Re: copy all data of the disk

Hi Judi:

lets start at the beginning, you've listed this as your disks:

Disks
/vg01/lv01
/vg02/lv02

These are not disks. /vg01 is a volume groups that you display using the 'vgdisplay' command. And lv01 and lv02 are logical volumes or pie slices of the volume group. Display information using 'lvdisplay'.

Either command using the -v option will report the disks used to store this information. For example:

vgdisplay -v vg01 | grep "PV Name"
pvdisplay -v /dev/dsk/c#t#d# | more
lvdisplay -v /dev/vg01/lv01 |more

Your going to have to get the disk size, which could be 73 GB on the small side, and then find room to store it in. To do this your going to have to cross reference 'ioscan -funC disk' with the 'vgdisplay -v | grep "PV Name" outputs. This 'vgdisplay' command will list every currently used disk. 'ioscan' will report both used and unused disks. Find the unused disks. Verify their sizes against the used disks with 'diskinfo -v /dev/dsk/c#t#d#'. Then use the 'dd' command to move all the data:

dd if=/dev/dsk/c#t#d# of=C#t#d# bs=1024

Follow through on these steps and report back what you find regarding space.
Support Fatherhood - Stop Family Law