Increasing Disk Space for Dr.Web Server

The /var/opt/drwcs/ folder in Linux OS or /var/drwcs/ folder in FreeBSD OS (collectively referred to as the var folder further in this section) stores backup copies of the database, the main configuration files of the anti-virus network components, the installation file repository, and other files necessary for Dr.Web Server. The size of this folder may increase significantly in the course of Dr.Web Server operation. If free space is limited on the Dr.Web Server installation disk, it is recommended that you mount this folder on a separate disk. This can be done either before or after installing Dr.Web Server.

info

The instructions contain examples of commands for Linux OS. Note the difference in the paths in FreeBSD OS:

/var/opt/drwcs/ → /var/drwcs/

/etc/init.d/ → /usr/local/etc/rc.d/

When initially installing Dr.Web Server

To prevent potential issues with lack of disk space, mount a new disk device as the var folder before installing Dr.Web Server.

To mount a new disk as the var folder in Linux OS

1.Create the var folder:

# mkdir /var/opt/drwcs/

2.Mount a new disk device (for example, /dev/sdXY) to the var folder:

# mount /dev/sdXY /var/opt/drwcs/

where /var/opt/drwcs/ is the mount point of the new disk device.

3.If necessary, make the appropriate changes to the /etc/fstab file.

After following these steps, install Dr.Web Server according to the instructions from the Installation Manual, the Installing Dr.Web Server for Unix-like OS section.

After installing Dr.Web Server

To avoid running out of free space on the Dr.Web Server installation disk, you can move the var folder to a separate disk.

To move the var folder to a separate disk in Linux OS

1.Stop Dr.Web Server using the command:

# /etc/init.d/drwcsd stop

2.Create a new folder to move the contents of the var folder to, for example:

# mkdir /mnt/var/opt/drwcs/

3.Mount a new disk device (for example, /dev/sdXY) to the folder you created:

# mount /dev/sdXY /mnt/var/opt/drwcs/

where /mnt/var/opt/drwcs/ is the mount point of the new disk device.

4.Copy the contents of the var folder to the mounted disk:

#cp -apx /var/opt/drwcs/* /mnt/var/opt/drwcs/

5.Remove the contents of the original var folder:

# rm -R /var/opt/drwcs/*

6.Unmount the disk mounted to the folder you created:

# umount /dev/sdXY

7.Mount the disk to the var folder:

# mount /dev/sdXY /var/opt/drwcs/

8.Set the drwcs user of the drwcs group as the owner of the var folder:

# chown -R drwcs:drwcs /var/opt/drwcs

9.Start Dr.Web Server:

# /etc/init.d/drwcsd start

10.If necessary, make the appropriate changes to the /etc/fstab file.