我购买了专用服务器,他们告诉我我有 2 个 ssds (2x250GB) 但是当我执行 df -h
我懂了
Filesystem Size Used Avail Use% Mounted on
udev 32G 0 32G 0% /dev
tmpfs 6.3G 17M 6.3G 1% /run
/dev/md2 197G 85G 103G 45% /
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/md1 488M 373M 90M 81% /boot
tmpfs 6.3G 0 6.3G 0% /run/user/1001
Run Code Online (Sandbox Code Playgroud)
这是我执行 fdisk -l 时的输出
...
Disk /dev/sdb: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xcddb903b
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 67110911 67108864 32G fd Linux raid autodetect
/dev/sdb2 67110912 68159487 1048576 512M fd Linux raid autodetect
/dev/sdb3 68159488 488395119 420235632 200.4G fd Linux raid autodetect
Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x9867791d
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 67110911 67108864 32G fd Linux raid autodetect
/dev/sda2 67110912 68159487 1048576 512M fd Linux raid autodetect
/dev/sda3 68159488 488395119 420235632 200.4G fd Linux raid autodetect
...
Run Code Online (Sandbox Code Playgroud)
和
# sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME FSTYPE SIZE MOUNTPOINT LABEL
sda 232.9G
??sda1 linux_raid_member 32G rescue:0
? ??md0 swap 32G [SWAP]
??sda2 linux_raid_member 512M rescue:1
? ??md1 ext3 511.4M /boot
??sda3 linux_raid_member 200.4G rescue:2
??md2 ext4 200.3G /
sdb 232.9G
??sdb1 linux_raid_member 32G rescue:0
? ??md0 swap 32G [SWAP]
??sdb2 linux_raid_member 512M rescue:1
? ??md1 ext3 511.4M /boot
??sdb3 linux_raid_member 200.4G rescue:2
??md2 ext4 200.3G /
Run Code Online (Sandbox Code Playgroud)
有人可以向我解释这里发生了什么......:/
我让这台服务器运行了大约半年,但我今天注意到了这一点,可以解决这个问题,这样我就可以使用所有 500gb 而不丢失磁盘上的当前数据吗?
use*_*274 10
您的两个 SSD使用(linux 软件 raid)驱动程序进行镜像md
,因此如果其中一个出现故障,您仍将拥有您的数据。您可以重新格式化驱动器并拥有 500G 的存储空间(如果您的提供商允许并提供帮助),但是您将 (1) 如果不想丢失数据,则需要将其全部备份到某个地方,以及 (2) 永久丢失镜像的安全性。
就个人而言,我认为这是您的托管服务提供商的一个积极特征,而不是一个问题,特别是如果他们在您遇到数据丢失之前监控驱动器状态并更换失败的 raid 成员。查看您的托管协议以了解详细信息。