Openfiler 2.99.1 Single node Installation by Ahmad Adnan

Learn | Teach Open Source Technologies

Openfiler 2.99.1 Single node Installation by Ahmad Adnan

Openfiler 2.99.1

Single node Installation with RAID iSCSI and Physical Volume

Step by Step with Screenshots

Compiled by: Ahmad Adnan

Dated: June 14, 2014

OS:         Openfiler ESA, version 2.99.1

RAM:     512

HDD:      8GB

/boot    100MB

/              2048MB

swap     1024MB

Openfiler-2

====================================================

 

san1.Openfiler

LAN Interface eth0          192.168.1.100

LAN Interface eth1          192.168.1.101

LAN Interface eth2          192.168.1.102

LAN Interface eth3          192.168.1.103

 

bond0 Static 192.168.1.200 255.255.255.0

 

san2.Openfiler

LAN Interface eth0          192.168.1.110

LAN Interface eth1          192.168.1.111

LAN Interface eth2          192.168.1.112

LAN Interface eth3          192.168.1.113

 

bond0 Static 192.168.1.201 255.255.255.0

 

### Web Access GUI

Open following in web browser:

 

https://192.168.1.110:446/

 

username: openfiler

password: password

 

#### Creating bonded interface from 4 ethernet interfaces:

### Why? If any Interface is down, other interfaces will keep the network service up

 

System > Click on Create bonded interface

 

And follow steps as below:

Bonded-1

Bonded-2

Bonded-3

bond0     Link encap:Ethernet HWaddr

inet addr:192.168.1.201 Bcast:192.168.1.255 Mask:255.255.255.0

inet6 addr: fe80::a00:27ff:fe83:68fc/64 Scope:Link

UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1

RX packets:7180 errors:0 dropped:0 overruns:0 frame:0

TX packets:2088 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:768617 (750.6 KiB) TX bytes:783871 (765.4 KiB)

….

### Web Access GUI

Reopen following in web browser as eth0-3 IPs are bounded to following IP:

 

https://192.168.1.201:446/

username: openfiler

password: password

 

#### Check bond 0 in Network usage in the following:

Bonded-4

==============================================

Volume Management – Software RAID

==============================================

 

Volumes > Block Devices

sw-raid-1

Click on /dev/sda

sw-raid-2

### Image below depicts 3 partitions we have made during Openfiler setup, besides we have 61% of free disk space i.e. 4.89GB

sw-raid-3

### Important note: Openfiler 2.99 has a bug that it does not continue from exact Starting cylinder, we must atleast choose 20 cylinders more

### Select default as above but change Starting cylinder to 20+ i.e. 426 and press Create to create an Extended partition.

### /dev/sda4 Extended partition (0x5) is created and enabling now for Mode: Logical in the end.

sw-raid-4

### Create 3 Logical RAID array members as following:

###Note: We have to use 1 more Starting cylinder due to Openfiler bug mentioned earler

 

RAID member 1:

sw-raid-5

RAID member 2:

sw-raid-6

RAID member 3:

sw-raid-7

Final Disk Layout:

### Note: All RAID Partitions should be of same size.

sw-raid-8

Click on Software Raid under Volumes section:

sw-raid-9

### Read carefully about RAID configuration to know what you want and what you are doing.
### Select RAID-5 (parity) Click on all 3 available devices (/dev/sda5-7) and click on Add array

### /dev/md0 RAID Array is created as below, click on View members and you will see the members window

sw-raid-10

Click on Add Volumes under Volumes section:

sw-raid-11

Type in Volume group name (no spaces) as above (e.g. ardata), tick the check box and click on Add volume group.

sw-raid-12

Volume Group ardata with 1.44GB size is created as above.

 

Click on Manage Volumes under Volumes section, to verify volume group ardata.

sw-raid-13

Click on Add Volume under Volumes section, to add iSCSI disk.

Fill in the fields Volume Name, etc and move slider to the end, to use all space, select block in Filesystem/Volume type. Click on Create

sw-raid-14

Volume is created:

sw-raid-15

Click on iSCSI Targets under Volumes section:

sw-raid-16

### If you find Target IQN disabled/Greyed out then you must start the iSCSI service:

You can see that iSCSI Target is Disabled and Stopped

sw-raid-17

Click on Enable and Start.

sw-raid-18

Click on Volumes main menu, and Click on iSCSI Targets under Volumes section:

sw-raid-19

Edit Target IQN e.g. iqn.2014-08.com.san2:openfiler.iscsisan4san2 but follow the defined pattern and click on Add button.

 

