Hello,
my server is using a raid1 with 2 x 2 TB HDDs.
Originally, proxmox was installed on 2 x 320G HDDs with raid1, but one HDD crashed and i have replaced both hdds with 2 x 2 TB hdds (i have cloned the date with dd).
The system is up and running since more than a year but now i have a problem with the free space because it was originally configured to use a 320 GB hdd.
I have managed to extend the raid array to use the maximum size, but unfortunately, i am not able to extend/resize the VGs.
I have to mention that i have no KVM console to my server. Is there a safe way to resize it online without loosing any data?
Thank you,
Marius
Raid arrays:
my server is using a raid1 with 2 x 2 TB HDDs.
Originally, proxmox was installed on 2 x 320G HDDs with raid1, but one HDD crashed and i have replaced both hdds with 2 x 2 TB hdds (i have cloned the date with dd).
The system is up and running since more than a year but now i have a problem with the free space because it was originally configured to use a 320 GB hdd.
I have managed to extend the raid array to use the maximum size, but unfortunately, i am not able to extend/resize the VGs.
I have to mention that i have no KVM console to my server. Is there a safe way to resize it online without loosing any data?
Thank you,
Marius
Code:
pveversion
pve-manager/5.2-9/4b30e8f9 (running kernel: 4.15.18-5-pve)
Raid arrays:
Code:
mdadm -D /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Thu Dec 13 14:07:07 2012
Raid Level : raid1
Array Size : 523252 (510.99 MiB 535.81 MB)
Used Dev Size : 523252 (510.99 MiB 535.81 MB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent
Update Time : Sun Nov 4 00:57:07 2018
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Name : radio-mh:0 (local to host radio-mh)
UUID : 212115dc:2589d759:09072e26:51c01684
Events : 518
Number Major Minor RaidDevice State
2 8 17 0 active sync /dev/sdb1
3 8 1 1 active sync /dev/sda1
root@radio-mh:~# mdadm -D /dev/md1
/dev/md1:
Version : 1.2
Creation Time : Thu Dec 13 14:08:29 2012
Raid Level : raid1
Array Size : 1952989272 (1862.52 GiB 1999.86 GB)
Used Dev Size : 1952989272 (1862.52 GiB 1999.86 GB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent
Update Time : Mon Nov 12 21:08:24 2018
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Name : radio-mh:1 (local to host radio-mh)
UUID : 6b54e7f7:9362e803:789b1e27:740ab668
Events : 1891579
Number Major Minor RaidDevice State
2 8 18 0 active sync /dev/sdb2
3 8 2 1 active sync /dev/sda2
Code:
pvs
PV VG Fmt Attr PSize PFree
/dev/md1 pve1 lvm2 a-- 297.59g 0
vgs
VG #PV #LV #SN Attr VSize VFree
pve1 1 3 0 wz--n- 297.59g 0
lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve1 -wi-ao---- 208.09g
root pve1 -wi-ao---- 74.50g
swap pve1 -wi-ao---- 15.00g
df -h
Filesystem Size Used Avail Use% Mounted on
udev 7.7G 0 7.7G 0% /dev
tmpfs 1.6G 116M 1.5G 8% /run
/dev/mapper/pve1-root 74G 59G 11G 85% /
tmpfs 7.8G 37M 7.7G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/md0 487M 398M 64M 87% /boot
/dev/mapper/pve1-data 205G 194G 762M 100% /var/lib/vz
/dev/sdc1 932G 502G 431G 54% /mnt/backup
/dev/fuse 30M 20K 30M 1% /etc/pve
tmpfs 1.6G 0 1.6G 0% /run/user/0