Showing results for 
Search instead for 
Did you mean: 

Converting Filesystem to raw?

Go to solution
Roger Baptiste
Honored Contributor

Converting Filesystem to raw?


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:

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?


Take it easy.
Carlos Fernandez Riera
Honored Contributor

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.

harry d brown jr
Honored Contributor

Re: Converting Filesystem to raw?


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
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.