Now, the system has been installed a bit unique, and the actual app "nextcloud" is a restored installed from fedora almost a decade ago now, so some stuff isn't how it's done now (especially according to Nextcloud interms of data storage location, config files etc: The fedora packagers moved alot of this stuff around, and I've preserved that).
I think my theory at the time was when /var /srv/data are full, I could simply add new arrays.
The current physical hdd layout is, 2 HDD's in raid 1:
- Code: Select all
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md0 20G 1015M 18G 6% /
/dev/md1 20G 6.5G 12G 36% /usr
/dev/sda1 297M 184K 297M 1% /boot/EFI
/dev/md2 20G 4.1G 14G 23% /var
/dev/md3 29G 234M 29G 1% /home
/dev/md4 363G 228G 117G 67% /srv/data
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 297.1M 0 part /boot/EFI
├─sda2 8:2 0 1K 0 part
├─sda5 8:5 0 19.5G 0 part
│ └─md0 9:0 0 19.5G 0 raid1 /
├─sda6 8:6 0 19.5G 0 part
│ └─md1 9:1 0 19.5G 0 raid1 /usr
├─sda7 8:7 0 7.8G 0 part [SWAP]
├─sda8 8:8 0 19.5G 0 part
│ └─md2 9:2 0 19.5G 0 raid1 /var
├─sda9 8:9 0 29.3G 0 part
│ └─md3 9:3 0 29.3G 0 raid1 /home
└─sda10 8:10 0 369.8G 0 part
└─md4 9:4 0 369.6G 0 raid1 /srv/data
sdb 8:16 0 465.8G 0 disk
├─sdb1 8:17 0 298M 0 part
├─sdb2 8:18 0 19.5G 0 part
│ └─md0 9:0 0 19.5G 0 raid1 /
├─sdb3 8:19 0 1K 0 part
├─sdb5 8:21 0 7.8G 0 part [SWAP]
├─sdb6 8:22 0 19.5G 0 part
│ └─md1 9:1 0 19.5G 0 raid1 /usr
├─sdb7 8:23 0 19.5G 0 part
│ └─md2 9:2 0 19.5G 0 raid1 /var
├─sdb8 8:24 0 29.3G 0 part
│ └─md3 9:3 0 29.3G 0 raid1 /home
└─sdb9 8:25 0 369.8G 0 part
└─md4 9:4 0 369.6G 0 raid1 /srv/data
sr0 11:0 1 1024M 0 rom
I've seen various things around the net to accomplish what I'm trying to do:
1: Shutdown system, cp system partitions into a new vm
2: backup and restore just the nextcloud install in a new vm
I do have the luxury of being able to create/build the vm on a different offline system: so I can take my time to get it right. Ideally I need to get it completed before the end of support for Mageia 8 (I had a nightmare installing nextcloud due to PHP version issues, hoping to avoid that again).
Given it's only one app, what is your thoughts on how to proceed?