linux怎么查看gpfs版本
1个回答
展开全部
GPFS
安装
3.1
、建立集群
3.1.1
、创建集群文件系统
node1
mmcrcluster -n /tmp/gpfs_node -p node1 -s node2 -r /usr/bin/ssh -R /usr/bin/scp
命令显示:
mmcrcluster: Processing node 1
mmcrcluster: Processing node2
mmcrcluster: Command successfully completed
mmcrcluster: Propagating the cluster configuration data to all affected nodes.
This is an
asynchronous process.
3.1.2
、显示集群文件系统
mmlscluster
GPFS cluster information
========================
GPFS cluster name:
node1
GPFS cluster id:
13882348004399855353
GPFS UID domain:
node1
Remote shell command:
/usr/bin/ssh
Remote file copy command:
/usr/bin/scp
GPFS cluster configuration servers:
-----------------------------------
Primary server:
node1
Secondary server:
Node
Daemon node name
IP address
Admin node name
Designation
1
node1
10.3.164.24
node1
quorum-manager
2
node2
10.3.164.25
node2
quorum-manager
3.2
、创建
NSD
3.2.
、使用
mmcrnsd
创建
NSD
mmcrnsd -F /tmp/gpfs_disk -v yes
命令显示
:
mmcrnsd: Processing disk hdb
mmcrnsd: Propagating the cluster configuration data to all
affected nodes.
This is an asynchronous process.
3.2.2
、显示
NSD
mmlsnsd
–
m
Disk name
NSD volume ID
Device
Node name
Remarks
-------------------------------------------------------------------------------
gpfs1nsd
C0A801F54A9B3732
/dev/hdb
node1
primary node
gpfs1nsd
C0A801F54A9B3732
/dev/hdb
node2
3.3
、启动
GPFS
文件系统
mmstartup
–
a
Mon Aug 31 10:37:48 CST 2009: mmstartup: Starting GPFS ...
3.4
、查看
GPFS
文件系统状态
mmgetstate -a
Node number
Node name
GPFS state
------------------------------------------
1
node1
active
2
node2
active
3.5
、建立文件系统
#mkdir /gpfs
建立挂载点
#./bin/mmcrfs /gpfs gpfsdev -F /tmp/gpfs_disk -A yes -B 1024K -v yes
命令显示:
The following disks of gpfsdev will be formatted on node node1:
gpfs1nsd: size 2241856 KB
Formatting file system ...
Disks up to size 2 GB can be added to storage pool 'system'.
Creating Inode File
Creating Allocation Maps
Clearing Inode Allocation Map
Clearing Block Allocation Map
Completed creation of file system /dev/gpfsdev.
mmcrfs: Propagating the cluster configuration data to all
affected nodes.
This is an asynchronous process.
3.6
、检查文件系统
#cat /etc/fstab
………………………
/dev/gpfsdev
/gpfs
gpfs
rw,mtime,atime,dev=gpfsdev,autostart 0 0
Df-g
/dev/hdb
/gpfs
安装
3.1
、建立集群
3.1.1
、创建集群文件系统
node1
mmcrcluster -n /tmp/gpfs_node -p node1 -s node2 -r /usr/bin/ssh -R /usr/bin/scp
命令显示:
mmcrcluster: Processing node 1
mmcrcluster: Processing node2
mmcrcluster: Command successfully completed
mmcrcluster: Propagating the cluster configuration data to all affected nodes.
This is an
asynchronous process.
3.1.2
、显示集群文件系统
mmlscluster
GPFS cluster information
========================
GPFS cluster name:
node1
GPFS cluster id:
13882348004399855353
GPFS UID domain:
node1
Remote shell command:
/usr/bin/ssh
Remote file copy command:
/usr/bin/scp
GPFS cluster configuration servers:
-----------------------------------
Primary server:
node1
Secondary server:
Node
Daemon node name
IP address
Admin node name
Designation
1
node1
10.3.164.24
node1
quorum-manager
2
node2
10.3.164.25
node2
quorum-manager
3.2
、创建
NSD
3.2.
、使用
mmcrnsd
创建
NSD
mmcrnsd -F /tmp/gpfs_disk -v yes
命令显示
:
mmcrnsd: Processing disk hdb
mmcrnsd: Propagating the cluster configuration data to all
affected nodes.
This is an asynchronous process.
3.2.2
、显示
NSD
mmlsnsd
–
m
Disk name
NSD volume ID
Device
Node name
Remarks
-------------------------------------------------------------------------------
gpfs1nsd
C0A801F54A9B3732
/dev/hdb
node1
primary node
gpfs1nsd
C0A801F54A9B3732
/dev/hdb
node2
3.3
、启动
GPFS
文件系统
mmstartup
–
a
Mon Aug 31 10:37:48 CST 2009: mmstartup: Starting GPFS ...
3.4
、查看
GPFS
文件系统状态
mmgetstate -a
Node number
Node name
GPFS state
------------------------------------------
1
node1
active
2
node2
active
3.5
、建立文件系统
#mkdir /gpfs
建立挂载点
#./bin/mmcrfs /gpfs gpfsdev -F /tmp/gpfs_disk -A yes -B 1024K -v yes
命令显示:
The following disks of gpfsdev will be formatted on node node1:
gpfs1nsd: size 2241856 KB
Formatting file system ...
Disks up to size 2 GB can be added to storage pool 'system'.
Creating Inode File
Creating Allocation Maps
Clearing Inode Allocation Map
Clearing Block Allocation Map
Completed creation of file system /dev/gpfsdev.
mmcrfs: Propagating the cluster configuration data to all
affected nodes.
This is an asynchronous process.
3.6
、检查文件系统
#cat /etc/fstab
………………………
/dev/gpfsdev
/gpfs
gpfs
rw,mtime,atime,dev=gpfsdev,autostart 0 0
Df-g
/dev/hdb
/gpfs
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询