back post for updates as per last Friday
since the last post, been trying to set up our next feature. checked with Mr Kravtiz regarding any specific method/platforms to use for failover clusters. Was told that we need to use iSCSI target on linux system.
Created Debian 5 OS, did basic set up of OS, configured static ip address of 192.168.145.143, joined to nypfypj.com domain.
Tried installed iSCSI target after that, had some problems regarding package not found, tried to look online for solutions regarding installing iSCSI targets. explored abit and found out that we should make use of the ISO images Mr Kravitz passed us (thank you!).
added the packages (from the ISO image) using the Synaptic Package Manager to add all 5 ISO images.
from the debian terminal,
sudo aptitude install iscsitarget iscsitarget-modules-`uname -r`
mounted dvd3 and dvd4 (as requested by installation steps.
nano /etc/default/iscsitarget
ISCSITARGET_ENABLE set to true (control o to save, control x to exit)
tried to use lvcreate -L5gb -n storage vg0 to create a logical volume of 5GB to use as storage (but failed, returned bash lvcreate not found)
researched on how to install lvcreate commands, checked in with Mr Kravtiz on progress made. Told him about problems encounted regarding setting up of debian storage. He came down to take a look at why commands weren't found (as he said that by default LVM (logical volume manager) commands should be installed.
Before he came down, was actually trying to follow these steps to install LVM on debian. But he came down midway and taught us an easier method by searching the source.list for packages avaliable on the computer (through the cds or downloads already made)
aptitude search (package name)
e.g. aptitude search lvm

apt-get install lvm2 (to install lvm commands/functions)
man lvcreate to check that command exists (successful)
tried out following steps
fdisk /dev/hda
You will not be able to write the partition table.
Note:sector size is 2048 (not 512)
Device contains neither a valid DOS partition table nor SUN, SGI or OSF disklabel
Building a new DOS disk identifier 0x3af51ba2.
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)
enter n (add new partition)
enter e
Partition number (1-4): 1
First cylinder (1-142, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-142, default 142):
failed to open dev/hda. failed to write to partition disk
did some research regarding failure to open dev/hda, found out from here that we are able to use fdisk -l command to check what disks are avalible on the system
reverted back to snapshot taken after LVM2 was installed. shut down debian client, edited virtual machine settings of client.
Click add, harddisk, next, 5gb disk size, debian-storage, finish, ok, booted client
opened terminal on debian, su, entered password, fdisk -l (to view disks)

tried out following steps (from 3.1 onwards)
fdisk /dev/sdb
n(new partition), p (physical), (1, 652) w(rite to disk)
fdisk -l (check changes)

