火星博客

这是来自火星的博客

系统备份

2019 02/26 周二 - No Comments
Tags: ,
Posted in 码农场

一、先查询系统盘和优盘使用情况

fdisk -l
lsblk

二、创建mnt下的子目录

dd if=/dev/nvme0n1 of=/mnt/sdf/pve_lede_backup.img bs=1440k

三、恢复到系统盘

dd if=/mnt/sdf/pve_lede_backup.img of=/dev/nvme0n1

一、修复软件升级源报错

1.注释掉不可用源

nano /etc/apt/sources.list.d/pve-enterprise.list

注释掉

#deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise

2.手动修复升级

echo "deb http://download.proxmox.com/debian/pve stretch pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
wget http://download.proxmox.com/debian/proxmox-ve-release-5.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg
apt update && apt dist-upgrade

二、修复订阅报错

nano /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
if (data.status !== 'Active') {

替换为

if (false) {

三、修复启动时候的driver ‘pcspkr’ is already registered,aborting报错

使用命令:

dmesg |grep -i 'lookup'

查看信息表。

[ 0.000000] ACPI Error: [\_SB_.PCI0.XHC_.RHUB.HS11] Namespace lookup failure, AE_NOT_FOUND (20170831/dswload-210)
[ 0.000000] ACPI Exception: AE_NOT_FOUND, During name lookup/catalog (20170831/psobject-252)
echo "blacklist snd-pcsp" >> /etc/modprobe.d/blacklist.conf

1.制作proxmox ve虚拟机,引导盘:传送门

2.建立虚拟机。这里需要注意的选项:
上传引导盘img后,挂载为sata0硬盘:

qm importdisk 101 /var/lib/vz/images/101/synoboot.img local-lvm

sata1随便分配一个空白硬盘,待装完系统后删除。
scsi控制器选用默认的LSI53c895a,传统bios方式启动,切记不能用uefi方式;硬盘0挂载sata最多只支持6块硬盘(经测试推荐), scsi支持12块,virtio则支持无限多块;

3.使用winscp登录虚拟机,上传相关synoboot.img文件到/var/lib/vz/images/{VM_ID}/

3.挂载硬盘:

qm set 101 --sata1 /dev/disk/by-id/ata-TOSHIBA-TR200_58IB706QK3US 
&& qm set 101 --sata2 /dev/disk/by-id/ata-TOSHIBA-TR200_58IB706HK3US 
&& qm set 101 --sata3 /dev/disk/by-id/ata-TOSHIBA-TR200_58IB7077K3US 
&& qm set 101 --sata4 /dev/disk/by-id/ata-TOSHIBA-TR200_58IB706PK3US 
&& qm set 101 --sata5 /dev/disk/by-id/ata-TOSHIBA-TR200_58IB707FK3US

Read More…