wniming 最近的时间轴更新
wniming

wniming

V2EX 第 597700 号会员,加入于 2022-10-17 12:44:33 +08:00
今日活跃度排名 153
Linux 有办法根据设备号重命名 usb 设备的名称吗?
Linux  •  wniming  •  22 天前  •  最后回复来自 RobinHuuu
19
有没有这样一款能在 Linux 和 windows 之间同步文件夹的软件?
  •  1   
    NAS  •  wniming  •  24 天前  •  最后回复来自 hanssx
    65
    如何看 Hector Martin 退出上游 Linux 内核开发这件事?
  •  1   
    Linux  •  wniming  •  42 天前  •  最后回复来自 junkun
    43
    Linux 如何限制笔记本电脑触摸板的大小?
    Linux  •  wniming  •  52 天前  •  最后回复来自 StevenRCE0
    21
    wniming 最近回复了
    @yanqiyu #6 感谢回复,之前看得不仔细没发现这个 path ,刚才把这个文件删除后再次 scrub ,dmesg 报错比之前少了很多,但还是有一些同样的报错,而且没有 path 告诉我是哪个文件有问题:

    [936404.398809] BTRFS info (device dm-2): scrub: started on devid 1
    [936404.980677] BTRFS error (device dm-2): unable to fixup (regular) error at logical 2290286592 on dev /dev/mapper/develop-btrfs physical 3372417024
    [936404.981100] BTRFS error (device dm-2): unable to fixup (regular) error at logical 2290352128 on dev /dev/mapper/develop-btrfs physical 3372482560
    [936404.981180] BTRFS error (device dm-2): unable to fixup (regular) error at logical 2290417664 on dev /dev/mapper/develop-btrfs physical 3372548096
    [936404.981236] BTRFS error (device dm-2): unable to fixup (regular) error at logical 2290417664 on dev /dev/mapper/develop-btrfs physical 3372548096
    [936405.606635] BTRFS error (device dm-2): unable to fixup (regular) error at logical 2290352128 on dev /dev/mapper/develop-btrfs physical 3372482560
    [936405.763104] BTRFS error (device dm-2): unable to fixup (regular) error at logical 2290352128 on dev /dev/mapper/develop-btrfs physical 3372482560
    [936407.657754] BTRFS error (device dm-2): unable to fixup (regular) error at logical 8891203584 on dev /dev/mapper/develop-btrfs physical 9973334016
    [936408.051643] BTRFS error (device dm-2): unable to fixup (regular) error at logical 9398255616 on dev /dev/mapper/develop-btrfs physical 10480386048
    [936408.052556] BTRFS error (device dm-2): unable to fixup (regular) error at logical 9404088320 on dev /dev/mapper/develop-btrfs physical 10486218752
    [936408.366738] BTRFS error (device dm-2): unable to fixup (regular) error at logical 9404088320 on dev /dev/mapper/develop-btrfs physical 10486218752
    [936423.189046] BTRFS info (device dm-2): scrub: finished on devid 1 with status: 0


    我虚拟机没有特别指定是否启用 directio ,btrfs 也是用默认的设置,应该是开了 cow 的,不过我刚才一查发现 btrfs 的 cow 和 qcow2 的 cow 最好不要同时使用,所以我又尝试把一个 qcow2 格式的磁盘文件删掉,再次 scrub 就没有报错了。
    @newborn 可能是我需求描述的不够让你误解了,我这台机是专门做开发用的,有时候会直接用机箱上的 reset 按钮重启,这个 btrfs 的报错很可能是我这么操作导致的,我硬盘用的是 sn770 ,写入量才几个 TB ,硬件应该没有问题,我只是想找出有问题的文件,想试试把有问题的文件删掉这个报错会不会消失。
    @newborn 应该是 dm-2 吧,我贴出的日志里没有 dm-3 呀
    @newborn 感谢回复,dm-3 是个 lvm 的逻辑卷,我现在只想知道是哪个文件的数据有损坏,加入一个新盘起不了什么作用吧?
    0b47190 前后买了 3 把了,小红点很好用
    @lengrongec 这个要跑起来有点麻烦,至少要做到步骤包括拉取

    https://web.git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/log/?h=kvm-arm64/nv-next-fruit

    这个分支的代码自己编译 asahi linux 的内核,内核参数上加上 kvm-arm.mode=nested ,然后用

    https://web.git.kernel.org/pub/scm/linux/kernel/git/maz/kvmtool.git/log/?h=arm64/nv-6.13

    这个分支的 kvmtool 代码运行 L1 虚拟机,kvmtool 要加上 --nested 选项,另外 L1 虚拟机的内核需要使用 16kb 的页(大多数发行版的内核都是 4kb 页大小构建的,所以要自己编译内核),否则 L1 的 kvm 将不可用。

    可以在 kvmtool 虚拟机里可以再跑一个 qemu 虚拟机,我测试过嵌套的虚拟机的 cpu 性能和裸机差别不大。
    说个冷门一点的,m2 的 macmini 装 asahi linux 后,可以体验 arm64 下的嵌套虚拟化技术,这个 m1 和 m4 都做不了,我是拿这一点安慰自己的
    15 天前
    回复了 kekeabab 创建的主题 求职 求职,大佬们缺搬砖的吗,全国可飞
    加油,我跟你同样的学历,也因为这个关注你挺久了,你的学习能力确实比较强,至少比我强多了,祝你早日找到满意的工作。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3503 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 19ms · UTC 04:59 · PVG 12:59 · LAX 21:59 · JFK 00:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.