raw logical volumes to jfs2

Does anybody if it is possible to convert raw logical volumes to jfs2? If so how is it done or where can I find the information to make the conversion. We have an Oracle Db on AIX and it is using raw lv's which we want to convert to jfs2 because the raw devices don't restore correctly from our sysback backup.

Is there an easy way to convert Oracle raw logical volumes on AIX to jfs2?

Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.

sorry 2nd post was made in another thread area. I wanted to make sure it was seen by apps (Oracle) people and AIX people.

Hi,

there is no conversion from raw to jfs2 because jfs2 is basically a rawdevice with a filesystem in it - you have data in your rawdevices - and there's no space for both :slight_smile:

Oracle recommends following way using rman:

Use RMAN to move datafiles from raw devices to file system.

  1. Connect to the database:
$ sqlplus system/manager@orcl
  1. Put the tablespace with the datafile, which should be converted, offline:
SQL> alter tablespace test_ts offline; 
  1. Start rman and connect it to the database:
$ rman nocatalog target rman/rman@orcl
  1. Move the datafile to file system:
RMAN> run { 
2> allocate channel c1 type disk; 
3> copy datafile '/dev/raw1' to '/u01/oradata/orcl/test_ts.dbf'; 
4> } 
  1. Rename the moved datafile:
SQL> alter database rename file '/dev/raw1' to '/u01/oradata/orcl/test_ts.
dbf'; 
  1. Put the tablespace back online:
SQL> alter tablespace test_ts online; 

But be careful ...

If you are using RMAN as the backup tool then a backup after the performed
steps is recommended, because otherwise RMAN treats the copied file as a
backup.

Usually Oracle datafiles are moved from filesystem to raw devices using
the dd command. Using dd is the fastest method to accomplish it. However, it is
necessary to know how many blocks to skip in the raw device, so that the information necessary for the Operating System is not overwritten. The information on how many blocks to skip is different on the different platforms. Using RMAN there's no necessity
to know such platform specific information.

Kind regards
zxmaus