Press Update button with defaults:

sw-raid-20

Click on LUN (Logical Unit Number) Mapping:

sw-raid-21

And click on Map button

sw-raid-22

On another Linux machine run the following commands to access iSCSI:

 

[root@localhost ~]# iscsiadm -m discovery -t sendtargets -p 192.168.1.201

 

192.168.1.201:3260,1 iqn.2014-08.com.san2:openfiler.iscsisan4san2

 

[root@localhost ~]# /etc/init.d/iscsi restart

iscsiadm: No matching sessions found

Stopping iSCSI daemon:

iscsid is stopped                                                              [ OK ]

Starting iSCSI daemon:                                                  [ OK ]

[ OK ]

Setting up iSCSI targets: Logging in to [iface: default, target: iqn.2014-08.com.san2:openfiler.iscsisan4san2, portal: 192.168.1.201,3260] (multiple)

Login to [iface: default, target: iqn.2014-08.com.san2:openfiler.iscsisan4san2, portal: 192.168.1.201,3260] successful.                                     [ OK ]

 

Back In web browser GUI, Click on Status main menu, under Status section click on iSCSI Targets:

sw-raid-23

 

You can see that iSCSI Target is being accessed by which client, click on View and you will find the IP address of Machine which is accessing the iSCSI Target. Click on Close Window to return on Main menu.

 

To have proper machine name in Initiator Name, edit the following file as:

 

[root@localhost ~]# vi /etc/iscsi/initiatorname.iscsi

Change from:

InitiatorName=iqn.1994-05.com.redhat:f58a244c8ec

 

To:

 

InitiatorName=iqn.2014-06.com.CentOS5-RAW:server-blank

 

Save & exit.

 

[root@localhost ~]# /etc/init.d/iscsi restart

Logging out of session [sid: 1, target: iqn.2014-08.com.san2:openfiler.iscsisan4san2, portal: 192.168.1.201,3260]

Logout of [sid: 1, target: iqn.2014-08.com.san2:openfiler.iscsisan4san2, portal: 192.168.1.201,3260] successful.

Stopping iSCSI daemon:

iscsid is stopped                                               [ OK ]

Starting iSCSI daemon:                                 [ OK ]

[ OK ]

Setting up iSCSI targets: Logging in to [iface: default, target: iqn.2014-08.com.san2:openfiler.iscsisan4san2, portal: 192.168.1.201,3260] (multiple)

Login to [iface: default, target: iqn.2014-08.com.san2:openfiler.iscsisan4san2, portal: 192.168.1.201,3260] successful.               [ OK ]

 

Back In web browser GUI, Click on Status main menu, under Status section click on iSCSI Targets:

sw-raid-24

 

You can see the Initiator Name is changed as we changed earlier with same IP address.

 

On Linux machine by running fdisk -l will show that iSCSI disk (/dev/sdc) is available:

 

[root@localhost ~]# fdisk -l

 

Disk /dev/sda: 8589 MB, 8589934592 bytes

255 heads, 63 sectors/track, 1044 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

Device Boot     Start         End     Blocks   Id System

/dev/sda1   *           1         13     104391   83 Linux

/dev/sda2             14      1044     8281507+ 8e Linux LVM

 

Disk /dev/sdb: 3221 MB, 3221225472 bytes

255 heads, 63 sectors/track, 391 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

Device Boot     Start         End     Blocks   Id System

 

Disk /dev/sdc: 1543 MB, 1543503872 bytes

48 heads, 62 sectors/track, 1012 cylinders

Units = cylinders of 2976 * 512 = 1523712 bytes

 

Disk /dev/sdc doesn’t contain a valid partition table

 

=================================================

Partitioning the iSCSI disk

=================================================

 

[root@localhost ~]# fdisk /dev/sdc

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel. Changes will remain in memory only,

until you decide to write them. After that, of course, the previous

content won’t be recoverable.

 

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

 

Command (m for help): p

 

Disk /dev/sdc: 1543 MB, 1543503872 bytes

48 heads, 62 sectors/track, 1012 cylinders

Units = cylinders of 2976 * 512 = 1523712 bytes

 

Device Boot     Start         End     Blocks   Id System

 

Command (m for help): n

Command action

e   extended

p   primary partition (1-4)

p

 

Partition number (1-4): 1

First cylinder (1-1012, default 1):

Using default value 1

Last cylinder or +size or +sizeM or +sizeK (1-1012, default 1012):

