AIX命令创建JFS2的LV及FS  


    

下面命令是创建一个2g逻辑卷及在此卷上创建jfs2的文件系统,并挂载,并配置


系统自动挂载


#mkdir /databack


#mklv -t jfs2 -y lv_databack datavg 2g


-t 为逻辑卷类型


-y为逻辑卷名字


datavg是指定卷组


2g是逻辑卷的大小



#crfs -v jfs2 -d lv_databack -A yes -m /databack


-v 为文件系统的类型


-d为逻辑卷名字


-A 为系统重启后自动挂载


-m为挂载的目录



#mount /databack 

#df -g


 


使用smitty jfs2创建文件系统时出现如下问题就需要手动创建逻辑卷来解决


Command: failed        stdout: yes           stderr: no


Before command completion, additional instructions may appear below.


The distribution of this command (20) failed on one or more passive nodes.

0516-020 lcreatelv: Logical volume name or minor number already

        in use.

0516-822 mklv: Unable to create logical volume.

crfs: 0506-972 Cannot create logical volume for file system.


------------------------------------------------------------------

Command: failed        stdout: yes           stderr: no


Before command completion, additional instructions may appear below.


0516-404 allocp: This system cannot fulfill the allocation request.

      There are not enough free partitions or not enough physical volumes

      to keep strictioness and satisfy allocation requests. The command 

     should be retried with different allocation characreristics.

0516-822 mklv: Unable to create logical volume.

crfs: 0506-972 Cannot create logical volume for file system.

在smitty fs创建文件系统的时候报错,说明smitty mklv中的Number of LOGICAL PARTITIONS中不能把smitty mkvg中的VG全部分配完

(lsvg oradatvg查看对应oradatavg中FREE PPS可用的PPS)

 pps不要分配完,不然log没法创建,留几个pps不要分配