步骤 2 执行以下命令,进入parted分区工具,开始对新增数据盘执行分区操作。 parted 新增数据盘 以新挂载的数据盘“/dev/vdb”为例: parted /dev/vdb 回显类似如下信息: [root@ecs-centos74 ~]# parted /dev/vdb GNU Parted 3.1 Using /dev/vdb Welcome to GNU Parted! Type 'help' to view a list of commands.
步骤 2 执行以下命令,进入parted分区工具,开始对新增数据盘执行分区操作。 parted 新增数据盘 以新挂载的数据盘“/dev/vdb”为例: parted /dev/vdb 回显类似如下信息: [root@ecs-centos74 ~]# parted /dev/vdb GNU Parted 3.1 Using /dev/vdb Welcome to GNU Parted! Type 'help' to view a list of commands.
2.执行以下命令,进入parted分区工具,开始对新增数据盘执行分区操作。parted 新增数据盘以新挂载的数据盘“/dev/vdb”为例:parted /dev/vdb回显类似如下信息:[root@ecs-centos74 ~]# parted /dev/vdbGNU Parted 3.1Using /dev/vdbWelcome to GNU Parted! Type 'help' to view a list of commands.
DB_NAME:表pg_repack_test所在的数据库。 查看清理后的表大小 select pg_size_pretty(pg_relation_size('pg_repack_test')); 常见问题 Q1:报错:“pg_repack failed with error: You must be a superuser to use pg_repack”。 A1:执行pg_repack时加上--no-superuser-check,跳过超级用户检查。