使用ubuntu22.04.4部署,使用11.0.6X86安装包,服务器硬盘实际有600G,但是用命令查询只有98G的空间,请问如何解决硬盘空间问题。
您好,这个应该是与seafile部署没有关系的,您可以检查下磁盘的分区信息是否正常,是否有其他分区未挂载
我通过命令查询,显示硬盘有600G,但是只用到了100G,请问该如何处理,查询的信息如下:
root@nwwangpan:~# df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 3.2G 1.7M 3.2G 1% /run
/dev/mapper/ubuntu–vg-ubuntu–lv 98G 59G 35G 64% /
tmpfs 16G 8.0K 16G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/sda2 2.0G 150M 1.7G 9% /boot
tmpfs 3.2G 4.0K 3.2G 1% /run/user/1000
root@nwwangpan:~# du -sh
104M .
root@nwwangpan:~# fdisk -l
Disk /dev/loop0: 63.91 MiB, 67014656 bytes, 130888 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop1: 86.99 MiB, 91213824 bytes, 178152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop2: 40.43 MiB, 42393600 bytes, 82800 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sdb: 279.37 GiB, 299966445568 bytes, 585871964 sectors
Disk model: LOGICAL VOLUME
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xcabe1717
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 209714557 209712510 100G 7 HPFS/NTFS/exFAT
/dev/sdb2 209715200 585867263 376152064 179.4G 7 HPFS/NTFS/exFAT
Disk /dev/sda: 279.37 GiB, 299966445568 bytes, 585871964 sectors
Disk model: LOGICAL VOLUME
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 3A26BAB7-6E8E-4959-83F2-61AB13A4E343
Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 4198399 4194304 2G Linux filesystem
/dev/sda3 4198400 585869311 581670912 277.4G Linux filesystem
Disk /dev/mapper/ubuntu–vg-ubuntu–lv: 100 GiB, 107374182400 bytes, 209715200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
root@nwwangpan:~#
root@nwwangpan:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 63.9M 1 loop /snap/core20/2105
loop1 7:1 0 87M 1 loop /snap/lxd/27037
loop2 7:2 0 40.4M 1 loop /snap/snapd/20671
sda 8:0 0 279.4G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 2G 0 part /boot
└─sda3 8:3 0 277.4G 0 part
└─ubuntu–vg-ubuntu–lv 252:0 0 100G 0 lvm /
sdb 8:16 0 279.4G 0 disk
├─sdb1 8:17 0 100G 0 part
└─sdb2 8:18 0 179.4G 0 part
sr0 11:0 1 1024M 0 rom
应该可以使用resize2fs
命令来更新文件系统的大小,或者将剩余空间挂载到目录
扩展下逻辑卷就行了
请如何输入具体的命令。