Databases
cancel
Showing results for 
Search instead for 
Did you mean: 

Converting Filesystem to raw?

SOLVED
Go to solution
Roger Baptiste
Honored Contributor

Converting Filesystem to raw?

hi,

What is the procedure for converting a Filesystem-database to raw-volume database ? Assume, a filesystem /oradb/testdb/rdbm0001 is 50Gb and has the files:
/oradb/testdb/rdbm0001
/oradb/testdb/rdbm0001/lost+found
/oradb/testdb/rdbm0001/controlfiles
/oradb/testdb/rdbm0001/controlfiles/testdb_control01.ctl
/oradb/testdb/rdbm0001/datafiles
/oradb/testdb/rdbm0001/datafiles/testdb_system1_01.dbf
/oradb/testdb/rdbm0001/datafiles/cycle_data_02.dbf
/oradb/testdb/rdbm0001/datafiles/request_data_03.dbf
/oradb/testdb/rdbm0001/datafiles/q2_tab_ts1_01.dbf
/oradb/testdb/rdbm0001/redologs
/oradb/testdb/rdbm0001/rollsegs

How to convert this to a raw volume ?? Do i create raw lv for each file
and do dd of each file to the raw lv? Is their a limitation on the raw lv size?

thanks
-raj

Take it easy.
3 REPLIES
Carlos Fernandez Riera
Honored Contributor
Solution

Re: Converting Filesystem to raw?

Yes, you must create a lvol for each datafile.

Then use dd to copy data from file to rlvol. dd if=file of=/dev/vgxxxx/rlvolxxx bs=1024k


Chown ora_user:dba and chmod 644 each rlv.


If you want to maintain actual names for datafiles, create symbolic links to rlvols.

Or in svrmgrl use backup control file to trace, edit that file, and after change filename to rlvols, follow instructions inside trace file.


unsupported
harry d brown jr
Honored Contributor

Re: Converting Filesystem to raw?

Raj,

You need to export your database and rebuild it. You should not copy files to a raw logical volume. How would the database know where those table spaces exist?


live free or die
harry
Live Free or Die
Carlos Fernandez Riera
Honored Contributor

Re: Converting Filesystem to raw?

Sorry Harry, must dd can be done.

I use to configure raw devices for Oracle databases and, when you make a typo a fs-datafile is created. You can correct by dd to raw device and using rename datafile on sqlplus.
unsupported