/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.
Questions tagged [var]
33 questions
26
votes
3 answers
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
- 261
- 1
- 3
- 3
10
votes
2 answers
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 data is somehow being stored in a temporary dump…
inac
- 509
- 2
- 9
- 20
9
votes
2 answers
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 decided to delete /var/lib/apt/lists and…
vfclists
- 1,562
- 5
- 20
- 36
8
votes
1 answer
what is the purpose of the files in this directory: /var/lib/apt/lists?
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 this directory is.
Whether it safe to simply delete…
Magpie
- 201
- 1
- 3
- 7
5
votes
1 answer
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
- 153
- 1
- 5
4
votes
1 answer
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 down and showing "Error establishing a database…
user58859
- 518
- 3
- 7
- 17
4
votes
1 answer
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 about doing this?
Any help appreciated
simpleengine
- 395
- 1
- 3
- 6
4
votes
2 answers
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 this is to temporarily mount the new RAID to…
Brandon
- 215
- 1
- 4
- 6
3
votes
4 answers
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 100% /dev
/dev/ad4s1d 1.8T 6.7G 1.6T …
Cyclone
- 250
- 1
- 6
- 20
3
votes
2 answers
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 the folder is _amavisd which I do not know.
The…
Léo Léopold Hertz 준영
- 809
- 6
- 21
- 42
3
votes
2 answers
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've simply allowed UDP and TCP connections in…
Cool34
- 33
- 3
2
votes
1 answer
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", port 5432
2019-04-22 07:35:28.070 CEST [1181] LOG: …
MikiBelavista
- 301
- 2
- 4
- 12
2
votes
4 answers
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 move /var to a newly-mounted disk without toasting…
Will Ashworth
- 275
- 1
- 3
- 11
2
votes
2 answers
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 maximizing drive life rather than maximizing performance…
Tammer Ibrahim
- 123
- 3
2
votes
2 answers
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 packages because of lack of space in /var.
What…
user1088224
- 131
- 1
- 3