[Pioneira] Nova VM

Exemplo: VM 117

  1. Conecte ao PVE pve01.
  2. Conecte ao console da VM 199; efetue login com o usuário root.
  3. Execute:
    /var/lib/dell/bin/Client
    Efetue login no storage; no Dell Storage Manager Client:
    • Crie o volume folder VM117.
    • Crie o volume VM117D01.
    • Crie o server VM117.
    • Crie o volume VM117L01.
  4. Conecte ao pve01; efetue login com o usuário root; execute:
    iscsiadm -m session --rescan
    multipath -l
    fdisk -l
    Encontre os discos correspondentes ao volume VM117D01 na saída do comando fdisk:
    Disk /dev/sdaj: 80 GiB, 85899345920 bytes, 167772160 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 2097152 bytes / 2097152 bytes
    
    
    Disk /dev/sdak: 80 GiB, 85899345920 bytes, 167772160 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 2097152 bytes / 2097152 bytes
    
    
    Disk /dev/mapper/36000d310040af0000000000000000022: 80 GiB, 85899345920 bytes, 167772160 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 2097152 bytes / 2097152 bytes
  5. Crie o PV /dev/mapper/36000d310040af0000000000000000022 no disco /dev/mapper/36000d310040af0000000000000000022.
  6. Crie o VG vg117d01 no PV /dev/mapper/36000d310040af0000000000000000022.
  7. Volte ao PVE pve01.
  8. Crie o storage vg117d01 tipo LVM conteúdo Disk image.
  9. Crie a VM 117.
  10. Volte ao pve01; execute:
    lvextend -l +100%FREE /dev/vg117d01/vm-117-disk-1
  11. Conecte ao pve02 e execute:
    iscsiadm -m session --rescan
    multipath -l
    fdisk -l
  12. Conecte ao console da VM 117.
  13. Instale, atualize e configure o CentOS 7.
  14. Instale:
    iscsi-initiator-utils device-mapper-multipath
  15. Crie o arquivo /etc/multipath.conf:
    blacklist {
            devnode "/dev/vda"
    }
    
    defaults {
            udev_dir                /dev
            polling_interval        10
            path_selector           "round-robin 0"
            path_grouping_policy    multibus
            getuid_callout          "/sbin/scsi_id -g -u -s /block/%n"
            prio                    none
            path_checker            readsector0
            rr_min_io               100
            max_fds                 8192
            rr_weight               priorities
            failback                immediate
            no_path_retry           fail
            user_friendly_names     yes
    }
  16. Reinicie a VM 117.
  17. Copie o InitiatorName no arquivo /etc/iscsi/initiatorname.iscsi:
    InitiatorName=iqn.1994-05.com.redhat:fd5b3380993f
  18. Execute:
    iscsiadm -m discovery -t sendtargets -p 10.180.104.1
    iscsiadm -m discovery -t sendtargets -p 10.180.104.2
    iscsiadm -m node -T iqn.2002-03.com.compellent:5000d310040af031 -l
    iscsiadm -m node -T iqn.2002-03.com.compellent:5000d310040af032 -l
    iscsiadm -m node -T iqn.2002-03.com.compellent:5000d310040af034 -l
    iscsiadm -m node -T iqn.2002-03.com.compellent:5000d310040af035 -l
  19. Volte ao console da VM 199; no Dell Storage Manager Client, adicione o HBA iqn.1994-05.com.redhat:fd5b3380993f no server VM117.
  20. Volte ao console da VM 117; execute:
    iscsiadm -m session
    multipath -l
IP
3.235.179.111