Anda di halaman 1dari 24

Hng dn ci t- cu hnh Openfiler 2.

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.40 LAN 192.168.53.0/24 WIN7 REDHAT 5.5

192.168.53.50

192.168.53.131

Quang Trung IT

Page 1

Hng dn ci t- cu hnh Openfiler 2.99

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

Ti mn hnh gii thiu bn nhn Next qua bc tip theo

Quang Trung IT

Page 2

Hng dn ci t- cu hnh Openfiler 2.99

Chn ngn ng bn mun s dng

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

Hng dn ci t- cu hnh Openfiler 2.99

-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

Hng dn ci t- cu hnh Openfiler 2.99

Quang Trung IT

Page 5

Hng dn ci t- cu hnh Openfiler 2.99

-Chn Next sang mn hnh ci t trnh bootloader cho Openfiler. Chn Next tip

Quang Trung IT

Page 6

Hng dn ci t- cu hnh Openfiler 2.99

Cu hnh a ch IP cho cc card mng c trn h thng, sau nhn Next qua bc tip theo

La chn time-zone s dng cho gi ca h thng

Quang Trung IT

Page 7

Hng dn ci t- cu hnh Openfiler 2.99

Thit t mt khu cho ti khon root

Bm Next qu trnh ci t bt u

Quang Trung IT

Page 8

Hng dn ci t- cu hnh Openfiler 2.99

Qu trnh ci t ang din ra...

Qu trnh ci t kt thc. Nhn Reboot khi ng li h thng

Quang Trung IT

Page 9

Hng dn ci t- cu hnh Openfiler 2.99

-Kt qu

-Giao din qun l Openfiler : User/pass = openfiler/password

Quang Trung IT

Page 10

Hng dn ci t- cu hnh Openfiler 2.99

Cu hnh

3.1 Cu hnh Openfiler

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

Hng dn ci t- cu hnh Openfiler 2.99

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.

-Kt qu sau khi reboot Openfiler

Quang Trung IT

Page 12

Hng dn ci t- cu hnh Openfiler 2.99

-To physical volume


[root@localhost ~]# pvcreate /dev/sda5 Physical volume "/dev/sda5" successfully created [root@localhost ~]#

-To Volume Group AVG

Quang Trung IT

Page 13

Hng dn ci t- cu hnh Openfiler 2.99

Bc 2 : Enable iSCSI Target

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

Hng dn ci t- cu hnh Openfiler 2.99

Bc 5 : Map network v volume T GUI > chn tab Volumes > chn iSCSI Target -Add iSCSI Target

-LUN Mapping

Quang Trung IT

Page 15

Hng dn ci t- cu hnh Openfiler 2.99

-Network ACL

3.2 Cu hnh Win7

Bc 1 : Khi chy iSCSI

Quang Trung IT

Page 16

Hng dn ci t- cu hnh Openfiler 2.99

Quang Trung IT

Page 17

Hng dn ci t- cu hnh Openfiler 2.99

Bc 2 : S dng a cng trn Openfiler Vo Computer Management v click Disk Management.

Quang Trung IT

Page 18

Hng dn ci t- cu hnh Openfiler 2.99

Quang Trung IT

Page 19

Hng dn ci t- cu hnh Openfiler 2.99

Quang Trung IT

Page 20

Hng dn ci t- cu hnh Openfiler 2.99

Quang Trung IT

Page 21

Hng dn ci t- cu hnh Openfiler 2.99

3.3 Cu hnh Redhat

Bc 1: Ci t iscsi-initiator cho redhat


[root@localhost Server]# rpm -Uvh iscsi-initiator-utils-6.2.0.871-0.16.el5.i386.rpm Preparing... ########################################### [100%]

package iscsi-initiator-utils-6.2.0.871-0.16.el5.i386 is already installed


Quang Trung IT Page 22

Hng dn ci t- cu hnh Openfiler 2.99

[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]#

Bc 4 : s dng a cng ny cn restart service iscsi


[root@localhost Server]# /etc/init.d/iscsi restart Stopping iSCSI daemon: iscsid dead but pid file exists Starting iSCSI daemon: [ OK ] Setting up iSCSI targets: Logging in to [iface: default, target: iqn.200601.com.openfiler:tsn.fa0039b31810, portal: 192.168.53.40,3260] Login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.fa0039b31810, portal: 192.168.53.40,3260]: successful [ OK ] [ OK ] [ OK ]

Quang Trung IT

Page 23

Hng dn ci t- cu hnh Openfiler 2.99

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

Anda mungkin juga menyukai