Proxy server question
-
df -h still doesn't shows the attached hdd
what i am doing wrongI think df only shows mounted filesystems. Did you partition, format & mount your disk using the directions in the links I posted?
-
@KOM:
df -h still doesn't shows the attached hdd
what i am doing wrongI think df only shows mounted filesystems. Did you partition, format & mount your disk using the directions in the links I posted?
i am stuck at the first step when i run the command /var/run/dmesg.boot its said /var/run/dmesg.boot:not found
i already added to the disk -
dmseg.boot is a log file. You don't run it; you view it with cat or a text editor.
OK, firs things first. What output do you get when you run the command:
ls /dev/da*
We need to see if pfSense even sees your disk at all. You are specifically looking for /dev/da1.
-
@KOM:
dmseg.boot is a log file. You don't run it; you view it with cat or a text editor.
OK, firs things first. What output do you get when you run the command:
ls /dev/da*
We need to see if pfSense even sees your disk at all. You are specifically looking for /dev/da1.
this what i get .
[2.2-RELEASE][root@firewall.pfsense.lan]/root: ls /dev/da* /dev/da0 /dev/da0s1 /dev/da0s1a /dev/da0s1b /dev/da1
-
Ok, so it sees your disk. I'm not sure what your problem is then. Just partition, format and mount it as per the guide I linked to:
# gpart create -s GPT da1 # gpart add -t freebsd-ufs da1 # newfs -U /dev/da1s1 # mkdir /newdisk # mount /dev/da1s1 /newdisk
Add this to /etc/fstab so that it mounts at boot:
/dev/da1s1 /newdisk ufs rw 2 2
-
@KOM:
Ok, so it sees your disk. I'm not sure what your problem is then. Just partition, format and mount it as per the guide I linked to:
# gpart create -s GPT da1 # gpart add -t freebsd-ufs da1 # newfs -U /dev/da1s1 # mkdir /newdisk # mount /dev/da1s1 /newdisk
Add this to /etc/fstab so that it mounts at boot:
/dev/da1s1 /newdisk ufs rw 2 2
Thank you KOM
the problem is when i run the commandnewfs -U /dev/da1s1
it said command not found !
[2.2-RELEASE][root@firewall.pfsense.lan]/root: # newfs -U /dev/da1s1
#: Command not found.
[2.2-RELEASE][root@firewall.pfsense.lan]/root: -
#: Command not found.
The # character is meant to represent your shell prompt. You don't actually type that part. No wonder you've been having trouble.
-
@KOM:
#: Command not found.
The # character is meant to represent your shell prompt. You don't actually type that part. No wonder you've been having trouble.
sorry mommy mistake
does the commands that has /dev/da1s1 means /dev/da1 for me right ?
i believe dev/da1 is my current install pfsense and dev/da1pl1 is the attached disk ? -
I did explain earlier that when they reference /dev/ada1, you would use/dev/da1. When they use /dev/ada1p1, you would use /dev/da1s1. p means partition, s means slice, but they are basically the same.
-
@KOM:
I did explain earlier that when they reference /dev/ada1, you would use/dev/da1. When they use /dev/ada1p1, you would use /dev/da1s1. p means partition, s means slice, but they are basically the same.
is exactly what i am doing
[2.2-RELEASE][root@firewall.pfsense.lan]/root: newfs -U /dev/da1s1
newfs: /dev/da1s1: could not find special device
[2.2-RELEASE][root@firewall.pfsense.lan]/root: -
I lost track. Are you still trying to figure out how to cache dynamic content? Don't waste too much time. OK?
-
newfs: /dev/da1s1: could not find special device
OK, this one's on me. When using gpart, it will make a partition, not a slice. Try:
newfs -U /dev/da1p1 mkdir /newdisk mount /dev/da1p1 /newdisk
I lost track. Are you still trying to figure out how to cache dynamic content?
We're still going over Unix disk basics at this point.
-
Yeah - Its a nice mental exercise and is good to know (-:
-
@KOM:
newfs: /dev/da1s1: could not find special device
OK, this one's on me. When using gpart, it will make a partition, not a slice. Try:
newfs -U /dev/da1p1 mkdir /newdisk mount /dev/da1p1 /newdisk
I lost track. Are you still trying to figure out how to cache dynamic content?
We're still going over Unix disk basics at this point.
Thank you so much for this KOM,
the Disk is mapped now going to configured it for the cache
Mucht appreciate really and your patients as wellwhen i try to navigate to the new mounted disk i get "access denied "
trying to create a folder for the cashing. -
You probably have to give the proxy user ownership of the folder:
chown proxy:proxy /your_disk_mount_point
-
@KOM:
You probably have to give the proxy user ownership of the folder:
chown proxy:proxy /your_disk_mount_point
KOM you are the man,
thank you