fdisk /dev/sdb
p (print partition table)
t (change a partition system id)
select partition: 1
hex code: 8e (changed system type of partition 1 to 8e (Linux LVM)
p (print partition table)
w(rite to table)
pvcreate /dev/sdb1 (physical volume "/dev/sdb1" successfully created)
vgcreate storage /dev/sdb1 (volume group "storage' successfully created)
use vgdisplay -v storage (to view group info)

lvcreate -L 4.8g -n hdd storage (successfully created)

mke2fs /dev/storage/hdd

mount /dev/storage/hdd /mnt
ls /mnt
nano /etc/ietd.conf
comment everything out. Add in below codes
Target iqn.2009-04.com.nypfypj:hdd
IncomingUser someuser secret
OutgoingUser
Lun 0 Path=/dev/storage/hdd,Type=fileio
Alias hdd
#MaxConnections 6
Save file. exit
nano /etc/initiators.allow
iqn.2009-04.com.nypfypj:hdd 192.168.145.141
save file. exit
/etc/init.d/iscsitarget start
Starting iSCSI enterprise target service: succeeded.

on ADS
Control panel -> iSCSI Initiator -> Yes -> Yes
under Targets tab able to see target disk
iqn.2009-04.com.nypfypj:hdd : status inactive
click log on. check atomatically restore this connection when the computer starts and click ok
log in fail. message shown: authentication failed.
did some research online, which asked me to try check my CHAP settings or to leave out authentication
back on debian client.
open terminal
nano /etc/ietd.conf
commented out IncomingUser/OutgoingUser
reboot client
refresh target list on ADS
iqn.2009-04.com.nypfypj:hdd : status inactive
click log on. check atomatically restore this connection when the computer starts and click ok
iqn.2009-04.com.nypfypj:hdd : status connected

open Computer management (Compmgmt.msc) -> Disk management
able to see 4.8gb of harddisk space

right click Disk 1, click on Online
right click again, click on Initialize Disk, leave default settings, click ok

right click on the disk, click New Simple Volume, next, next, assign drive letter: E, next, next, finish

opened my computer, checked that able to access new drive E: created a text file typed in some words. saved.
above steps are found in a mixture of websites which helped enable us to create debian storage which can be used on windows server 2008 (ads)
- setting up of iSCSI on debian 5
- connecting windows server 2008 to iSCSI server
since the last post, been trying to set up our next feature. checked with Mr Kravtiz regarding any specific method/platforms to use for failover clusters. Was told that we need to use iSCSI target on linux system.
Created Debian 5 OS, did basic set up of OS, configured static ip address of 192.168.145.143, joined to nypfypj.com domain.
Tried installed iSCSI target after that, had some problems regarding package not found, tried to look online for solutions regarding installing iSCSI targets. explored abit and found out that we should make use of the ISO images Mr Kravitz passed us (thank you!).
added the packages (from the ISO image) using the Synaptic Package Manager to add all 5 ISO images.
from the debian terminal,
sudo aptitude install iscsitarget iscsitarget-modules-`uname -r`
mounted dvd3 and dvd4 (as requested by installation steps.
nano /etc/default/iscsitarget
ISCSITARGET_ENABLE set to true (control o to save, control x to exit)
tried to use lvcreate -L5gb -n storage vg0 to create a logical volume of 5GB to use as storage (but failed, returned bash lvcreate not found)
researched on how to install lvcreate commands, checked in with Mr Kravtiz on progress made. Told him about problems encounted regarding setting up of debian storage. He came down to take a look at why commands weren't found (as he said that by default LVM (logical volume manager) commands should be installed.
Before he came down, was actually trying to follow these steps to install LVM on debian. But he came down midway and taught us an easier method by searching the source.list for packages avaliable on the computer (through the cds or downloads already made)
aptitude search (package name)
e.g. aptitude search lvm

apt-get install lvm2 (to install lvm commands/functions)
man lvcreate to check that command exists (successful)
tried out following steps
fdisk /dev/hda
You will not be able to write the partition table.
Note:sector size is 2048 (not 512)
Device contains neither a valid DOS partition table nor SUN, SGI or OSF disklabel
Building a new DOS disk identifier 0x3af51ba2.
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)
enter n (add new partition)
enter e
Partition number (1-4): 1
First cylinder (1-142, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-142, default 142):
failed to open dev/hda. failed to write to partition disk
did some research regarding failure to open dev/hda, found out from here that we are able to use fdisk -l command to check what disks are avalible on the system
reverted back to snapshot taken after LVM2 was installed. shut down debian client, edited virtual machine settings of client.
Click add, harddisk, next, 5gb disk size, debian-storage, finish, ok, booted client
opened terminal on debian, su, entered password, fdisk -l (to view disks)

tried out following steps (from 3.1 onwards)
fdisk /dev/sdb
n(new partition), p (physical), (1, 652) w(rite to disk)
fdisk -l (check changes)

fdisk /dev/sdb
p (print partition table)
t (change a partition system id)
select partition: 1
hex code: 8e (changed system type of partition 1 to 8e (Linux LVM)
p (print partition table)

w(rite to table)
pvcreate /dev/sdb1 (physical volume "/dev/sdb1" successfully created)
vgcreate storage /dev/sdb1 (volume group "storage' successfully created)
use vgdisplay -v storage (to view group info)

lvcreate -L 4.8g -n hdd storage (successfully created)

mke2fs /dev/storage/hdd

mount /dev/storage/hdd /mnt
ls /mnt
nano /etc/ietd.conf
comment everything out. Add in below codes
Target iqn.2009-04.com.nypfypj:hdd
IncomingUser someuser secret
OutgoingUser
Lun 0 Path=/dev/storage/hdd,Type=fileio
Alias hdd
#MaxConnections 6
Save file. exit
nano /etc/initiators.allow
iqn.2009-04.com.nypfypj:hdd 192.168.145.141
save file. exit
/etc/init.d/iscsitarget start
Starting iSCSI enterprise target service: succeeded.

on ADS
Control panel -> iSCSI Initiator -> Yes -> Yes
under Targets tab able to see target disk
iqn.2009-04.com.nypfypj:hdd : status inactive
click log on. check atomatically restore this connection when the computer starts and click ok
log in fail. message shown: authentication failed.
did some research online, which asked me to try check my CHAP settings or to leave out authentication
back on debian client.
open terminal
nano /etc/ietd.conf
commented out IncomingUser/OutgoingUser
reboot client
refresh target list on ADS
iqn.2009-04.com.nypfypj:hdd : status inactive
click log on. check atomatically restore this connection when the computer starts and click ok
iqn.2009-04.com.nypfypj:hdd : status connected

open Computer management (Compmgmt.msc) -> Disk management
able to see 4.8gb of harddisk space

right click Disk 1, click on Online
right click again, click on Initialize Disk, leave default settings, click ok

right click on the disk, click New Simple Volume, next, next, assign drive letter: E, next, next, finish

opened my computer, checked that able to access new drive E: created a text file typed in some words. saved.
above steps are found in a mixture of websites which helped enable us to create debian storage which can be used on windows server 2008 (ads)
- setting up of iSCSI on debian 5
- connecting windows server 2008 to iSCSI server


