>From what I can find, that command would take the file system that is currently mounted on /var/lib/psql, and change it so that it is mounted on /data/var/lib/psql. At the end, there will be nothing mounted on /var/lib/psql. All this is done without the file system ever being in an unmounted state (which is what the "atomically" means).
Mark Post -----Original Message----- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of McKown, John Sent: Tuesday, October 19, 2004 7:11 AM To: [EMAIL PROTECTED] Subject: confused by the --move option on the mount command. Can anybody explain this in simple terms. The man page doesn't make any sense to me. What would the following command do? mount --move /var/lib/psql /data/var/lib/psql All right, this is for my home system. I have /var/lib in the root filesystem. I now want to move the "/var/lib/psql" subdirectory to the "/data" filesystem. I don't want to put up another filesystem. In the past I would have done the following: ./etc/rc.d/init.d/postgresql stop mkdir /data/var/lib/psql chown postgres.postgres /data/var/lib/psql cp -aux /var/lib/psql/* /data/var/lib/psql # check that everything was copied rm -r /var/lib/psql ln -s /data/var/lib/psql /var/lib/psql That is, I would symlink from the old location to the new location. Now, should I replace the ln -s /data/var/lib/psql /var/lib/psql with mount --rbind /data/var/lib/psql /var/lib/psql and update fstab appropriately? anyway, what does the --move option do? ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
