A bare device created in Aix is a logical volume in Aix
The creation method is as follows:
Syntax: Mklv-t raw-y [Lvname] [vgname] [LPs]
For example, to create a bare device required by Oracle:
Mklv-t raw-y Lv_sysaux Datavg 3
Mklv-t raw-y lv_systems aux datavg 3
Mklv-t raw-y LV_CTL1 Datavg 1
Mklv-t raw-y LV_CTL2 Datavg 1
Mklv-t raw-y lv_redo1 Datavg 1
Mklv-t raw-y Lv_redo2 Datavg 1
Mklv-t raw-y lv_undotbs01 Datavg 3
Mklv-t raw-y LV_TEMP01 Datavg 2
Mklv-t raw-y lv_users01 datavg2
Mklv-t raw-y LV_SPFILEORCL Datavg 1
Mklv-t raw-y LV_PWDORCL Datavg 1
# ls-alt/dev/lv_* will find the block device corresponding to all the logical volumes just created
# ls-alt/dev/rlv_* will find the character device corresponding to all the logical volumes just created
Set all character devices as Oracle:oinstall owners
# chown Oracle:oinstall/dev/rlv_*
Set all character device permissions to 700
chmod 700/dev/rlv_*
Use ls-alt/dev/rlv_* to see if the changes are correct.
Note: There are some problems with creating a logical volume using the above method, which will skip the first block of data (called offset) when using such a logical volume Oralce. You can use the-t o parameter to mask offsets on AIX.
Syntax: mklv-y [lvname]-T O [vgname] [PPs]
For example:
Mklv-t o-y Lv_systems Datavg 3
The bare device created in Aix is the logical volume for Oracle in Aix