(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
- Aug 04 Tue 2009 00:05
[雜記]RHCE筆記整理-RH133-Unit9(2)
- Aug 03 Mon 2009 23:43
[雜記]RHCE筆記整理-RH133-Unit9(1)
Advanced Filesystem Management
Tools:
#tar
#dump
#restore
Ex:
dump -0u -f /dev/nst0 /dev/hda2
- Aug 03 Mon 2009 23:21
[雜記]RHCE筆記整理-RH133-Unit5(3)
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
- Aug 03 Mon 2009 23:09
[雜記]RHCE筆記整理-RH133-Unit5(2)
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
- Aug 03 Mon 2009 22:29
[雜記]RHCE筆記整理-RH253-Unit3(1)
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