I'm getting some difficulties to create a file system on an AIX server. In Linux the task is easy and takes four commands, but I cannot figure out how to do it in AIX.
On Linux I'd do the following:
lvcreate -L 6G -n oracle_rec_sei data_vg mkfs -t ext3 /dev/data_vg/oracle_rec_sei mkdir -p /appli/oracle/REC_SEI mount /dev/data_vg/oracle_rec_sei /appli/oracle/REC_SEI
On AIX I am trying with the following commands but in this case there isn't a volume group defined. The commands I've found are giving me errors according to the absence of a volume group.
I'm trying to create a filesystem of 0.25G with this commands:
mklv -y lvoractl01HIST -c 1 jfs2 2 --> 2 blocks of 127Mb crfs -v jfs2 -d /dev/lvoractl01 -m /appli2/oracle/AGEV/oractl01 -a agblksize='4096' mount /dev/lvoractl01AGEV
I obtained numerous errors with the first command (
mklv -y lvoractl01HIST -c 1 jfs2 2) because it needs the definition of a volume group.
What are the steps to create a volume group, a logical volume and a file system (all of a given size) on an AIX host?