Using default value 1012

 

Command (m for help): w

The partition table has been altered!

 

Calling ioctl() to re-read partition table.

Syncing disks.

 

### By running fdisk -l you can witness the /dev/sdc1 is available now

 

[root@localhost ~]# fdisk -l

 

Disk /dev/sda: 8589 MB, 8589934592 bytes

255 heads, 63 sectors/track, 1044 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

Device Boot     Start        End     Blocks   Id System

/dev/sda1   *           1         13     104391   83 Linux

/dev/sda2             14       1044     8281507+ 8e Linux LVM

 

Disk /dev/sdb: 3221 MB, 3221225472 bytes

255 heads, 63 sectors/track, 391 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

Device Boot     Start         End     Blocks   Id System

 

Disk /dev/sdc: 1543 MB, 1543503872 bytes

48 heads, 62 sectors/track, 1012 cylinders

Units = cylinders of 2976 * 512 = 1523712 bytes

 

Device Boot      Start         End     Blocks   Id System

/dev/sdc1               1       1012     1505825   83 Linux

 

=================================================

Define/Format the iSCSI disk with ext3 file system

=================================================

 

[root@localhost ~]# mkfs.ext3 /dev/sdc1

mke2fs 1.39 (29-May-2006)

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

188544 inodes, 376456 blocks

18822 blocks (5.00%) reserved for the super user

First data block=0

Maximum filesystem blocks=385875968

12 block groups

32768 blocks per group, 32768 fragments per group

15712 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840, 229376, 294912

 

Writing inode tables: done

Creating journal (8192 blocks): done

Writing superblocks and filesystem accounting information: done

 

This filesystem will be automatically checked every 22 mounts or

180 days, whichever comes first. Use tune2fs -c or -i to override.

 

=================================================

Mounting iSCSI storage in Linux machine

=================================================

 

[root@localhost ~]# mkdir -p /mnt/iscisan

 

[root@localhost ~]# mount /dev/sdc1 /mnt/iscisan/

 

[root@localhost ~]# ls /mnt/iscisan/

lost+found

 

[root@localhost ~]# mount

/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)

proc on /proc type proc (rw)

sysfs on /sys type sysfs (rw)

devpts on /dev/pts type devpts (rw,gid=5,mode=620)

/dev/sda1 on /boot type ext3 (rw)

tmpfs on /dev/shm type tmpfs (rw)

none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

/dev/sdc1 on /mnt/iscisan type ext3 (rw)

 

### You can see above Bold text which is mounted on /mnt/iscsisan.

### For further availability check run df -hT command:

[root@localhost ~]# df -hT

Filesystem   Type   Size Used Avail Use% Mounted on

/dev/mapper/VolGroup00-LogVol00

ext3   6.7G 2.2G 4.3G 34% /

/dev/sda1     ext3     99M   37M   58M 39% /boot

tmpfs       tmpfs   188M     0 188M   0% /dev/shm

/dev/sdc1     ext3   1.5G   35M 1.4G   3% /mnt/iscisan

 

### You can see above Bold text which is mounted on /mnt/iscsisan.

 

### From following netstat command you will know that which port iSCSI target is attached:

 

[root@localhost ~]# netstat -antp | grep iscsi

tcp       0     0 192.168.1.29:58479         192.168.1.201:3260         ESTABLISHED 4109/iscsid

 

=================================================

To permanently access iSCSI storage in Linux machine

=================================================

 

[root@localhost ~]# vi /etc/fstab

 

### Add the Bold as following to automatically mount iSCSI SAN on /mnt/iscsisan folder.

### Change defaults to _netdev, because if anytime at Linux machine reboot iSCSI san is not found / unavailable it will not halt/pause booting process.

 

/dev/VolGroup00/LogVol00 /                       ext3   defaults       1 1

LABEL=/boot             /boot                   ext3   defaults       1 2

tmpfs                   /dev/shm               tmpfs   defaults       0 0

devpts                 /dev/pts               devpts gid=5,mode=620 0 0

sysfs                   /sys                   sysfs   defaults       0 0

proc                   /proc                   proc   defaults       0 0

/dev/VolGroup00/LogVol01 swap                   swap   defaults       0 0

/dev/sdc1               /mnt/iscsisan           ext3   _netdev         0 0

 

### To check fstab is correctly modified, reboot Linux machine

 

[root@localhost ~]# reboot

sw-raid-25

### You can check in boot process that iscsid (iSCSI daemon) has initialized iSCSI targets and it has logged in and mount successfully.

 

