Archive for April, 2012

Tips: how to add new disk to existing VG in Lvm2

We added new Hard disk. need add it to existing DG

take sdb as newly added disk

Step1: Format new disk and label as LVM disk
fdisk /dev/sdb
n -> p -> 1 -> return twice -> t -> 8e -> w

Step2: Create FS on new disk
mkfs.ext3 /dev/sdb1

Step3: Create as PV
pvcreate /dev/sdb1
Read the rest of this entry »


No Comments

Some tips: Vsftpd configuration

Vsftpd tips:

All following update /etc/vsftpd/vsftpd.conf

How to change the default public root ?

I don’t want let my firewall too open. then define the min/max port.

iptable setting. 20 is for data
# for FTP
-A INPUT -m state –state NEW -m tcp -p tcp –dport 20 -j ACCEPT
-A INPUT -m state –state NEW -m tcp -p tcp –dport 21 -j ACCEPT
-A INPUT -m state –state NEW -m tcp -p tcp –dport 60000:65000 -j ACCEPT

Vsftp default turn Passive on, How to disable it ?


No Comments