×

修复n1的docker分区错误的挂载点,解决docker分区空间不足的问题

Falcon 2022-09-16 views:
自动摘要

正在生成中……

n1上的docker 空间严重不足,查看挂载点,明显发现这是两条错误的挂载 ,/dev/mmcblk2p4 没有挂载上去。而把 /dev/mmcblk2p2 (也就是openwrt系统目录)挂载上去了。需要把把旧文件转移并把 /dev/mmcblk2p4 挂载上/mnt/mmcblk2p4。

Xnip2022-09-16_16-33-02  

修复方法是:

mkdir /mnt/tmp

mount -t btrfs /dev/mmcblk2p4 /mnt/tmp

cp -r /mnt/mmcblk2p4/* /mnt/tmp

unmount /mnt/tmp

service dockerd stop

umount /mnt/mmcblk2p4

mount -t btrfs /dev/mmcblk2p4 /mnt/mmcblk2p4/docker

service dockerd start

挂载点正常

Xnip2022-09-16_16-47-41

管理系统页的显示也OK

Xnip2022-09-16_16-47-18

查看挂载点配置文件:cat /etc/config/fstab

config global
	option anon_swap '0'
	option anon_mount '0'
	option auto_swap '1'
	option auto_mount '1'
	option delay_root '5'
	option check_fs '0'

config mount
	option target '/boot'
	option uuid '36C7-A747'
	option enabled '0'

config mount
	option target '/'
	option uuid '31097283-a649-4f7f-9b6e-01e5a4b19013'
	option enabled '0'

config mount
	option target '/mnt/mmcblk2p3'
	option uuid 'dbc589fd-5351-4e6c-92fd-8d7b86c46f6f'
	option enabled '1'

config mount
	option target '/mnt/mmcblk2p4'
	option uuid '481a77f9-3451-489a-b07d-39b1d99703a8'
	option enabled '1'

config mount
	option target '/mnt/sda1'
	option uuid '67E3-17ED'
	option enabled '0'

config mount
	option target '/mnt/sda2'
	option uuid '139fd3ad-c66d-4320-92f9-d265ad9e283f'
	option enabled '1'

config mount
	option target '/mnt/sda3'
	option uuid '86D7-6D98'
	option enabled '1'

config mount
	option target '/mnt/sda4'
	option uuid 'DC34-18F7'
	option enabled '1'

config mount
	option target '/mnt/sda5'
	option uuid 'de98b175-21ad-405d-af54-1f047d2ea8b0'
	option enabled '1'

config swap
	option enabled '1'
	option device '/dev/mmcblk2p3'

 

 

本文收录于