其中等待的那个过程非常非常漫长,比拜登那漫长而响亮的屁要漫长的多,建议睡觉前运行,睡醒了可能会做好。
最终结果如下:
1、合并存储 删除local-lvm存储空间
lvremove lvremove pve/data lvextend -l +100%FREE -r pve/root
2、web界面删除local-lvm
数据中心-存储-删除local-lvm 编辑local,内容里添加 磁盘映像和容器
不幸的是,在从 ext4 迁移到 ZFS 之后,我发现k3s由于缺少对overlayfsZFS 的支持而导致崩溃。
在解决这个问题之前,我升级到 Debian bullseye。
k3s
目前不支持 ZFS 快照程序。可以通过三种方法解决此问题:
containerd
支持 ZFS)。然而,我就没那么幸运了,几个小时后我就放弃了。使用native
snapshotter,它速度较慢并且消耗更多磁盘(将产生很多重复文件),但它可以工作。
/etc/systemd/system/k3s.service
并添加--snapshotter native
到k3s server
项目之后。我们将利用 ZFS 的 ZVOL 功能来创建一个 ext4 卷以用作 overlayfs 的后端。ZVOL 是 ZFS 可以向系统公开的块设备(与作为 ZFS 文件系统的数据集相反)。这些 ZVOL 可以像普通块设备一样使用:我们将创建其中一个,用 ext4 格式化它并用它来托管 k3s agent目录。
# use zfs list see the zfs root path name and the space of disk, in my server which on PVE7 it's "rpool"
zfs list
# Create a sparse (-s) zvol (-V).
# "Sparse" means that the volume will be allocated as data is written into the
# volume. So this ZVOLs will grow over time, when needed, until 90G
zfs create -s -V 90GB rpool/k3s-agent
# Format the ZVOL as ext4
mkfs.ext4 /dev/zvol/rpool/k3s-agent
# Now you nee
之前用卷组的方法也可以,而且其实性能是一样的。
此方法只适用于Linux,而windows上应该是没办法的,至少我没想到什么办法通过DD的方式来整个软raid 0出来。
过程如下:
其中等待的那个过程非常非常漫长,比拜登那漫长而响亮的屁要漫长的多,建议睡觉前运行,睡醒了可能会做好。
最终结果如下:
mv /etc/apt/sources.list /etc/apt/sources.list.old
# 全部复制后,直接粘贴并按下回车执行 cat > /etc/apt/sources.list << EOF deb http://deb.debian.org/debian/ bullseye main contrib non-free deb-src http://deb.debian.org/debian/ bullseye main contrib non-free deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free deb-src http://deb.debian.org/debian/ bullseye-updates main contrib non-free deb http://deb.debian.org/debian/ bullseye-backports main contrib non-free deb-src http://deb.debian.org/debian/ bullseye-backports main contrib non-free deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-free deb-src http://deb.debian.org/debian-security/ bullseye-security main contrib non-free EOF
cat > /etc/apt/sources.list << EOF deb http://mirrors.tencentyun.com/debian/ bullseye main contrib non-free deb-src http://mirrors.tencentyun.com/debian/ bullseye main contrib non-free deb http://mirrors.tencentyun.com/debian/ bullseye-updates main
修改 /etc/network/interfaces 添加如下
#号后面是注释文字 auto eth0 #开机自动激活 iface eth0 inet static #静态IP address 192.168.0.56 #本机IP netmask 255.255.255.0 #子网掩码 gateway 192.168.0.254 #路由网关 #因为我是通过路由上网的,所以配置为静态IP和网关
如果是用 DHCP 自动获取,请在配置文件里添加如下:
iface eth0 inet dhcp
#IPV6静态地址配置 auto eth0 #开机自动激活 iface eth0 inet6 static pre-up modprobe ipv6 address 2607:f0d0:2001:000a:0000:0000:0000:0002 #本机IPv6 netmask 64 #子网掩码网段 gateway 2607:f0d0:2001:000a:0000:0000:0000:0001 #网关IPv6
# IPv4专用 echo "nameserver 8.8.8.8" >> /etc/resolv.conf # IPv6专用 echo "nameserver 2001:4860:4860::8888" >> /etc/resolv.conf #请设置为你当地的DNS
到这里配置好以后,重启一下网络。
service networking restart
ifup 命令 用于激活指定的网络接口。
# 启动网卡eth1 ifup eth1
ifdown 命令 用于禁用指定的网络接口。
# 停止网卡eth1 ifdown eth1
问题描述:
配置完 /etc/networking/interfaces 后,使用 /etc/init.d/networking restart 出现启动失败,根据提示输入 systemctl status networking.service 发现不认识 /etc/networking/interfaces 中配置的虚拟网卡 (或者是因为虚拟机的重新移动导致的设备不匹配问题等)
解决方法:
首先可以查看 etc/udev/rules.d/70-persistent-net.rules 是否存在,如果存在,则删
最新一台RackNerd的美国VPS宝塔面板,页面的中文都突然乱码不能正常显示,不论的重启还是修复都没有效果。
附上 Ubuntu、Debian 系统的修复方法:
apt install locales -y dpkg-reconfigure locales
在语言选择界面通过键盘【上】【下】箭头移动,找到并使用【空格】进行勾选此语言:en_US.UTF8
,之后按【回车键】确定。
进入下一个界面,仍然选择 en_US.UTF8后再次按下【回车键】。
稍等片刻等待系统重新生成相关编码的文字。
生成完成后,使用以下命令重启宝塔面板:
bt 1
重新打开面板的后台网页,乱码消失中文都恢复正常。
目前这个需求已经有人开发了工具,可以直接结合Proxmox VE 内部的备份工具,可以在Backup Log 中看到Rclone 的相关Log,搭配Proxmoe VE 内建CRON 自动备份到各种网路空间,非常方便:
在Proxmox VE 中以root 身份登入,直接使用指令安装rclone
apt update apt install rclone -y
或到Rclone 的官网下载安装:
请务必仔细跟着设定,或是你自己去研究rclone 的config
# rclone config 2021/10/08 02:03:49 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults No remotes found - make a new one n) New remote s) Set configuration password q) Quit config n/s/q> n name> gd-backup_crypt # 务必使用这个名字,或是之后改脚本 Type of storage to configure. Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value ~~ 15 / Google Drive \ "drive" ~~ Storage> 15 Google Application Client Id Setting your own is recommended. See https://rclone.org/drive/#making-your-own-client-id for how to create your own. If you leave this blank, it will use an internal key which is low performance. Enter a string value. Press Enter for the default (""). client_id> 123456789-xxx