### Check further from Terminal window by running following commands:

 

login as: root

[email protected]’s password:

Last login: Wed Jun 11 23:43:41 2014 from 192.168.1.23

[root@localhost ~]# fdisk -l

 

Disk /dev/sda: 8589 MB, 8589934592 bytes

255 heads, 63 sectors/track, 1044 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

Device Boot     Start         End     Blocks   Id System

/dev/sda1   *           1         13     104391   83 Linux

/dev/sda2             14       1044     8281507+ 8e Linux LVM

 

Disk /dev/sdb: 3221 MB, 3221225472 bytes

255 heads, 63 sectors/track, 391 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

Device Boot     Start         End     Blocks   Id System

 

Disk /dev/sdc: 1543 MB, 1543503872 bytes

48 heads, 62 sectors/track, 1012 cylinders

Units = cylinders of 2976 * 512 = 1523712 bytes

 

   Device Boot     Start         End     Blocks Id System

/dev/sdc1               1       1012     1505825   83 Linux

 

[root@localhost ~]# mount

/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)

proc on /proc type proc (rw)

sysfs on /sys type sysfs (rw)

devpts on /dev/pts type devpts (rw,gid=5,mode=620)

/dev/sda1 on /boot type ext3 (rw)

tmpfs on /dev/shm type tmpfs (rw)

none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

/dev/sdc1 on /mnt/iscsisan type ext3 (rw,_netdev)

 

### Text in Bold displays that iSCSI is mounted after reboot.

 

=================================================

Physical Volume and Volume Group in Openfiler

=================================================

We are going to use remaining space on /dev/sda block device to create Physical Volume.

Click on Block Devices under Volumes section and click on /dev/sda:

sw-raid-2

### Type next number (e.g. 727) in Starting cylinder to the last RAID volume partition (e.g. 726):

sw-raid-26

### You can see below /dev/sda8 Linux Physical Volume (0x8e) is created with 1.97GB size.

sw-raid-27

### Click on Volume Groups under Volumes section, tick the check box to select, type in volume group name (e.g. vgsan) and click on Add volume group.

sw-raid-28

### You can see that ardata (iscsi) is already there in volume group.

sw-raid-29

### vgsan is created with 1.97GB size

 

### Click on Manage Volumes under Volumes section, select vgsan and click on change to verify volume group.

sw-raid-30

### Click on Add Volumes under Volumes section, type in Volume Name, etc and Create:

sw-raid-31

### Note: If you want to create multiple partitions, you can create here.

sw-raid-32

### lvsan Volume is created with 2016MB size

 

Click on iSCSI Targets under Volumes section:

 

Edit Target IQN (e.g. iqn.2014-08.com.san2:openfiler.lvsan4san2) but follow the defined pattern and click on Add button.

sw-raid-33

Press Update button with defaults:

Click on LUN (Logical Unit Number) Mapping:

sw-raid-34

On lv-san-openfiler2, Click on Map:

sw-raid-35

On Linux machine run the following commands to access lvsan:

 

[root@localhost ~]# iscsiadm -m discovery -t sendtargets -p 192.168.1.201

192.168.1.201:3260,1 iqn.2014-08.com.san2:openfiler.lvsan4san2

192.168.1.201:3260,1 iqn.2014-08.com.san2:openfiler.iscsisan4san2

 

[root@localhost ~]# /etc/init.d/iscsi restart

Logging out of session [sid: 1, target: iqn.2014-08.com.san2:openfiler.iscsisan4san2, portal: 192.168.1.201,3260]

Logout of [sid: 1, target: iqn.2014-08.com.san2:openfiler.iscsisan4san2, portal: 192.168.1.201,3260] successful.

Stopping iSCSI daemon:

iscsid is stopped                                             [ OK ]

Starting iSCSI daemon:                                  [ OK ]

[ OK ]

Setting up iSCSI targets: Logging in to [iface: default, target: iqn.2014-08.com.san2:openfiler.iscsisan4san2, portal: 192.168.1.201,3260] (multiple)

Logging in to [iface: default, target: iqn.2014-08.com.san2:openfiler.lvsan4san2, portal: 192.168.1.201,3260] (multiple)

Login to [iface: default, target: iqn.2014-08.com.san2:openfiler.iscsisan4san2, portal: 192.168.1.201,3260] successful.

Login to [iface: default, target: iqn.2014-08.com.san2:openfiler.lvsan4san2, portal: 192.168.1.201,3260] successful.

[ OK ]

