![我的驱动器映射由于某种原因全部消失了 - 我需要帮助来恢复它们,我真的希望它们和以前一样](https://linux22.com/image/937615/%E6%88%91%E7%9A%84%E9%A9%B1%E5%8A%A8%E5%99%A8%E6%98%A0%E5%B0%84%E7%94%B1%E4%BA%8E%E6%9F%90%E7%A7%8D%E5%8E%9F%E5%9B%A0%E5%85%A8%E9%83%A8%E6%B6%88%E5%A4%B1%E4%BA%86%20-%20%E6%88%91%E9%9C%80%E8%A6%81%E5%B8%AE%E5%8A%A9%E6%9D%A5%E6%81%A2%E5%A4%8D%E5%AE%83%E4%BB%AC%EF%BC%8C%E6%88%91%E7%9C%9F%E7%9A%84%E5%B8%8C%E6%9C%9B%E5%AE%83%E4%BB%AC%E5%92%8C%E4%BB%A5%E5%89%8D%E4%B8%80%E6%A0%B7.png)
我当前的 fstab:
taichi:~:5014> cat /etc/fstab
# /etc/fstab: static file system information.
#
...
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/md126 during installation
UUID=0ab11366-f5f9-4e8c-b288-07ad58f9ec63 / ext4 noatime,errors=remount-ro 0 1
# swap was on /dev/md127 during installation
UUID=af423dc6-3a35-4792-95c8-46fe89261923 none swap sw 0 0
taichi:~:5015>
当前 blkid:
taichi:~:5013> sudo blkid
/dev/sde1: LABEL="elements" UUID="14444121534372898409" UUID_SUB="4273187584474511650" TYPE="zfs_member" PARTLABEL="zfs-487cc9bdeef8765e" PARTUUID="afdc02f4-6e74-f04e-83e5-9b364b468e67"
/dev/sdf1: LABEL="elements" UUID="14444121534372898409" UUID_SUB="17730318547503947876" TYPE="zfs_member" PARTLABEL="zfs-da896a5c635b328d" PARTUUID="75cb5f89-30a0-8b46-952a-2c7cfc1a03d8"
/dev/sdg1: UUID="aad3a28e-916b-897a-f262-281b2e0cd0f5" UUID_SUB="1dcd17e8-e8b1-41c6-8058-c0330bf4f6aa" LABEL="taichi:0" TYPE="linux_raid_member" PARTUUID="1ffa9974-01"
/dev/sdg2: UUID="26e0976a-3393-5062-9e6f-f1156dd5a73e" UUID_SUB="75aed2cd-295e-ff30-9ece-9bce5cdc23dd" LABEL="taichi:1" TYPE="linux_raid_member" PARTUUID="1ffa9974-02"
/dev/md1: UUID="0ab11366-f5f9-4e8c-b288-07ad58f9ec63" TYPE="ext4"
/dev/md0: UUID="af423dc6-3a35-4792-95c8-46fe89261923" TYPE="swap"
/dev/sdh1: UUID="aad3a28e-916b-897a-f262-281b2e0cd0f5" UUID_SUB="bf06280b-5b58-d6fd-1ebd-4ed2a3c630fb" LABEL="taichi:0" TYPE="linux_raid_member" PARTUUID="2bf5d977-01"
/dev/sdh2: UUID="26e0976a-3393-5062-9e6f-f1156dd5a73e" UUID_SUB="b6086774-c63f-779a-5779-de5ea439d077" LABEL="taichi:1" TYPE="linux_raid_member" PARTUUID="2bf5d977-02"
/dev/sdi1: LABEL="vboxstorage" UUID="6231037397559528102" UUID_SUB="14143719065845459927" TYPE="zfs_member" PARTLABEL="zfs-629f05ac800f1dff" PARTUUID="156fca01-b949-f24a-a556-38c41fb41736"
/dev/sdj1: LABEL="extra" UUID="2601105151947821560" UUID_SUB="14619765225988124989" TYPE="zfs_member" PARTLABEL="zfs" PARTUUID="99381a3d-f8eb-1f43-b538-30df7601c6c9"
/dev/sdk1: LABEL="extra" UUID="2601105151947821560" UUID_SUB="10751491033511755793" TYPE="zfs_member" PARTLABEL="zfs" PARTUUID="ed76c528-593c-914d-abec-c951453e9f0b"
...
(lots of loops - I will load if needed)
...
/dev/sde9: PARTUUID="271ceb5c-ec05-dc4d-8ee5-54ffa8110f6e"
/dev/sdf9: PARTUUID="c0698e83-9576-384f-ae87-d3b0cefaca24"
/dev/sdi9: PARTUUID="6a93af32-6d70-c847-a836-e3443a377929"
/dev/sdj9: PARTUUID="c6cc0cf1-2e39-6248-8d4d-2a79de523b1c"
/dev/sdk9: PARTUUID="56451289-6b29-794d-8249-d8ae31519cfa"
答案1
看起来您有一些 zfs 池和一个 linux raid。尝试:
sudo zpool import
记下池的名称,然后在以下命令中将其用作每个池的池名称
sudo zpool import poolname
这应该可以恢复您的部分文件系统。如果您仍然缺少共享,请告知我们。
答案2
sudo zpool 导入元素
这就是解决方案 - 我觉得自己很愚蠢 - 需要记下 zpool 信息,而不是在半夜做这件事