2008. 12. 1. 18:17

/home 에 하드내용 추가하기

제가 관리하는 /home 18GB 디스크 사용량이 다 차면서
추가로 하드 디스크를 추가하려고 합니다.

기존의 /home의 18GB에 새로 추가하는 18GB의 하드를 합쳐서
36GB가의 하드 디스크를 만들려고 하는데 어떻게 하는지 막막합니다.

그냥 포맷해서 마운트 시키면 된다고 하는데 어떻게 하는 것인지 설명 좀 부탁드립니다.



lvm 은 안정성에서 비추입니다.
kldp 에서도 권순선님이 당한(?) 글이 있습니다.

그낭 /home2 로 하나 새로 마운트 해서,
기존 계정중 좀 용량 큰것 하나만 옮기고,

.bash_profile 에 useradd -b /home2 를 alias 해 놓는정도가 간단할것 같네요.



2006. 8. 1. 14:14

관련사이트

2006. 8. 1. 14:12

Rsync서버백업

rsync -av --update --delete /usr/backup www.bsdian.com:/home/woosu_backup
2006. 8. 1. 14:12

Running Windows Applications On FreeBSD

2006. 8. 1. 14:11

MRTG For Postfix


NOTE:?This hack needs the File:?:Tail perl module by Matija Grabnar.
Download it from CPAN and install it first.
See 'man CPAN' for more info about installing CPAN modules.

DOWNLOAD

You need to download the following three scripts:

update-mailstats.pl
mailstats.pl
mrtg-mailstats.pl

save them all in /usr/local/bin and make them executable.

if you save them in a different directory then you will have to edit the
following line in mrtg-mailstats.pl:

$mailstats = "/usr/local/bin/mailstats.pl" ;

HOWTO


1. run the update-mailstats.pl program in the background like so:

update-mailstats.pl &

(you probably want to write a wrapper script to restart it in case it
ever gets killed.)

this updates a file called /tmp/stats.db (adjust to suit your needs)
with the inbound and outbound mail stats.

the logic of this script is extremely simple (and probably far from
perfect):

if the line contains "status=sent" then figure out the transport from
the "relay=" part of the line. if relay= contains "[" then assume it's
an IP address, and transport is smtp. otherwise, transport is whatever
the "relay=" bit says.

if line contains "smtpd.*client=" then we've received a message via
smtp. if line contains "pickup.*(sender|uid)=" then we've received a
message from a local user.

very simple, mostly works. i'm sure there are cases which it doesn't
catch. if you can improve it, let me know.

to tell the truth, it doesn't matter if it's 100% accurate or not.
the point is to give a pretty graph of some meaningless numbers to
management types. they love it :)



2. if you want to see the raw data, use the mailstats.pl script:

$ mailstats.pl
RECEIVED:?local 162
RECEIVED:?smtp 4253
SENT:?local 4101
SENT:?smtp 5118



3. add lines like the following to your mrtg.cfg:


#---------------------------------------------------------------#
# MRTG mail cfg: Postfix mailstats plotting with MRTG #
#---------------------------------------------------------------#
Target?postfix: /usr/local/bin/mrtg-mailstats.pl
Options?postfix: gauge, growright
Title?postfix: Postfix Statistics
?PageTop?postfix: <H1>Postfix Statistics</H1>
?WithPeak?postfix: dwmy
?YLegend?postfix: No. of messages
?ShortLegend?postfix: messages
?LegendI?postfix:  Incoming:
?LegendO?postfix:  Outgoing:
#---------------------------------------------------------------#

this runs the mrtg-mailstats.pl programs which totals the RECEIVED and
SENT lines output by mailstats.pl and then outputs it in a form
suitable for MRTG. it keeps the previous RECEIVED and SENT counts in
/tmp/mailstats.old


위와 같이 하면 성공.

update-mailstats.pl & 을 실행했을때, 아래와 같은 에러 메세지를 출력한다면,
Can't locate File/Tail.pm in @INC.....


# wget http://search.cpan.org/CPAN/authors/id/M/MG/MGRABNAR/File-Tail-0.98.tar.gz# tar xvfz File-Tail-0.98.tar.gz# cd File-Tail-0.98# perl Makefile.PL# make# make test# make install하여, File-Tail을 설치를 해준다...