1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[SOLVED] Security und mdstat output

Discussion in 'Proxmox VE (Deutsch)' started by ClusterX, Apr 16, 2018 at 15:28.

  1. ClusterX

    ClusterX New Member

    Joined:
    Apr 12, 2018
    Messages:
    18
    Likes Received:
    1
    hab nun endlich mal mein Test System am laufen ;-)
    wegen der Absicherung habe ich hier eine Anleitung gefunden:
    https://www.kiloroot.com/secure-pro...d-more-how-to-configure-from-start-to-finish/

    1. Kann man diese Absicherung wie oben mit der aktuellen Version so verwenden?

    2. wegen dem Raid bin ich mir noch etwas unsicher ob das so alles richtig ist, mdstat zeigt hier nur md1 und md0 ... ist das richtig so?

    PART /boot ext4 512M
    PART lvm vg0 all
    LV vg0 root / ext4 30G
    LV vg0 swap swap swap 2G
    LV vg0 data /var/lib/vz ext4 1800G

    Code:
    md1 : active raid1 sdb2[1] sda2[0]
          1952857152 blocks super 1.2 [2/2] [UU]
          bitmap: 2/15 pages [8KB], 65536KB chunk
    
    md0 : active raid1 sdb1[1] sda1[0]
          523712 blocks super 1.2 [2/2] [UU]
    fdisk -l
    Code:
    Disk /dev/loop0: 500 GiB, 536870912000 bytes, 1048576000 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x4512e93d
    
    Device     Boot   Start        End    Sectors  Size Id Type
    /dev/sda1          2048    1050623    1048576  512M fd Linux raid autodetect
    /dev/sda2       1050624 3907027119 3905976496  1.8T fd Linux raid autodetect
    
    
    Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0xdf93dd8c
    
    Device     Boot   Start        End    Sectors  Size Id Type
    /dev/sdb1          2048    1050623    1048576  512M fd Linux raid autodetect
    /dev/sdb2       1050624 3907027119 3905976496  1.8T fd Linux raid autodetect
    
    
    Disk /dev/md0: 511.4 MiB, 536281088 bytes, 1047424 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/md1: 1.8 TiB, 1999725723648 bytes, 3905714304 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/mapper/vg0-root: 30 GiB, 32212254720 bytes, 62914560 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/mapper/vg0-swap: 2 GiB, 2147483648 bytes, 4194304 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/mapper/vg0-data: 1.8 TiB, 1932735283200 bytes, 3774873600 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
     
  2. thoe

    thoe New Member

    Joined:
    Feb 1, 2018
    Messages:
    17
    Likes Received:
    1
    Moin,

    wegen dem Raid.
    Du hast also zwei Raidgruppen gebaut.
    Ich nehme mal an

    md0 für's System
    und
    md1 für für die Daten/VMs etc.

    Du kannst Dir den "Gesundheitszustand" der Raids mit

    cat /proc/mdstat

    anschauen.

    Das sieht dann in etwa so aus. Bsp. bei mir:
    cat /proc/mdstat
    Personalities : [raid6] [raid5] [raid4]
    md0 : active raid5 sda[0] sdd[4] sdc[2] sdb[1]
    2929893888 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/4] [UUUU]
    bitmap: 3/8 pages [12KB], 65536KB chunk

    (Ich habe hier nur ein Raid5 über 4 Platten.)

    Gruß Thomas
     

Share This Page