Hello to everybody,
I would extend PVE storage on a new volume RAID (1). Is there someone that could help me please?
The actual server has installed Proxmox VE 3.0; it has installed 2 phisical disks (/dev/sda /dev/sdb) that are in the RAID 1 (dev/md0 for the boot and /dev/md1 for the root) with mdadm. I would add other 2 phisical disks (/dev/sdc and /dev/sdd) ; mirror them in a new volume (dev/md2) with mdadm and then extend the PVE adding their space.
I'm thinking to do the follow commands.
- fdisk /dev/sdc to create new partition type 8e
- sfdisk -d /dev/sdc | sfdisk -f /dev/sdd to replicate the same structure in /dev/sdd
- mdadm --create /dev/md2 --level=1 --raid-disks=2 missing /dev/sdd1 to create the volume raid
- mdadm --add /dev/md2 /dev/sdc1 to add into volume raid the device /dev/sdc1
- pvcreate /dev/sdc1 to create physicak extension
- vgextend "pve" /dev/sdc1 to extend volume group
- lvresize -l xxxxx /dev/mapper/pve-data to resize logical volume
- resize2fs /dev/mapper/pve-data to update the filesystem
- sfdisk -c /dev/sdc 1 fd
- mdadm --add /dev/md2 /dev/sdc1
I'm sure there is something wrong. Is it better to do:
- fdisk /dev/sdc to create new partition type 8e
- sfdisk -d /dev/sdc | sfdisk -f /dev/sdd to replicate the same structure in /dev/sdd
- mdadm --create /dev/md2 --level=1 --raid-disks=2 missing /dev/sdd1 to create the volume raid
- mdadm --add /dev/md2 /dev/sdc1 to add into volume raid the device /dev/sdc1
- sfdisk -c /dev/sdc 1 fd
- mdadm --add /dev/md2 /dev/sdc1
- pvcreate /dev/md2 to create physicak extension
- vgextend "pve" /dev/md2 to extend volume group
- lvresize -l xxxxx /dev/mapper/pve-data to resize logical volume
- resize2fs /dev/mapper/pve-data to update the filesystem
I think to have missed something important....
Thanks in advance
Ciao!
I would extend PVE storage on a new volume RAID (1). Is there someone that could help me please?
The actual server has installed Proxmox VE 3.0; it has installed 2 phisical disks (/dev/sda /dev/sdb) that are in the RAID 1 (dev/md0 for the boot and /dev/md1 for the root) with mdadm. I would add other 2 phisical disks (/dev/sdc and /dev/sdd) ; mirror them in a new volume (dev/md2) with mdadm and then extend the PVE adding their space.
I'm thinking to do the follow commands.
- fdisk /dev/sdc to create new partition type 8e
- sfdisk -d /dev/sdc | sfdisk -f /dev/sdd to replicate the same structure in /dev/sdd
- mdadm --create /dev/md2 --level=1 --raid-disks=2 missing /dev/sdd1 to create the volume raid
- mdadm --add /dev/md2 /dev/sdc1 to add into volume raid the device /dev/sdc1
- pvcreate /dev/sdc1 to create physicak extension
- vgextend "pve" /dev/sdc1 to extend volume group
- lvresize -l xxxxx /dev/mapper/pve-data to resize logical volume
- resize2fs /dev/mapper/pve-data to update the filesystem
- sfdisk -c /dev/sdc 1 fd
- mdadm --add /dev/md2 /dev/sdc1
I'm sure there is something wrong. Is it better to do:
- fdisk /dev/sdc to create new partition type 8e
- sfdisk -d /dev/sdc | sfdisk -f /dev/sdd to replicate the same structure in /dev/sdd
- mdadm --create /dev/md2 --level=1 --raid-disks=2 missing /dev/sdd1 to create the volume raid
- mdadm --add /dev/md2 /dev/sdc1 to add into volume raid the device /dev/sdc1
- sfdisk -c /dev/sdc 1 fd
- mdadm --add /dev/md2 /dev/sdc1
- pvcreate /dev/md2 to create physicak extension
- vgextend "pve" /dev/md2 to extend volume group
- lvresize -l xxxxx /dev/mapper/pve-data to resize logical volume
- resize2fs /dev/mapper/pve-data to update the filesystem
I think to have missed something important....
Thanks in advance
Ciao!