Introduction
This page describes the installation of gnocchi, which is my Nextcloud server.
Procedure
- Make note of the following volume creation commands:
create-perfect-drbd-vol -v --remote=torchio --name=gnocchi --size=10G \ --name1=fiori --ip1=192.168.3.6 --name2=torchio --ip2=192.168.3.7 create-perfect-drbd-vol -v --remote=torchio --name=gnocchi_nextcloud --size=50G \ --name1=fiori --ip1=192.168.3.6 --name2=torchio --ip2=192.168.3.7
and the following container recreation commands:
create-basic-lxc-cnt --remote=torchio --name=gnocchi \ --offset=400000 \ --mem=2 \ --disk=block:/dev/drbd_gnocchi \ --disk=block:/dev/drbd_gnocchi_nextcloud \ --nic=bridge:br0
- Complete Installing Debian 11 on an LXC container using the volume and container creation commands above when required.
- Complete Configuring Nextcloud generation two point two.
- Complete Finalising a Linux installation.
See also
Procedure
- Complete Installing Debian 11 on an LXC container with the default hardware.
- Add a second disk by running (on fiori):
create-perfect-drbd-vol -v --remote=torchio --name=gnocchi_data --size=50G \ --name1=fiori --ip1=192.168.3.6 --name2=torchio --ip2=192.168.3.7 mkfs -t ext4 /dev/drbd_gnocchi_data mount /dev/drbd_gnocchi_data /mnt shift-uid-gid /mnt 400000 400000 umount /mnt virsh edit gnocchi
and add the following two stanzas:
... <metadata> <app1:mounter xmlns:app1="http://app1.org/app1/"> <mounts> ... <mount type="block" device="/dev/drbd_gnocchi_data" mntpnt="/var/lib/libvirt/mountpoints/gnocchi/data"/> </mounts> </app1:mounter> </metadata> ... <devices> ... <filesystem type='mount' accessmode='mapped'> <source dir='/var/lib/libvirt/mountpoints/gnocchi/data'/> <target dir='/var/www/html/data'/> </filesystem> <devices>
- Complete Configuring Nextcloud servers generation ????.
- Complete Finalising a Linux installation.