Back In web browser GUI, Click on Status main menu, under Status section click on iSCSI Targets:

sw-raid-36

You can see that 2 iSCSI Targets are being accessed by same Linux machine, click on View and you will find the IP address of Machine which is accessing the iSCSI Target. Click on Close Window

Reboot your CentOS Linux Machine and after reboot check fdisk -l:

[root@localhost ~]# reboot

[root@localhost ~]# fdisk -l

Disk /dev/sda: 8589 MB, 8589934592 bytes

255 heads, 63 sectors/track, 1044 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot     Start         End     Blocks   Id System

/dev/sda1   *           1         13     104391   83 Linux

/dev/sda2             14       1044     8281507+ 8e Linux LVM

 

Disk /dev/sdb: 3221 MB, 3221225472 bytes

255 heads, 63 sectors/track, 391 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot     Start         End     Blocks   Id System

Disk /dev/sdc: 1543 MB, 1543503872 bytes

48 heads, 62 sectors/track, 1012 cylinders

Units = cylinders of 2976 * 512 = 1523712 bytes

Device Boot     Start         End     Blocks   Id System

/dev/sdc1               1       1012     1505825   83 Linux

Disk /dev/sdd: 2113 MB, 2113929216 bytes

66 heads, 62 sectors/track, 1008 cylinders

Units = cylinders of 4092 * 512 = 2095104 bytes

Disk /dev/sdd doesn’t contain a valid partition table

### You can see in Bold that /dev/sdd is showed up for lvsan

======================================================

LVM creation through CentOS Logical Volume Management

======================================================

Go to System > Administration and Logical Volume Management

CentOS-5-RAW3

Select from Uninitialized Entities /dev/sdd and click on Initialize button

Yes and Yes

Once Initialized, click on Unallocated Volumes and selection Partition 1

CentOS-5-RAW4

Click on Create new button and fill in as required:

CentOS-5-RAW5

When Volume Group vgsan is created, drop town to reach vsan Logical Volume, click on Create New Logical Volume button and add as desired click OK:

CentOS-5-RAW6

Now the Logical Volume lvsan is active.

CentOS-5-RAW7

Run the following commands to finalize lvsan:

 

[root@localhost ~]# fdisk -l

 

Disk /dev/sda: 8589 MB, 8589934592 bytes

255 heads, 63 sectors/track, 1044 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

Device Boot     Start         End    Blocks   Id System

/dev/sda1   *           1         13     104391   83 Linux

/dev/sda2             14       1044     8281507+ 8e Linux LVM

 

Disk /dev/sdb: 3221 MB, 3221225472 bytes

255 heads, 63 sectors/track, 391 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

Device Boot     Start         End     Blocks   Id System

 

Disk /dev/sdc: 1543 MB, 1543503872 bytes

48 heads, 62 sectors/track, 1012 cylinders

Units = cylinders of 2976 * 512 = 1523712 bytes

 

Device Boot     Start        End     Blocks   Id System

/dev/sdc1               1       1012     1505825   83 Linux

 

Disk /dev/sdd: 2113 MB, 2113929216 bytes

66 heads, 2 sectors/track, 31278 cylinders

Units = cylinders of 132 * 512 = 67584 bytes

 

   Device Boot     Start        End     Blocks   Id System

/dev/sdd1               1       31279     2064383+ 8e Linux LVM

 

### Text in Bold shows /dev/sdd1 is active in fdisk with volume ID 8e i.e. LVM

 

==================================================

Create mount point for lvsan and final configurations

==================================================

[root@localhost ~]# mkdir -p /mnt/vgsan

 

[root@localhost ~]# mount /dev/mapper/vgsan-lvsan /mnt/vgsan/

 

[root@localhost ~]# mount

/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)

proc on /proc type proc (rw)

sysfs on /sys type sysfs (rw)

devpts on /dev/pts type devpts (rw,gid=5,mode=620)

/dev/sda1 on /boot type ext3 (rw)

tmpfs on /dev/shm type tmpfs (rw)

none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

/dev/sdc1 on /mnt/iscsisan type ext3 (rw,_netdev)

/dev/mapper/vgsan-lvsan on /mnt/vgsan type ext3 (rw)

 

[root@localhost ~]# cd /mnt/vgsan/

 

[root@localhost vgsan]# df -hT

Filesystem   Type   Size Used Avail Use% Mounted on

/dev/mapper/VolGroup00-LogVol00

ext3   6.7G 2.2G 4.3G 34% /

