Is it safe to mount a guest's running filesystem with "-o ro"

General support questions
Post Reply
Whoever
Posts: 1357
Joined: 2013/09/06 03:12:10

Is it safe to mount a guest's running filesystem with "-o ro"

Post by Whoever » 2022/11/27 01:36:49

To simplify backups of a running guest's filesystem, it would be convenient to mount it's filesystem on the host.

Is this safe, as long as I specify "-o ro,noload"?

BShT
Posts: 583
Joined: 2019/10/09 12:31:40

Re: Is it safe to mount a guest's running filesystem with "-o ro"

Post by BShT » 2022/11/27 11:38:26

it is a local or remote file system?

you can´t mount a file system twice

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Is it safe to mount a guest's running filesystem with "-o ro"

Post by TrevorH » 2022/11/27 14:38:12

If it's on an LVM LV then you could create an LVM snapshot and mount that r/o and then when done, just remove the snapshot. That also has the benefit of freezing the filesystem's contents while you back it up.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply