Questions tagged [var]

/var is a standard subdirectory of the root directory in Linux and other Unix-like operating systems that contains files to which the system writes data during the course of its operation.

Filter by
Sorted by
Tagged with
0 votes
1 answer
294 views

Postfix service WAS working, after reboot says "Failed to start postfix.service: Unit var.mount is masked."

On this server system we have been offloading the ssd system "disk" of high-write loads for reliability / longevity reasons and following one strategy, we went to a new one and everything ...
Richard T's user avatar
  • 1,242
0 votes
1 answer
508 views

Avoid Docker to write into /var/tmp

How can I tell docker to write data elsewhere of /var/tmp ? Like specifying another path, like /opt for example. Because I often running out of disk usage on /var file system. The challenge is that I ...
Suffren's user avatar
  • 29
0 votes
0 answers
53 views

Issue adding space from /home to /var with ext4 fs debian 11

My /var is full on 9.1GB and I need to increase space to 100GB from /home that has 1.4TB. When I run fdisk it keeps giving me the same default amount of space (9.1GB). Is the another way of adding ...
tlholoheloh101's user avatar
1 vote
1 answer
1k views

On macOS, what is /var/db/uuidtext?

My Macbook Pro has a folder /var/db/uuidtext What do the hexidecimal numbers for the subfolders represent, and what is the dsc subfolder? James-MacBook-Pro-4:~ jamespedersen$ ls /var/db/uuidtext 00 ...
user2279952's user avatar
3 votes
2 answers
472 views

Sending remaining network traffic with RSYSLOG to specific file

I'm trying to concentrate logs from multiple equipments from multiple clients on my RSYSLOG server. My server runs on Debian 11 with RSYSLOG v8.2102 The configuration is quite simple at the moment: I'...
Cool34's user avatar
  • 53
1 vote
1 answer
1k views

How do i create Symlink to /var/log/myapp to another mount?

I am not very familiar with unix terminologies but I have a requirement where I have installed Gitlab on one of my RHEL server. By default the installation and log goes to /var/opt/gitlaband /var/log/...
mikita agrawal's user avatar
2 votes
2 answers
4k views

increase the space in var partition on Debian GNU/Linux 10 (buster)

I'm running docker containers on my machine which puts it all in /var/. DF shows that /var/ is 6.9G and no free space. The Linux system is running under VMWare and I've given the server extra 100 GB'...
resolver101's user avatar
0 votes
1 answer
2k views

How to move /var back to Root from a different filesystem

I need to move my /var (dev/sdc1) back to the / (dev/sda2) from a different file system. I've resized the / partition and want to move /var back to / partition and resize /dev/sdc1 filesystem to mount ...
Sam89's user avatar
  • 11
-1 votes
1 answer
246 views

(Linux) /var/log organisation using logrotate and rsyslog without breaking important systems [closed]

This is likely to elicit calls to close as it's asking for opinions, but I don't know how or where to ask in a more appropriate manner. Apologies in advance if this offends - it's not intended that ...
Graham Nicholls's user avatar
2 votes
1 answer
13k views

What does [unknown]@[unknown] LOG: incomplete startup packet mean?

I am having troubles with starting Kong with Postgres. I inspected my desktop's log root@miki:/var/log/postgresql# 2019-04-22 07:35:28.040 CEST [1181] LOG: listening on IPv4 address "127.0.0.1", ...
MikiBelavista's user avatar
2 votes
0 answers
662 views

Subdirectory of /var/run disappearing in CentOS 7 while running

