The bare device created in AIX is the logical volume in AIX.
The creation method is as follows:
Syntax: mklv-t raw-y [lvname] [vgname] [LPs]
For example, when creating 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 _ * The Block devices corresponding to all the logical volumes just created
# Ls-alt/dev/rlv _ * The character devices corresponding to all created logical volumes
Set all character devices to oracle: oinstall owner
# Chown oracle: oinstall/dev/rlv _*
Set the device permission to 700 for all characters
Chmod 700/dev/rlv _*
Use ls-alt/dev/rlv _ * to check whether the change is correct.
Note: There are some problems when using the above method to create a logical volume. When using such a logical volume, ORALCE skips the use of the first data block (called Offset. You can use the-t o parameter on AIX to block the offset.
Syntax: mklv-y [lvname]-t o [vgname] [PPs]
For example:
Mklv-t o-y lv_systems datavg 3