将 RAID1 虚拟化为 proxmox 虚拟机

将 RAID1 虚拟化为 proxmox 虚拟机

我有标准的物理机,它是bacula的Director。这意味着它只保存配置和一些数据。

是否有虚拟化物理机以在 proxmox 上创建虚拟 qemu 机的最佳实践?

我在想我能做的最好的事情就是克隆配置和应用程序,但是是否有可能使用dd或任何类似的工具来进行位复制并在虚拟机上运行它,即使物理机上有 RAID 1?

突袭类型是mdadm

已安装的文件系统(输出mount | grep '^/dev'):

/dev/md2 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
/dev/md0 on /boot type ext4 (rw,relatime,data=ordered)

mdadm --query --detail /dev/md{0,2}

/dev/md0:
        Version : 1.2
  Creation Time : Thu Aug 23 20:10:05 2018
     Raid Level : raid1
     Array Size : 975296 (952.44 MiB 998.70 MB)
  Used Dev Size : 975296 (952.44 MiB 998.70 MB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

    Update Time : Sun Feb  7 00:57:06 2021
          State : clean 
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           Name : dir2:0
           UUID : 1da015d3:c3443291:f4b63363:aec59730
         Events : 159

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       8       17        1      active sync   /dev/sdb1
/dev/md2:
        Version : 1.2
  Creation Time : Thu Aug 23 20:10:25 2018
     Raid Level : raid1
     Array Size : 217697280 (207.61 GiB 222.92 GB)
  Used Dev Size : 217697280 (207.61 GiB 222.92 GB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Wed Feb 24 01:02:48 2021
          State : clean 
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           Name : dir2:2
           UUID : 148bd7a9:a17e9e6e:d002c2d0:d7806567
         Events : 6779

    Number   Major   Minor   RaidDevice State
       0       8        3        0      active sync   /dev/sda3
       1       8       19        1      active sync   /dev/sdb3

/etc/fstab

  # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    
    # / was on /dev/md2 during installation
    UUID=7963eac4-4af8-4f02-8091-30887c83a10d /               ext4    errors=remount-ro 0       1
    
    # /boot was on /dev/md0 during installation
    UUID=b50673a9-beeb-46c5-accf-45778ebe6512 /boot           ext4    defaults        0       2
    
    # swap was on /dev/md1 during installation
    UUID=35e6df63-d091-4db4-88a5-5636a1fea96b none            swap    sw              0       0
    /dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
    
     nfs     defaults        0       0
    
    dir2.host.tld:/mnt/bacula  /mnt/bacula     nfs     defaults 0      0

相关内容