PVE and PBS on a single machine: how to turn off only PVE a/o PBS and keep Linux running?

gctwnl

Member
Aug 24, 2022
90
17
13
I have PVE and PBS on the same machine. Both have a 'shutdown' option, but that shuts down the entire machine. I would like to keep the machine running so I can do some command line maintenance. How do I power down (command line, obviously, using ssh) PVE and/or PBS without shutting down the machine?
 
You could run systemctl stop proxmox-backup-proxy.service proxmox-backup.service... and no backup is possible anymore, as far as I can see.

For PVE (and active HA) there is ha-manager crm-command node-maintenance enable pveX .

And PVE itself consists of multiple services, I am not sure which of them I would stop...:
Code:
 systemctl -t service --state=running --no-legend --no-pager | grep pve
  ceph-mgr@pveg.service        loaded active running Ceph cluster manager daemon
  pve-cluster.service          loaded active running The Proxmox VE cluster filesystem
  pve-container@2053.service   loaded active running PVE LXC Container: 2053
  pve-firewall.service         loaded active running Proxmox VE firewall
  pve-ha-crm.service           loaded active running PVE Cluster HA Resource Manager Daemon
  pve-ha-lrm.service           loaded active running PVE Local HA Resource Manager Daemon
  pve-lxc-syscalld.service     loaded active running Proxmox VE LXC Syscall Daemon
  pvedaemon.service            loaded active running PVE API Daemon
  pvefw-logger.service         loaded active running Proxmox VE firewall logger
  pveproxy.service             loaded active running PVE API Proxy Server
  pvescheduler.service         loaded active running Proxmox VE scheduler
  pvestatd.service             loaded active running PVE Status Daemon

But... why do you think that this is necessary? Manually stopping those services is usually not required, from my point of view. What I usually do is to shutdown (or migrate) all guests. That's it - even for system upgrades or other potentially "dangerous" operations like manipulating the storage system or the network.
 
Why I need this? Simple: I have only a single node and that single node runs pve and pbs. It's a soho situation.

And indeed I need to do 'dangerous' things. I have to resize LVM volumes.
Code:
root@pve:~# lsblk
NAME                                          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
sda                                             8:0    0   1.7T  0 disk 
└─sda1                                          8:1    0   1.7T  0 part 
  └─luks-fa1483bd-f599-4dcf-9732-c09069472150 252:9    0   1.7T  0 crypt
    ├─rna--mepdm--1-vm--100--disk--0          252:10   0   500G  0 lvm   
    └─rna--mepdm--1-rna--pbs--mepdm--1        252:11   0   500G  0 lvm   /mnt/pbs-backup-1
nvme0n1                                       259:0    0 931.5G  0 disk 
├─nvme0n1p1                                   259:1    0  1007K  0 part 
├─nvme0n1p2                                   259:2    0   512M  0 part  /boot/efi
└─nvme0n1p3                                   259:3    0   931G  0 part 
  ├─pve-swap                                  252:0    0     8G  0 lvm   [SWAP]
  ├─pve-root                                  252:1    0    96G  0 lvm   /
  ├─pve-data_tmeta                            252:2    0   8.1G  0 lvm   
  │ └─pve-data-tpool                          252:4    0 794.8G  0 lvm   
  │   ├─pve-data                              252:5    0 794.8G  1 lvm   
  │   ├─pve-vm--100--disk--0                  252:6    0    32G  0 lvm   
  │   ├─pve-vm--100--disk--1                  252:7    0    32G  0 lvm   
  │   └─pve-vm--100--disk--2                  252:8    0   500G  0 lvm   
  └─pve-data_tdata                            252:3    0 794.8G  0 lvm   
    └─pve-data-tpool                          252:4    0 794.8G  0 lvm   
      ├─pve-data                              252:5    0 794.8G  1 lvm   
      ├─pve-vm--100--disk--0                  252:6    0    32G  0 lvm   
      ├─pve-vm--100--disk--1                  252:7    0    32G  0 lvm   
      └─pve-vm--100--disk--2                  252:8    0   500G  0 lvm
sda is an external RAID1 which I have fully encrypted with LUKS on PVE and created two volumes on. One of the volumes contains the backups of the VMs that are stored on the internal SSD. rna--mepdm--1-vm--100--disk--0 is mounted on a client as a data disk. rna--mepdm--1-rna--pbs--mepdm--1 is mounted on the pve/pbs host as storage for PBS. I need to resize my LVM volumes (both the ones that reside on the LUKS-encrypted RAID1 and the one that resides on the internal (hardware encrypted) SSD.
 
  • Like
Reactions: UdoB