LAB

1.create accounts
for user in joshua alex dax
do
useradd $user
echo 'passowrd' |passwd --stdin $user
done

2. create groups

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

User Administration

%user's home directories get populated with the files from "/etc/skel/*"


1. Command:
(1)user administration

#useradd [options] username

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

LAB

%add a new partion and set to LVM

1. create LVM (partition type: 8e)

[root@server1 ~]# pvcreate /dev/sdb8
Physical volume "/dev/sdb8" successfully created

[root@server1 ~]# vgcreate vg0 /dev/sdb8

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

LAB

%Raid ( a disk fail)

1.create raid5

#mdadm -C /dev/md0 -l 5 -n 3 /dev/sdb{5,6,7}
#mkfs.ext3 /dev/md0
#cat /proc/mdstat

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

LAB:

Raid

1. create raid1

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

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