0

today i have the mission to tuning a Debian samba file server, previously i never ever touched it.

RAM = 16GB SWAP = 32GB

first of i ran a parted -l and a free -h and i saw one 3TB hdd:

/dev/sda 3TB
/dev/sda1 1MB bios_grub
/dev/sda2 2968GB ext3 / (/opt/share is the samba directory)
/dev/sda3 32GB swap

imho a 32GB swap partition is a total madness, so my question is: how can i reuse it? should i reduce it to 4 GB? and what can i do with the remaining 28GB?

Matt
  • 103
  • 2

1 Answers1

0

Very similar to How big should the swap partition be? with the twist of how using it.

Assuming that you really want to repartition /dev/sda to create another partition just to increment the usable space of 0.95% of the total you can the new partition as mountpoint for a directory that uses space. You can for example use that to store the logs.

If you can take down the machine and reconfigure it you can easily put on the 24gb partion all the OS, than mount the sda2 partion to /opt/share. So in case something goes wrong with OS upgrade you have a partition that holds just the data. That will help you to recover without too much hassle.

Andrea
  • 26
  • 5