测试环境
##生产环境需谨慎操作
首先先卸载掉挂载的gpfs文件系统
[root@gs02 /]# df -TH
文件系统 类型 容量 已用 可用 已用% 挂载点
devtmpfs devtmpfs 937M 0 937M 0% /dev
tmpfs tmpfs 954M 0 954M 0% /dev/shm
tmpfs tmpfs 954M 11M 944M 2% /run
tmpfs tmpfs 954M 0 954M 0% /sys/fs/cgroup
/dev/mapper/centos-root xfs 19G 5.0G 14G 28% /
/dev/sda1 xfs 1.1G 194M 870M 19% /boot
tmpfs tmpfs 191M 13k 191M 1% /run/user/42
tmpfs tmpfs 191M 0 191M 0% /run/user/0
fs02 gpfs 11G 1.5G 9.3G 14% /data02
fs01 gpfs 11G 1.5G 9.3G 14% /data
#执行命令
mmumont fs01 -a
mmumont fs02 -a
查看nsd的信息
root@gs01 data]# mmlsnsd
File system Disk name NSD servers
------------------------------------------------------------------------------
fs01 nsd02 gs02
fs02 nsd03 gs01
[root@gs01 data]# mmdelfs fs01
All data on the following disks of fs01 will be destroyed:
nsd02
Completed deletion of file system /dev/fs01.
mmdelfs: Propagating the cluster configuration data to all
affected nodes. This is an asynchronous process.
[root@gs01 data]# mmdelfs fs02
All data on the following disks of fs02 will be destroyed:
nsd03
Completed deletion of file system /dev/fs02.
mmdelfs: Propagating the cluster configuration data to all
affected nodes. This is an asynchronous process.
先删除文件系统fs01 fs02
[root@gs01 data]# mmlsnsd
File system Disk name NSD servers
------------------------------------------------------------------------------
(free disk) nsd02 gs02
(free disk) nsd03 gs01
[root@gs01 data]# mmdelnsd nsd02
mmdelnsd: Processing disk nsd02
mmdelnsd: Propagating the cluster configuration data to all
affected nodes. This is an asynchronous process.
[root@gs01 data]# mmdelnsd nsd03
mmdelnsd: Processing disk nsd03
mmdelnsd: Propagating the cluster configuration data to all
affected nodes. This is an asynchronous process.
[root@gs02 /]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 20G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 19G 0 part
├─centos-root 253:0 0 17G 0 lvm /
└─centos-swap 253:1 0 2G 0 lvm [SWAP]
sdb 8:16 0 10G 0 disk
sdc 8:32 0 10G 0 disk
sr0 11:0 1 4.4G 0 rom
[root@gs02 /]#