Adding a second drive to pfSense 2.5.2
-
Hi all,
I'm running pfSense 2.5.2 on a dedicated machine, and I have installed a secondary SSD which I intend to use just for the logfiles.
I created a partitioning scheme on the new SSD, and then added a new freebsd-ufs partition.
Screenshot of gpart show.
ada0 is the newly added SSD.All good till this point, I can also mount ada0 to /media/ssd without any problems.
The problems occur when I try to have it automatically mount when pfSense boots. I created a entry in /etc/fstab like this.
The mount works correctly when I perform a mount -a, but once I reboot the machine it refuses to boot, and goes into a read-only state.
Any ideas?
EDIT: It's the nullfs bind that's giving problems. When I remove/uncomment that line, and only mount /dev/ada0p1 to /media/ssd the server boots without issues.
-
@mk873425
Write a shell script to mount it later.
Use Shellcmd to run the script.Hope this works.
Ashima -
@ashima Already tried that, but pfSense gets confused when you bind /var/log to another directory after it has booted. All logs are empty when I try that.
-
Don't do that, use an external syslog server.
But if you really have to do it use the syslog-ng package where you can set the log storage location. Export the logs to it internally.
Steve
-
@mk873425 said in Adding a second drive to pfSense 2.5.2:
but once I reboot the machine it refuses to boot, and goes into a read-only state.
Any ideas?When rebooted, the drive is 'umount' properly ?