有一个相当大的文件服务器(~85 we )运行xfs文件系统,在Centos 6.9上,我们使用它进行备份。
我们没有空间,所以我增加了10个新的类似驱动器到阵列和重建RAID 6使用Mega管理器,这花了将近两个星期。因此,总容量为150 TB,虚拟驱动器的总容量为135 TB。
我计划使用“拆分”来扩展分区大小:
[root@backup-serv ~]# parted /dev/sdb
GNU Parted 2.1
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Warning: Not all of the space available to /dev/sdb appears to be used, you can fix the GPT to use all of the
space (an extra 14649917440 blocks) or continue with the current setting?
Fix/Ignore? Ignore
Model: LSI SMC3108 (scsi)
Disk /dev/sdb: 150TB
Sector size (logical/physical): 4096B/4096B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 90.0TB 90.0TB 1注意:文件系统不显示任何内容。
我有60 TB的空间,如下所示:
(parted) print free
Model: LSI SMC3108 (scsi)
Disk /dev/sdb: 150TB
Sector size (logical/physical): 4096B/4096B
Partition Table: gpt
Number Start End Size File system Name Flags
24.6kB 1049kB 1024kB Free Space
1 1049kB 90.0TB 90.0TB 1
90.0TB 150TB 60.0TB Free Space它显示有60 TB的自由空间。因此,当我试图展开“分区1”时,会得到以下结果(无法检测到文件系统错误):
(parted) resize
WARNING: you are attempting to use parted to operate on (resize) a file system.
parted's file system manipulation code is not as robust as what you'll find in
dedicated, file-system-specific packages like e2fsprogs. We recommend
you use parted only to manipulate partition tables, whenever possible.
Support for performing most operations on most types of file systems
will be removed in an upcoming release.
Partition number? 1
Start? [1049kB]? 1049kB
End? [90.0TB]? 130.0TB
Error: Could not detect file system.df输出:
[root@backup-serv ~]# df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/Root_VG-Root
ext4 107G 78G 24G 77% /
tmpfs tmpfs 32G 0 32G 0% /dev/shm
/dev/sda1 ext4 870M 154M 672M 19% /boot
/dev/sdb1 xfs 82T 81T 1.2T 99% /export/bak为什么分离不检测文件系统?
发布于 2019-03-28 16:12:45
我想旧版本的分手不是很好。
我在USB上使用了Gparted (最新的分离版本)并引导它。这似乎让它发挥作用!我能够使用"resizepart“扩展分区。
最后,在重新启动文件系统之后,使用"xfs_growfs“展开文件系统。
df输出:
[root@backup-serv ~]# df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/Root_VG-Root
ext4 107G 78G 24G 77% /
tmpfs tmpfs 32G 0 32G 0% /dev/shm
/dev/sda1 ext4 870M 154M 672M 19% /boot
/dev/sdb1 xfs 119T 81T 38T 69% /export/bak发布于 2019-03-27 06:26:41
让我们尝试另一个命令,看看它是否是parted的bug:
lsblk -f或
blkidhttps://serverfault.com/questions/960126
复制相似问题