博文
RAID 下 ZFS 运维操作
· ☕ 5 分钟
ZFS 不支持在线缩容;本篇主要介绍创建池、换盘、扩容等运维操作。 1. ZFS vdev 类型 mirror 镜像,多块盘互为副本,等价 RAID 1 raidz3 三校验,允许 3 块盘故障 raidz2 双 校验,允许 2 块盘故障,等价 RAID 6 raidz1 单校验,允许 1 块盘故障,等价 RAID 5 striped 条带,无冗余,等价 RAID 0 还可以组合使用: mirror + striped

RAID 下 XFS 运维操作
· ☕ 4 分钟
xfs 文件系统不支持缩容,本篇主要是对 RAID 10 下换盘、扩容进行操作。 1. RAID 状态与盘状态 在 mdadm 中,RAID 状态: clean, 正常 degraded,降级,依然可以读写,但是容错能力降低 reshaping,重组中,扩容、缩容时会出现 resyncing,同步数据中 rec

RAID 下 Btrfs 运维操作
· ☕ 7 分钟
Btrfs 支持在线扩容、缩容、换盘与 RAID 模式转换;本篇主要介绍在 RAID 0/RAID 1/RAID 10/RAID 6 拓扑下创建文件系统、加盘、换盘、缩容及常用运维操作。 1. Btrfs 配置 single:单副本,无冗余,单盘或可多盘聚合。 raid0:条带,无冗余,等价 RAID 0。 raid1:镜像,至少 2 块盘,等

xfs 在各种 RAID 下的性能测试
· ☕ 25 分钟
1. 磁盘基准测试 1.1 4k 随机写 1 2 3 4 5 6 7 8 9 10 11 12 13 14 fio \ --name=4k_randwrite \ --rw=randwrite \ --bs=4k \ --ioengine=libaio \ --direct=1 \ --numjobs=8 \ --iodepth=32 \ --size=20G \ --time_based \ --runtime=120 \ --group_reporting \ --allow_mounted_write=1 \ --filename=/data1/fio-4k-randwrite.dat 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 Starting 8 processes 4k_randwrite: Laying out IO file (1 file / 20480MiB) Jobs: 8 (f=8): [w(8)][100.0%][r=0KiB/s,w=252MiB/s][r=0,w=64.5k IOPS][eta 00m:00s] 4k_randwrite: (groupid=0, jobs=8): err= 0: pid=31269 write: IOPS=65.1k, BW=254MiB/s (267MB/s)(29.8GiB/120004msec) slat (usec): min=2, max=300387, avg=98.81, stdev=642.76

使用 LLaMA-Factory 微调 Qwen3 模型
· ☕ 6 分钟
1. 原始模型测试 启动环境 1 2 3 4 5 6 7 8 9 10 nerdctl run -it \ --gpus all \ --ipc=host \ -p 8000:8000 \ --ulimit memlock=-1 \ --ulimit stack=67108864 \ --name vllm \ --volume /data/models:/data/models \ --entrypoint /bin/bash \ vllm/vllm-openai:v0.10.1.1 后面 vllm 相关的测试,都基于这个环境。 启动服务 1 2 3 4 5 6 export CUDA_VISIBLE_DEVICES=0 python3 -m vllm.entrypoints.openai.api_server \ --model /data/models/Qwen3-0.6B \ --served-model-name /data/models/Qwen3-0.6B \ --host 0.0.0.0 \ --port 8000 测试 1 2 3 4 5 6 7 8 curl -X POST "http://127.0.0.1:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ -d '{ "model": "/data/models/Qwen3-0.6B", "messages": [ {"role": "user",