Operating System - HP-UX
1846585 Members
2263 Online
110256 Solutions
New Discussion

Viewing & Copying Raw Data

 

Viewing & Copying Raw Data

Hi everybody,

I wanted to know if there is any utility or command in Hp-UX that will allow me
to check how much space is occupied by data in a Raw partition. Also If I wanted
to move the data to some other partition, how should I go about it ? I tried
vgdisplay & lvdisplay commands but couldn't get much info.

Thanks and Bye !
Prosanjit


6 REPLIES 6
Andreas Voss
Honored Contributor

Re: Viewing & Copying Raw Data

Hi,

i put you a script at the attachment for viewing the whole LVM structure.

Greetings

Andrew
Victor BERRIDGE
Honored Contributor

Re: Viewing & Copying Raw Data

Hi,
to copy raw data I would use dd:
#dd if=/dev/vgXX/rlvlyy of=/dev/vgZZ/rlvolUU bs=1028

Regards
Victor
Bill Hassell
Honored Contributor

Re: Viewing & Copying Raw Data

A raw partition is fully occupied as there are no such things as files. The application program which uses the partition defines what is used and where it is located so any successful copy of the partition must include the entire partition. dd will perform this task but the target partition should be the same size as the application program may base locations of the data on the actual size of the logical volume.


Bill Hassell, sysadmin
Andreas Voss
Honored Contributor

Re: Viewing & Copying Raw Data

Just a correction to Victors response:
Blocksize should be bs=1024
John Palmer
Honored Contributor

Re: Viewing & Copying Raw Data

For much better performance, I would suggest a blocksize of at least 32Kb (bs=32k)

Regards,

John
James R. Ferguson
Acclaimed Contributor

Re: Viewing & Copying Raw Data

Hi:

Although I would reblock the I/O done with
, it might be safest to check the sector size of your disk first with the command. Generally/historically the sector size is 512, but this doesn's have to be true. The value for
should always be a multiple of the disk sector size if or references a raw disk.

...JRF...