/etc/network/interfaces for UBUNTU servers.## iSCSI auto eth.<network device number> iface eth.<network device number> inet static address 10.1.1.<###> netmask 255.255.255.0 broadcast 10.1.1.255
RHEL6 will require this to start iSCSI: service iscsid force-start
...and it still might not start.
Run/etc/init.d/iscsid restart; /etc/init.d/iscsi restart
The supplied/etc/iscsi/iscsi.confmust be used.
I have a doctored file that includes the oracle parms at:
http://curubuntu.cc.binghamton.edu/iscsid.config.oracle .
Replace and try this one it could save time later.
cd /var/lib/iscsi/nodes; rm -rf * ... for some recovery add /bin/tar -cvf nodes.tar nodes/* inbetween those two commands.iscsiadm -m iface -I eth1 --op=newvgchange -a y# /sbin/iscsiadm -m node -T iqn name --logout Logging out of session [sid: 1, target: iqn name, portal: 10.1.1.1,3260] Logout of [sid: 1, target: iqn name, portal: 10.1.1.1,3260] successful. # /sbin/iscsiadm -m session -R iscsiadm: No session found. # /sbin/iscsiadm -m node --interface=eth<device number> -T < iqn name > --login Logging in to [iface: eth<device number>, target: < iqn name >, portal: 10.1.1.1,3260] (multiple) Login to [iface: eth<device number>, target: < iqn name >, portal: 10.1.1.1,3260] successful. # /sbin/iscsiadm -m session -R Rescanning session [sid: 2, target: i< iqn name >, portal: 10.1.1.1,3260]-- login to all iscsiadm -m node -l
cd /etc/iscsi/nodesThe LVM GUI is not longer available but the new scheme is actually a bit simpler.
fdisk -l should return the device name that is in /dev generally it will be sdb.
VolGroup01. Use any VG you wish./sbin/pvcreate /dev/sdbpvscan or pvdisplay /sbin/vgcreate VolGroup01 /dev/sdbvgscan or vgdisplay /usr/local/bin/mk-lvcreate.shusage: /usr/local/bin/mk-lvcreate.sh <volgroupname> <size> <logicalvolumename>
size in gigabyte no G
For example: /usr/local/bin/mk-lvcreate.sh VolGroup01 350 u01
Check with lvscan or lvdisplay /usr/local/bin/mk-mkfs.shusage: /usr/local/bin/mk-mkfs.sh <volgroupname>
This will create commands to make the filesystems for the LV's defined above ...
AND if they look good: /usr/local/bin/mk-mkfs.sh <volgroupname> > /tmp/mkfs.sh ; sh /tmp/mkfs.sh
/usr/local/bin/mk-mp.shusage: /usr/local/bin/mk-mp.sh <volgroupname>
This will echo the commands to creating mount points.
AND if they look good: /usr/local/bin/mk-mp.sh <volgroupname> > /tmp/mkmp.sh ; sh /tmp/mkmp.sh
Check with ls -ltr /
/usr/local/bin/mk-fstab-entry.shusage: /usr/local/bin/mk-fstab-entry.sh <volgroupname>
AND if they look good. cp -p /etc/fstab /etc/0.fstab; /usr/local/bin/mk-mp.sh <volgroupname> >> /etc/fstab
Check two ways: cat /etc/fstabumount -a ; ls -ltr ; mount -a ; ls -ltr
cd /etc/iscsi
vi initiatorname.iscsi
iqn.1988-12.com.oracle:c4d4f1486d52iqn.1988-12.com.oracle-adirdb.cc.binghamton.edu
reboot
/sbin/iscsiadm -d4 -m session 2>&1 |grep initiatorname |grep "attribute value"
iscsiadm --mode node
/sbin/iscsiadm --mode node --targetname <iqn name> -- portal 10.1.1.1:3260