[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: lvm e mdadm



Il 03/09/21 16:42, gerlos ha scritto:
[...]
Tanto se usi file system come ext4 e xfs puoi allargare un volume logico in un unico step (senza smontare nulla) con un comando come

lvextend --size +100G --resizefs /path/to/logicalvolume

Ciao gerlos, grazie, sto ancora facendo un po' di test... si riesce a fare il grow a volume attivo e montato ma non il reduce:

# lvreduce --size 8G --resizefs /dev/fw-prodfs-vg/root
Do you want to unmount "/" ? [Y|n] y
umount: /: target is busy.
fsadm: Cannot proceed with mounted filesystem "/".
  /sbin/fsadm failed: 1
  Filesystem resize failed.

Che tu sappia l'unico modo per fare il reduce della partizione di root è fare il boot da un altro OS?

Non esiste una qualche diavoleria di systemd che mi monta il file system di root in read only in modo da poter fare il reduce?

Piviul


Reply to: