Bonjour,
Je viens de me prendre une formule hybrid flambante neuve sur laquelle j’ai installé proxmox.
Je me retrouve avec la conf suivante (par défaut lors de l’install):
Raid1 de SSD sur lequel se trouvent les partitions
/
/var/lib/vz
swap
Raid1 de Sata sur lequel se trouve la partition
/data
voici la conf d’origine en faisant un fdisk -l:
[code]Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009e5df
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1306 10485760+ fd Linux raid autodetect
/dev/sda2 1306 14528 106204160 fd Linux raid autodetect
/dev/sda3 14528 14593 526304 82 Linux swap / Solaris
Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0000d51d
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1306 10485760+ fd Linux raid autodetect
/dev/sdb2 1306 14528 106204160 fd Linux raid autodetect
/dev/sdb3 14528 14593 526304 82 Linux swap / Solaris
WARNING: GPT (GUID Partition Table) detected on ‘/dev/sdc’! The util fdisk doesn’t support GPT. Use GNU Parted.
Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdc1 1 243201 1953512001 83 Linux
Partition 1 does not start on physical sector boundary.
WARNING: GPT (GUID Partition Table) detected on ‘/dev/sdd’! The util fdisk doesn’t support GPT. Use GNU Parted.
Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdd1 1 243202 1953514583+ ee GPT
Partition 1 does not start on physical sector boundary.
Disk /dev/md1: 10.7 GB, 10737352704 bytes
2 heads, 4 sectors/track, 2621424 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/md1 doesn’t contain a valid partition table
Disk /dev/md2: 108.8 GB, 108752994304 bytes
2 heads, 4 sectors/track, 26551024 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/md2 doesn’t contain a valid partition table
Disk /dev/md0: 1907.7 GB, 1907725893632 bytes
2 heads, 4 sectors/track, 465753392 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Alignment offset: 3072 bytes
Disk identifier: 0xca1dad4d
Device Boot Start End Blocks Id System
Disk /dev/dm-0: 107.7 GB, 107671977984 bytes
255 heads, 63 sectors/track, 13090 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/dm-0 doesn’t contain a valid partition table[/code]
Le fstab :
1 /dev/md1 / ext3 errors=remount-ro 0 1
2 /dev/pve/data /var/lib/vz ext3 defaults 0 2
3 /dev/sda3 none swap defaults 0 0
4 /dev/sdb3 none swap defaults 0 0
5 /dev/md0 /data ext3 defaults 0 2
6 proc /proc proc defaults 0 0
7 sysfs /sys sysfs defaults 0 0
Ce que je voudrais, c’est créer une partition de 100GB pour le snapshot.
En gros, je voudrais que mon Raid1 Sata ait les partitions suivante :
/stock
/var/lib/vz/dump
J’ai vu pas mal de tutos à ce sujet, mais soit je trouve pour un disque non raid, ou je trouve la construction d’un raid…
Pouvez vous m’aider pour cette manip svp ?
Merci.