×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

[FreBSD] Changing /var to /usr/var - qmail implications

[FreBSD] Changing /var to /usr/var - qmail implications

[FreBSD] Changing /var to /usr/var - qmail implications

(OP)
Hello,
I am running qmail on a FreeBSD 6.X platform,qmail puts several files in the /var partition.
I've run into a 'full filesystem condition' in the /var partition and would like to change it. I have created a /usr/var directory and would then do a link from /var to /usr/var to by pass the artition size restrictions. When I executed tar cf - . | (cd /usr/var; tar xf - ) from the /var directory some of the files & directories were transferred but for others I got this message


tar: ./run/log: tar format cannot archive socket: Inappropriate file type or format
tar: ./run/devd.pipe: tar format cannot archive socket: Inappropriate file type or format
tar: ./run/logpriv: tar format cannot archive socket: Inappropriate file type or format
tar: ./run/rpcbind.sock: tar format cannot archive socket: Inappropriate file type or format
tar: ./run/dovecot/dict-server: tar format cannot archive socket: Inappropriate file type or format
tar: ./run/dovecot/auth-worker.818: tar format cannot archive socket: Inappropriate file type or format
tar: ./run/dovecot/login/default: tar format cannot archive socket: Inappropriate file type or format
tar: ./named/var/run/log: tar format cannot archive socket: Inappropriate file type or format


These all have permissions of type
srw-rw-rw-   

as in

srw-rw-rw-  1 root  wheel    0 Jan  1  2002 ./run/log=
srw-rw-rw-  1 root  wheel    0 Jan  1  2002 ./run/devd.pipe=
srw-------  1 root  wheel    0 Jan  1  2002 ./run/logpriv=
srw-rw-rw-  1 root  wheel    0 Sep 29 05:03 ./run/rpcbind.sock=
srw-------  1 root  wheel    0 Sep 29 05:03 ./run/dovecot/auth-worker.818=
srwxrwxrwx  1 root  wheel    0 Sep 29 05:03 ./run/dovecot/dict-server=
srw-rw----  1 root  dovecot  0 Sep 29 05:03 ./run/dovecot/login/default=
srw-rw-rw-  1 root  wheel    0 Jan  1  2002 ./named/var/run/log=


I was told that only way to effect the change over is to reconfigure the config files and that the program(s) would recreate the dir with the correct permissions

Now the "Life with Qmail" p29 doc. list a long array of config files all of which were not configured with explicit paths.

Could someone say in which configure file I would have to reset the /var to /usr/var path so as to make this change, and where it is to be found.

Thanks
 

RE: [FreBSD] Changing /var to /usr/var - qmail implications

You're making this harder than it needs to be.

If you have another physical partition that you can add to your FS, then use it to replace an existing part of /var (not /var/run) rather than mess with moving stuff...

For example, if you have a /var/log folder, you could
1) create and format the new partition,
2) mount that new partition temporarily as /tmp/foo/
3) shutdown most everything running on the server (temporarily)
4) use 'dd' or 'tar' to copy from /var/log (and lower recursively) to /tmp/foo
5) unmount /var/log
6) unmount /tmp/foo
7) remount /tmp/foo in /var/log's place
8) adjust fstab accordingly.




 

D.E.R. Management - IT Project Management Consulting
http://www.dermanagement.com/

RE: [FreBSD] Changing /var to /usr/var - qmail implications

(OP)
OK I see your idea, I do not have any existing physical partition that could be repartioned and formated except for another disk which is in use.

 If /var/log is the usual culprit here, is it possible to rotate it out into another file on another partition periodically?

RE: [FreBSD] Changing /var to /usr/var - qmail implications

The culprit is whatever you determine from your own analysis of folder utilization...

The point I should have emphasized a bit more clearly is that certain folders like /var/run are more universally used by many applications where you'd need to find their configuration files to move them from /var/run to /usr/var/run (or whatever it was you wanted).  

It's much more common (and eaiser) to substitute some appropriate free disk to be a partition for a subfolder like /var/log (or even /var/run)

D.E.R. Management - IT Project Management Consulting
http://www.dermanagement.com/

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close