Occasionally (after some amount uptime which I haven't measured yet), my /var/run/projectname directory will disappear along with the /var/run/projectname/gunicorn.sock file. Rebooting brings it ...
rrauenza's user avatar
  • 585
-2 votes
2 answers
22k views

/var file system gets full quickly [closed]

/var file system gets full quickly. Even the inodes' usage reaches 100%. We have to clear the logs regularly. We are not able to ssh also because of this. We have do a hard reboot eventually. We are ...
Karma T.'s user avatar
-2 votes
1 answer
300 views

What's the different of moving /var into a new partition between standard way and links?

I want to move /var into /mnt/var since /mnt is mount as a new big partition /dev/xvdb1. [root@stepping-stone ~]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 20G 7.1G ...
LeoShi's user avatar
  • 97
0 votes
2 answers
55 views

Huge /var/log directory inode in ext3 after creating and removing many files

I have Debian Jessie, /var/log on root partition of type ext3 (rw,relatime,data=ordered). Four days ago logrotate dumped tens of thousands files, this was fixed and files deleted. After this: # du -...
user339171's user avatar
0 votes
0 answers
72 views

Odd entries in Debian Linux /var/log/auth.log

I have found some odd entries all of the sudden in my /var/log/auth.log files. They are showing up every 10-20 seconds or so. There isn't anything in cron that would do this, and I am at a loss of ...
lext01's user avatar
  • 21
-2 votes
1 answer
753 views

Var folder maxing out /dev/mapper/vg00-var

Over the past few years we have had multiple linux servers have the same problem time and time again, our /dev/mapper/vg00-var folder max out at 100%. which means all sites on the server die. We have ...
Gismmo's user avatar
  • 101
2 votes
4 answers
27k views

CentOS & moving /var to a new disk/partition

Slightly older system, roughly 2 years old. Running CentOS I'm noticing I have /var using a lot of space, and it's all good stuff...so deleting space isn't the answer. Is there any easy/safe way to ...
Will Ashworth's user avatar
0 votes
3 answers
12k views

sed replace unix path with variable that contain another unix path [closed]

I need to replace Unix path via sed with variable that contain another unix path in a bash script Example: another_unix_path=/another/unix/path sed -i 's/ \/some\/path\/file.txt/ '$another_unix_path'...
vasek's user avatar
  • 13
-2 votes
1 answer
731 views

CentOS 6.6 /var 100% but no big files [closed]

I have a server that is showing /var as being 100% full, but running the following command 'du -ks * | sort -nr | more' does not show any large directories: 60824 lib 25084 log 3960 cache 180 ...
Ian's user avatar
  • 29
4 votes
1 answer
345 views

By mistake I changed the ownership of /var directory.

Instead of changing the ownership of /var/www directory, I changed the ownership of /var directory recursively (couple of days back). Now owner of every directory in /var is www-data. All my sites are ...
user58859's user avatar
  • 518
7 votes
1 answer
7k views

Difference between /var/www and /srv/www in nginx

Recently i installed Nginx and want to change the root directory of that but i don't know what the difference is between /var/www and /srv/www and when i should use /var/www or /srv/www ?
Saeed Masoumi's user avatar
1 vote
1 answer
378 views

How Ubuntu 12.04 re-install handles /var on separate partition

To add some context to my question, the majority of my experience is with Mac OS X. The default installation process in modern versions of Mac OS X, for volumes on which Mac OS X is already installed, ...
sardean's user avatar
  • 843
5 votes
1 answer
2k views

Any folders or files I create in /var/run/ get deleted when restarting the mac

Any added files or folders in /var/run they are deleted when I restart my machine. Why is this happening? What should I do to ensure these files are not deleted (or are recreated) and how would I go ...
simpleengine's user avatar
0 votes
2 answers
2k views

/var/lib/mysql folder is not coming up after install

I'm having some trouble with reinstalling MySQL, since i uninstalled it. I have been unable to install it again. yum install mysql-server yum install mysql But what ever I do, the folder /var/lib/...
user156461's user avatar
8 votes
1 answer
19k views

what is the purpose of the files in this directory: /var/lib/apt/lists? [closed]

linux lubuntu HD4000 intel ivy-bridge 8gb 1600 ram. I am getting a duplicate entry error message from synaptic package manager and it says the problem is there. I am wondering a few things: What ...
Magpie's user avatar
  • 201
4 votes
5 answers
57k views

How to increase /var directory size?

First question: When I run df -h I can see this: # df -h Filesystem Size Used Avail Capacity Mounted on /dev/ad4s1a 9.7G 8.0G 918M 90% / devfs 1.0K 1.0K 0B ...
Cyclone's user avatar
  • 260
2 votes
2 answers
840 views

Worth it to move /var to physical disk vs logical?

Brief question about partition layout. I use an SSD for /, /boot, /usr, & /home partitions. I'd like to move /var to a mechanical disk to minimize writes to the SSD. I'm mainly concerned about ...
Tammer Ibrahim's user avatar
9 votes
2 answers
31k views

Debian/Ubuntu is it possible to reinitialize /var/lib/apt/lists and /var/apt/cache after deleting them?

Is it possible to restore the functionality of /var/lib/apt/lists and /var/apt/cache after deleting them or minmizing them in some wa I am trying to shrink down an Ubuntu VM to the smallest size and ...
vfclists's user avatar
  • 1,652
2 votes
2 answers
245 views

Can't update opensuse from 11.4 to 12.1 because of lack of space in /var

I'm trying to update opensuse from version 11.4 to 12.1. The required download size is more than 1.0 GB, but my filesystem /var is precisely 1.0 GB, that's why zypper stops while downloading .rpm ...
user1088224's user avatar
4 votes
2 answers
4k views

Move /var to new set of disks

I currently only have remote access to this CentOS box, I need to move /var form the primary RAID to a new set of disks that was installed with more space, My current thoughts on how to accomplish ...
Brandon's user avatar
  • 215
29 votes
3 answers
231k views

Cannot delete folder with rm -rf. Error: device or resource busy

I'm trying to delete /var/www/html but I'm getting this error: rm: cannot remove `html': Device or resource busy
Hugo's user avatar
  • 291
2 votes
3 answers
2k views

What, if anything, is safe to symlink in /var?

We have plenty of space on a different mounted device. Since the /var partition stays relatively static in terms of size (around 8-10GB because of big logs that we need), I'd be fairly happy to simply ...
grepperschlepper's user avatar
10 votes
2 answers
29k views

Are MySQL databases always stored in /var on CentOS?

Are MySQL databases always stored in /var on CentOS? Specifically - If a new CentOS/cPanel server that needs to support MySQL, doesn't have that partition, but only has these, does that mean MySQL ...
inac's user avatar
  • 519
0 votes
3 answers
1k views

Mac OS X Snow Leopard: permissions changed on /var results in dns lookup issues

I was attempting to solve an issue ("/var/log/msmtp.log: permissions denied" error when attempting to send mail using msmtp) when I did this: > chmod -R 770 /var After that, my machine would not ...
user avatar
0 votes
1 answer
3k views

Resize the /var directory in redhat enterprise edition 4

I am running NDB mysql. the log files fills up the /var directory. therefore i cant start the ndbd service now. as a temporary fix, i have deleted the log files and again working fine. but again the ...
user avatar
3 votes
2 answers
4k views

Unable to understand the folder /var/virusmails in Mac OS X

I was completing the instructions in finding MySQL's password, when I saw this [some image of virus mails but lost] My var at Root has the folder /var/virusmails which name is strange. The user of ...
Léo Léopold Hertz 준영's user avatar