System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Hp-ux RAW vols ---> linux Block vols

 
SOLVED
Go to solution
Nath_3
Frequent Advisor

Hp-ux RAW vols ---> linux Block vols

Hi,

Can we do a "dd copy" the data from HP-ux RAW vols to linux Block.

Ex: /dev/vgrrav9/rv2000-0030 -----> /dev/mapper/orarrav_data_089_4600Mp10

If i am correct we cannot copy it right?

Did any one try this? If yes what are your experiances.

thanks
Ravi
5 REPLIES
Doug O'Leary
Honored Contributor
Solution

Re: Hp-ux RAW vols ---> linux Block vols

Hey;

You'll need to go to the character device on the linux system as well.

I saw a similar discussion on the otn network awhile back. In theory, if the "endian" of both Linux and HPUX is the same, than the dd should work.

Since oracle uses it's own proprietary format for the datablocks, the data will be in the same format assuming that both systems use the same endian format.

Now, the next question is how to ID the 'endian' of your systems?

Dunno; looking though, interesting question.

BTW, I'd be *really* interested to find out if this works. It really seems like it should. Either way, it'll be a cool experiment.

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Doug O'Leary
Honored Contributor

Re: Hp-ux RAW vols ---> linux Block vols

Hey;

bummer; looks like the straight dd is going to be a problem. Everything I see says that HPUX is big endian while linux is little. that means the data format's going to change.

If I remember right, there are options to dd that will convert big endian to little endian; however, that's adding a rather large variable to the equation.

It's looking like your best bet is going to be an export/import or restore from backup.

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Patrick Wallek
Honored Contributor

Re: Hp-ux RAW vols ---> linux Block vols

If you are running Oracle 10g or later there is an a Oracle feature called "cross-platform transportable tablespaces." This allow migration of data between server with different endian-ness.

I have not used this feature, but I believe it should do what you require.

And yes, Linux is a "little endian" system and HP-UX is "big endian".

Here is some SQL that will show you the endian-ness of your system:

SQL> select tp.endian_format from v$transportable_platform tp, v$database d where tp.platform_name = d.platform_name;

ENDIAN_FORMAT
--------------
Little
Nath_3
Frequent Advisor

Re: Hp-ux RAW vols ---> linux Block vols

yes i am using 10g By changing the endian_format in hp-ux will it be possible?

How good will the data be?

Thanks
Patrick Wallek
Honored Contributor

Re: Hp-ux RAW vols ---> linux Block vols

>>By changing the endian_format in hp-ux

That's not possible. The endian format is not something that can be changed. It is a fixed value for the server / OS.