08-27-05 01:51 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
sinister wrote:
> When a filesystem is restructured (e.g. new space is made available), and
> data needs to be moved from an old space to a new space, what's a good pla
n
> for doing that?
>
> Our sysadmin copies the data (through cp or two tars or whatever). And
> later deletes the data. That's fine with me, but he doesn't lock down the
> old area (by e.g. keeping everyone else out while the cp is going on by
> restricting permissions). So, as people keep using the old area, he has n
o
> idea whether the new area is still in sync with the old area.
>
> Isn't this a bad idea?
FWIW, this is my opinion only. Take it for what it's worth.
When making backups or moving directory trees around, unless you are willing
to live with potential file syncronization errors, the sysadm should take th
e
system into single user mode before starting the copy, and revert to multius
er
mode once the copy (and validation) is complete.
S/he might risk remaining in multiuser mode /if/ the directory tree is stabl
e
(no changes to it will be made during the time the backup or move process is
executing), but for active directory trees (/var or /home, for instance) the
only /safe/ way to move them is to restrict access to read only or no access
at all.
Having said all that, it depends on the environment and the use of the
machine. Some systems can be permitted to be volatile or unstable, while
others are required to be available 7/24. In either case, it may be unsuitab
le
to restrict write access to directories and files while backing them up or
moving them. That's a risk that site management must evaluate and deal with.
- --
Lew Pitcher
Master Codewright & JOAT-in-training | GPG public key available on request
Registered Linux User #112576 (http://counter.li.org/)
Slackware - Because I know what I'm doing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)
iD8DBQFDD6RnagVFX4UWr64RAgxRAJ9F+2vOTwQb
TBL+5I156gjrsCaZtwCgj0VQ
S2KU8ccD1/yQHhZ+6d4MhHg=
=evN9
-----END PGP SIGNATURE-----
[ Post a follow-up to this message ]
|