首页 > 数据库 > > 数据库管理工具-gs_mount
当一体机磁盘空间不足,希望增大磁盘空间时,使用插盘扩容,将插入的磁盘挂载到指定目录。
gs_mount [-M MOUNTPATH] [-l LOGFILE]执行该命令需一次性插入6张磁盘,本命令会将其组成两个raid5,并挂载到两个路径。
物理磁盘组成的 raid5 的挂载路径(必须指定两个路径)。
默认路径为 "/opt/huawei/gaussdb/sdd" 和 "/opt/huawei/gaussdb/sde"
指定日志文件名及路径。在内部会自动给日志名添加一个时间戳。
默认日志路径为 /tmp/gs_mount/gs_mount.log
显示帮助信息。
显示版本号信息。
[root@plat1 script]# gs_mount
Get all existing disks.
Successfully get all existing disks.
Grouping physical devices with raid5.
Successfully grouping physical devices with raid5.
Create mount paths.
Successfully create mount paths.
Get newly appearing disks.
Successfully get newly appearing disks.
Start mount disks.
Format the system of disk '/dev/sdd' with ext4.
Successfully format the system disk of '/dev/sdc' with ext4.
Mount the disk of '/dev/sdd' on '/opt/huawei/gaussdb/sdd'.
Successfully mount the disk of '/dev/sdd' on '/opt/huawei/gaussdb/sdd'.
Format the system of disk '/dev/sde' with ext4.
Successfully format the system disk of '/dev/sde' with ext4.
Mount the disk of '/dev/sde' on '/opt/huawei/gaussdb/sde'.
Successfully mount the disk of '/dev/sde' on '/opt/huawei/gaussdb/sde'.
Successfully mount all disks.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69959250/viewspace-3119589/ ,如需转载,请注明出处,否则将追究法律责任。