![ZFS,Ubuntu 18.04-最近写入的数据丢失](https://linux22.com/image/1205205/ZFS%EF%BC%8CUbuntu%2018.04-%E6%9C%80%E8%BF%91%E5%86%99%E5%85%A5%E7%9A%84%E6%95%B0%E6%8D%AE%E4%B8%A2%E5%A4%B1.png)
我有一些音频文件被复制到 ZFS 文件系统,但是用 VLC 打开它们几分钟后,文件和 VLC 崩溃了,目录中没有任何音频文件。
当发生这种情况时,我意识到正在进行清理,并且后台还有另一个用户会话。故障发生后,从 GNOME 系统监视器检查,RAM 使用量显然已达到 RAM 限制(16GB 中为 10.xGB)。
该池是 RAIDZ2 池,仅存储数据。池称为“数据”,卷称为“木”。Ubuntu 18.04 位于单独的单个磁盘上。顺便说一句,我没有交换分区。
该机器可用作 NAS 和台式电脑。它有 4 个 2TB WD Red HDD,16GB ECC 无缓冲 RAM。
以下是输出apt list --installed *zfs*
:
Listing... Done
libvirt-daemon-driver-storage-zfs/bionic-updates,now 4.0.0-1ubuntu8.5 amd64 [installed]
libzfs2linux/bionic-updates,now 0.7.5-1ubuntu16.4 amd64 [installed,automatic]
zfs-auto-snapshot/bionic,bionic,now 1.2.4-1 all [installed]
zfs-dkms/bionic-updates,bionic-updates,now 0.7.5-1ubuntu16.4 all [installed]
zfs-zed/bionic-updates,now 0.7.5-1ubuntu16.4 amd64 [installed,automatic]
zfsutils-linux/bionic-updates,now 0.7.5-1ubuntu16.4 amd64 [installed]
以下是输出uname -srvp
:
Linux 4.15.0-38-generic #41-Ubuntu SMP Wed Oct 10 10:59:38 UTC 2018 x86_64
以下是输出zfs get all data/wood
:
NAME PROPERTY VALUE SOURCE
data/wood type filesystem -
data/wood creation Tue Oct 2 20:18 2018 -
data/wood used 92.8G -
data/wood available 2.41T -
data/wood referenced 92.4G -
data/wood compressratio 1.06x -
data/wood mounted yes -
data/wood quota none default
data/wood reservation none default
data/wood recordsize 128K default
data/wood mountpoint /home/wood inherited from data
data/wood sharenfs off default
data/wood checksum on default
data/wood compression lz4 inherited from data
data/wood atime off inherited from data
data/wood devices on default
data/wood exec on default
data/wood setuid on default
data/wood readonly off default
data/wood zoned off default
data/wood snapdir hidden default
data/wood aclinherit restricted default
data/wood createtxg 31 -
data/wood canmount on default
data/wood xattr on default
data/wood copies 1 default
data/wood version 5 -
data/wood utf8only off -
data/wood normalization none -
data/wood casesensitivity sensitive -
data/wood vscan off default
data/wood nbmand off default
data/wood sharesmb off default
data/wood refquota none default
data/wood refreservation none default
data/wood guid 11841622045429837125 -
data/wood primarycache all default
data/wood secondarycache all default
data/wood usedbysnapshots 418M -
data/wood usedbydataset 92.4G -
data/wood usedbychildren 0B -
data/wood usedbyrefreservation 0B -
data/wood logbias latency default
data/wood dedup off default
data/wood mlslabel none default
data/wood sync standard default
data/wood dnodesize legacy default
data/wood refcompressratio 1.06x -
data/wood written 5.73M -
data/wood logicalused 98.8G -
data/wood logicalreferenced 98.3G -
data/wood volmode default default
data/wood filesystem_limit none default
data/wood snapshot_limit none default
data/wood filesystem_count none default
data/wood snapshot_count none default
data/wood snapdev hidden default
data/wood acltype off default
data/wood context none default
data/wood fscontext none default
data/wood defcontext none default
data/wood rootcontext none default
data/wood relatime off default
data/wood redundant_metadata all default
data/wood overlay off default
我还能恢复这些文件吗?