99
HNG DN CI T-CU HNH OPENFILER 2.99 1 Gii thiu -OpenFiler l 1 software c ci t trn nn Redhat c chc nng qun l cc thit b lu tr (Network Storage Appliances) cho cc ng dng doanh nghip nh hay mng gia nh. -OpenFiler gi lp h thng SAN, n cung cp giao thc iSCSI c th d dng kt ni ti Win7, LinuxDi y l m hnh Lab thc hin ton b vic ci t, cu hnh kt ni gia OpenFiler-Win7-Linux :
TOPO Openfiler-Win7-Redhat5
OPENFILER 2.99
192.168.53.50
192.168.53.131
Quang Trung IT
Page 1
2 Ci t Bt u ci t bn b a Openfiler vo CD/DVD-ROM Sau khi khi nhn khi ng mn hnh Boot s hin th
Quang Trung IT
Page 2
Khi ci t openfiler trn a cng mi cha phn vng s xut hin cnh bo =>Chn OK
-Sau khi chon Yes, mn hnh ci t partition xut hin. y phi chn Create custom layout > Next
Quang Trung IT Page 3
-Mn hnh cu hnh layout hin ln. Ci t Linux cn ti thiu 3 partition : /boot : dung lng ti thiu 100MB v phi l primary partition Swap : dung lng =2*RAM / : dung lng ty thch > 10GB -Chi tit ci t 3 phn vng nh hnh bn di
Quang Trung IT
Page 4
Quang Trung IT
Page 5
-Chn Next sang mn hnh ci t trnh bootloader cho Openfiler. Chn Next tip
Quang Trung IT
Page 6
Cu hnh a ch IP cho cc card mng c trn h thng, sau nhn Next qua bc tip theo
Quang Trung IT
Page 7
Bm Next qu trnh ci t bt u
Quang Trung IT
Page 8
Quang Trung IT
Page 9
-Kt qu
Quang Trung IT
Page 10
Cu hnh
Bc 1 : To Volumn Group -Hin ti Openfiler 2.99 gp li khng to c Physical volume t giao din do ta phi cu hnh physical volume t dng lnh. S dng phn mm putty ssh vo server Openfiler ti a ch 192.168.53.78
login as: root root@192.168.53.78's password: Last login: Thu Jul 5 13:31:27 2012 [root@localhost ~]# [root@localhost ~]# fdisk /dev/sda Command (m for help): n Command action e extended p primary partition (1-4) e Selected partition 4 First sector (22796235-41943039, default 22796235): Using default value 22796235 Last sector, +sectors or +size{K,M,G} (22796235-41943039, default 41943039): Using default value 41943039 Command (m for help): n First sector (22798283-41943039, default 22798283): Using default value 22798283 Last sector, +sectors or +size{K,M,G} (22798283-41943039, default 41943039): Using default value 41943039
Quang Trung IT Page 11
Command (m for help): t Partition number (1-5): 5 Hex code (type L to list codes): 8e Changed system type of partition 5 to 8e (Linux LVM) Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) Syncing disks.
-T giao din GUI >Volumes>Block Devices nu xut hin nh hnh v th reboot li h thng.
Quang Trung IT
Page 12
Quang Trung IT
Page 13
Bc 3 : To volume trong VG AVG cp cho cc user T giao din > chn tab Volumes> chn Add Volume
Bc 4 : Cu hnh IP/network c th truy nhp Openfiler T GUI > chn tab System > Nhp tn, IP, netmask v chn Update nh hnh. Ch nu l IP th nhp mask l 255.255.255.255
Quang Trung IT
Page 14
Bc 5 : Map network v volume T GUI > chn tab Volumes > chn iSCSI Target -Add iSCSI Target
-LUN Mapping
Quang Trung IT
Page 15
-Network ACL
Quang Trung IT
Page 16
Quang Trung IT
Page 17
Quang Trung IT
Page 18
Quang Trung IT
Page 19
Quang Trung IT
Page 20
Quang Trung IT
Page 21
[root@localhost Server]#
Bc 2 : Start iscsi
[root@localhost Server]# chkconfig iscsi on [root@localhost Server]# chkconfig iscsid on [root@localhost Server]# /etc/init.d/iscsi start iscsid is stopped Starting iSCSI daemon: [ OK ] Setting up iSCSI targets: iscsiadm: No records found! [ OK ] [root@localhost Server]# [ OK ]
Bc 3 : Tm kim iSCSI
[root@localhost Server]# iscsiadm -m discovery -t sendtargets -p 192.168.53.40 192.168.53.40:3260,1 iqn.2006-01.com.openfiler:tsn.fa0039b31810 [root@localhost Server]#
Quang Trung IT
Page 23
Bc 5 : Test
[root@localhost Server]# fdisk -l Disk /dev/sda: 21.4 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot /dev/sda1 * /dev/sda2 /dev/sda3 Start 1 14 1926 End 13 1925 2056 Blocks Id System 104391 83 Linux 15358140 83 Linux 1052257+ 82 Linux swap / Solaris
Disk /dev/sdb: 53.0 GB, 53083111424 bytes 64 heads, 32 sectors/track, 50624 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Disk /dev/sdb doesn't contain a valid partition table
Quang Trung IT
Page 24