AIX命令创建JFS2的LV及FS(非smitty交互模式)

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不要分配

原文地址:http://blog.51cto.com/sf1314/2103054

时间: 2024-08-08 19:45:06

AIX命令创建JFS2的LV及FS(非smitty交互模式)的相关文章

aix 下创建vg和lv

1.LVM背景介绍 在AIX中,磁盘管理策略是一种Logical Volume Management的方法.简单的说,就是将存储划分为物理卷PV(Phsical Volume).逻辑卷组VG(Logical Volume Group)和逻辑卷LV(Logical Volume)三个层次进行管理. 物理卷是我们最直观的磁盘或者分区,操作系统中可能有多种存储设备.在LVM中,都将其视为物理卷对象(PV). 若干物理卷可以划归到一个逻辑组织中进行统一管理,这就是逻辑卷组(Logical Volume

AIX中PV,VG,LV及FS常用相关命令

1.PV常用相关命令 1)lsdev:列出ODM(Object Data Manager)中的设备. 2)chdev:修改一个AIX设备的属性. 3)mkdev:创建一个AIX设备. 4)chpv:修改PV的状态和属性. 5)lspv:查看AIX中PV的相关信息. 6)migratepv:将一个PV中的PP(物理分区)迁移到另一个PV.   2.VG常用相关命令 1)mkvg:创建新VG. 2)extendvg:扩展现有VG. 3)reducevg:缩小现有VG. 4)chvg:修改现有VG的属

KVM真机服务器网卡调整,命令行创建虚拟机,LV快照虚拟机

KVM真机服务器网卡调整 [使用隔离网段] 1)将网卡 br0 设为DHCP获取地址 [[email protected] ~]# service  network  stop [[email protected] ~]# vim  /etc/sysconfig/network-scripts/ifcfg-eth0 .. .. BOOTPROTO=dhcp .. .. [[email protected] ~]# service network start 2)添加虚拟网卡 network1 打

AIX脚本创建裸设备

1.批量建立redolog裸设备脚本(非条带)     #!/usr/bin/ksh   i=1   while(($i<=9));   do      mklv  -y  lv_redo"00$i"_1g  -t raw -w n -r n -u 1 oltpvg 1     i=$(expr $i + 1);   done               2.建立stripesize为1M,stripe width 为14 ,lv大小为8G的裸设备,          hdisk

KVM虚拟机命令行管理和LV M的高级使用

KVM虚拟机的常用命令: virsh 命令工具的基本操作virsh                 //直接进交互模式virsh  nodeinfo              //查看KVM节点(服务器)信息virsh  list              //列出正在运行的虚拟机virsh  list  --all              //列出所有虚拟机(包括未启动的)virsh  dominfo  虚拟机名称          //查看指定虚拟机的信息virsh  start  虚拟机

AIX下创建C++共享库

1.创建一个简单的so库文件,头文件和cpp文件如下: test.h: 1 #ifndef __TEST_H__ 2 #define __TEST_H__ 3 4 #include <iostream> 5 6 class test 7 { 8 public: 9 int printHello(); 10 }; 11 12 #endif test.cpp: 1 #include "test.h" 2 3 int test::printHello() 4 { 5 std::c

maven命令创建项目

1)创建一个Project mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false mvn archetype:generate 固定格式 -DgroupId 组织标识(包名) -DartifactId 项目名称 -DarchetypeArtifactId   指定A

RHCS之用css_tool命令创建HA集群及创建gfs2集群文件系统

准备环境 node1:192.168.139.2 node2:192.168.139.4 node4:192.168.139.8 node5:192.168.139.9 node1 作为target端 node2 node4 node5 作为initiator端 并且将node2 node4 node5安装cman+rgmanager后配置成一个三节点的RHCS高可用集群,因为gfs2为一个集群文件系统,必须借助HA高可用集群将故障节点Fence掉,及借助Message Layer进行节点信息传

Linux上利用nmcli命令创建网络组

网络组:是将多个网卡聚合在一起方法,从而实现冗错和提高吞吐量 网络组不同于旧版中bonding技术,提供更好的性能和扩展性 网络组由内核驱动和teamd守护进程实现. 下面我们以CentOS7系统为环境,演示下如何在Linux系统上利用nmcli命令创建网络组 nmcli connection add con-name team0 type team ifname team0 config '{"runner":{"name":"activebackup&