/dev/sda1     ext3     99M   37M   58M 39% /boot

tmpfs       tmpfs   188M     0 188M   0% /dev/shm

/dev/sdc1     ext3   1.5G   35M 1.4G   3% /mnt/iscsisan

/dev/mapper/vgsan-lvsan

             ext3   2.0G   35M 1.8G   2% /mnt/vgsan

 

[root@localhost vgsan]# vi /etc/fstab

 

### Add the Bold line in existing fstab file:

 

/dev/VolGroup00/LogVol00 /                       ext3   defaults       1 1

LABEL=/boot            /boot                   ext3   defaults       1 2

tmpfs                   /dev/shm               tmpfs   defaults       0 0

devpts                 /dev/pts               devpts gid=5,mode=620 0 0

sysfs                   /sys                   sysfs   defaults       0 0

proc                   /proc                   proc   defaults       0 0

/dev/VolGroup00/LogVol01 swap                   swap   defaults       0 0

/dev/sdc1               /mnt/iscsisan           ext3   _netdev         0 0

/dev/vgsan/lvsan       /mnt/vgsan             ext3   _netdev         0 0

 

save & exit

 

### Finally reboot CentOS Linux Machine to see if fstab configuration works fine

 

[root@localhost vgsan]# reboot

 

Broadcast message from root (pts/1) (Thu Jun 12 01:32:50 2014):

 

The system is going down for reboot NOW!

[root@localhost vgsan]#

=======================================================

Verifying after system boot if both iSCSI and LV san are available

=======================================================

login as: root

[email protected]’s password:

Last login: Thu Jun 12 01:04:58 2014

 

[root@localhost ~]# df -h

Filesystem           Size Used Avail Use% Mounted on

/dev/mapper/VolGroup00-LogVol00

6.7G 2.2G 4.3G 34% /

/dev/sda1            99M   37M   58M 39% /boot

tmpfs                 188M     0 188M   0% /dev/shm

/dev/sdc1             1.5G   35M 1.4G   3% /mnt/iscsisan

/dev/mapper/vgsan-lvsan

                     2.0G   35M 1.8G   2% /mnt/vgsan

 

[root@localhost ~]# df -hT

Filesystem   Type   Size Used Avail Use% Mounted on

/dev/mapper/VolGroup00-LogVol00

ext3   6.7G 2.2G 4.3G 34% /

/dev/sda1     ext3     99M   37M   58M 39% /boot

tmpfs       tmpfs   188M     0 188M   0% /dev/shm

/dev/sdc1     ext3    1.5G   35M 1.4G   3% /mnt/iscsisan

/dev/mapper/vgsan-lvsan

             ext3   2.0G   35M 1.8G   2% /mnt/vgsan

 

[root@localhost ~]# mount

/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)

proc on /proc type proc (rw)

sysfs on /sys type sysfs (rw)

devpts on /dev/pts type devpts (rw,gid=5,mode=620)

/dev/sda1 on /boot type ext3 (rw)

tmpfs on /dev/shm type tmpfs (rw)

none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

/dev/sdc1 on /mnt/iscsisan type ext3 (rw,_netdev)

/dev/mapper/vgsan-lvsan on /mnt/vgsan type ext3 (rw,_netdev)

 

[root@localhost ~]# fdisk -l

 

Disk /dev/sda: 8589 MB, 8589934592 bytes

255 heads, 63 sectors/track, 1044 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

Device Boot     Start         End     Blocks   Id System

/dev/sda1   *           1         13     104391   83 Linux

/dev/sda2             14       1044     8281507+ 8e Linux LVM

 

Disk /dev/sdb: 3221 MB, 3221225472 bytes

255 heads, 63 sectors/track, 391 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

Device Boot     Start         End     Blocks   Id System

 

Disk /dev/sdc: 1543 MB, 1543503872 bytes

48 heads, 62 sectors/track, 1012 cylinders

Units = cylinders of 2976 * 512 = 1523712 bytes

 

   Device Boot     Start         End     Blocks   Id System

/dev/sdc1               1       1012     1505825   83 Linux

 

Disk /dev/sdd: 2113 MB, 2113929216 bytes

66 heads, 2 sectors/track, 31278 cylinders

Units = cylinders of 132 * 512 = 67584 bytes

 

   Device Boot     Start         End     Blocks   Id System

/dev/sdd1               1       31279     2064383+ 8e Linux LVM

 

 Everything is configured and mounted.

AlhumduLILLAH-i- RUBB-ul-Al’ameen