(2) Creating Logical Volumes

1. fdisk /dev/sdb (Partition Type: 8e)
2. pvcreate /dev/sdb2
3. vgcreate vg0 /dev/sdb2
4. lvcreate -L 100M -n data vg0
5. mkfs.ext3 /dev/vg0/data

%check
#pvs

aquatower 發表在 痞客邦 留言(0) 人氣()

Advanced Filesystem Management

Tools:

#tar

#dump
#restore
Ex:
dump -0u -f /dev/nst0 /dev/hda2

aquatower 發表在 痞客邦 留言(0) 人氣()

LAB

%create a new filesystem

#fdisk -l /dev/sdb

Disk /dev/sdb: 3253 MB, 3253469184 bytes
101 heads, 62 sectors/track, 1014 cylinders
Units = cylinders of 6262 * 512 = 3206144 bytes

aquatower 發表在 痞客邦 留言(0) 人氣()

Mounting NFS Filesystems

(1)掛載 /etc/fstab
#vi /etc/fstab

%add
#server1:/var/ftp/pub/RHEL5 /mnt/server1 nfs defaults,noauto 0 0
%remount
#mount -a

aquatower 發表在 痞客邦 留言(0) 人氣()

Securing Data

Openssl

*generating digital certificates
#openssl genrsa -out server1.key.pem 1024
#openssl req -new -key server1.key.pem -out server1.csr.pem
#openssl req -new -key server1.key.pem -out server1.crt.pem


aquatower 發表在 痞客邦 留言(0) 人氣()