Archive for the ‘FreeBSD’ Category
Sunday, November 9th, 2014
if you get error message : 'Could not load host key: /etc/ssh/ssh_host_ecdsa_key' when restarting ssh, after an upgrade from FreeBSD 8.x to 9.x
You need to create new ecdsa key with following command
#ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N
then you should restart the sshd service
#/etc/rc.d/sshd restart
Posted in FreeBSD | No Comments »
Wednesday, April 16th, 2014
$ cat filename | col -b > newfilename
Posted in FreeBSD, Uncategorized | No Comments »
Monday, July 8th, 2013
smartctl -a /dev/ad4
Posted in FreeBSD | No Comments »
Friday, June 10th, 2011
#mdmfs -s 4G md10 /mnt/ramdisk
Posted in FreeBSD | No Comments »
Friday, April 15th, 2011
Как защитит наиболее важные файлы от случайного удаления или изменения (так что бы даже root не смог их удалить)?
The chflags utility modifies the file flags of the listed files as specified by the flags operand.FreeBSD offers write protection, you need to to set special bit call immutable. Once this bit ...
Posted in FreeBSD | No Comments »
Friday, April 15th, 2011
[sourcecode language="bash"]cd /usr
tar -cvf /user/usr.tar .
cd /user
tar -xvpf ./usr.tar[/sourcecode]
Posted in FreeBSD | No Comments »
Friday, April 15th, 2011
добавляем в /etc/rc.conf
[sourcecode language="bash"]ifconfig_em0="inet 192.168.1.1 netmask 255.255.255.0"
ifconfig_em0_alias0="link 00:12:34:56:78:90"[/sourcecode]
Posted in FreeBSD | No Comments »
Thursday, March 11th, 2010
Тестируем 100 раз хард перед продакшеном:
bonnie++ -u root -d /share/ -n 100:150000:100:100 -x 100
Posted in FreeBSD | No Comments »
Thursday, March 11th, 2010
Айвон Форэс (Ivan Voras)
Перевод: Алексей Федорчук
Оригинал
20 Сентябрь 2007 г
Это, конечно, здорово, что поддержка ZFS ныне включена дерево исходников, но что теперь с ней делать? Ниже вы найдете некоторые инструкции, как быстро подключить и запустить ее.
Прежде всего, вам потребуются некоторые диски. Предполим, что у вас имеется три запасных диска SCSI: da0, ...
Posted in FreeBSD | No Comments »
Thursday, March 11th, 2010
Проверка скорости записи на хард:
[root@ /share/tmp]# dd if=/dev/zero of=file bs=8k count=100k
102400+0 records in
102400+0 records out
838860800 bytes transferred in 11.158755 secs (75175124 bytes/sec)
Проверка скорости чтения с харда:
[root@ /share/tmp]# dd if=file of=/dev/zero bs=8k count=100k
102400+0 records in
102400+0 records out
838860800 bytes transferred in 9.379525 secs (89435318 bytes/sec)
Posted in FreeBSD | No Comments »