LINUX.ORG.RU

iscsi FreeBSD 7.0 - initiator and Linux CentOS 5 target


0

0

Est' dve mashini FreeBSD 7.0 - initiator Linux CentOS 5 2.6.18-53.1.13.el5 -target + initiator

posle montirovanija na Freebsd particij delaem diriktoriju, eta derektorija ne vidna na linux posle mount umoun vse diriktorie pojavljautsja na oboix masinax.

v freebsd vidaet Mar 4 00:06:31 kernel: 0] ism_recv: we lost some rec=0xb2 exp=0x0 -------------------------------------- FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64

# iscontrol -d targetaddress=185.15.113.113 initiatorname=n.2001-04.com.example TargetName=iqn.2001-04.com.example:storage.disk2.amiens.sys1.xyz TargetAddress=185.15.113.113:3260,1 # iscontrol targetaddress=185.15.113.113 initiatorname=n.2001-04.com.example TargetName=iqn.2001-04.com.example:storage.disk2.amiens.sys1.xyz # mount_msdosfs -o rw /dev/da0s1 /mnt/root/ # ls -l /mnt/root/ total 2 drwxr-xr-x 1 root wheel 2048 Mar 5 01:55 testLinux # mkdir /mnt/root/testFreeebsd # ls -l /mnt/root/ total 4 drwxr-xr-x 1 root wheel 2048 Mar 4 00:06 testFreeebsd drwxr-xr-x 1 root wheel 2048 Mar 5 01:55 testLinux Na linux toka : testLinux [centos]# ls -l /mnt/ total 2 drwxr-xr-x 2 root root 2048 Mar 5 01:55 testLinux [centos]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sdc1 94M 2.0K 94M 1% /mnt [centos]# umount /mnt/ [centos]# mount /dev/sdc1 /mnt/ [centos]# ls -l /mnt/ total 4 drwxr-xr-x 2 root root 2048 Mar 4 00:06 testFreeebsd drwxr-xr-x 2 root root 2048 Mar 5 01:55 testLinux

posle razmotirovanija vidit vse takze esli sodaetsja papka na Freebsd delaem

# umount /mnt/root/ # mount_msdosfs -o rw /dev/da0s1 /mnt/root/ # ls -l /mnt/root/ total 4 drwxr-xr-x 1 root wheel 2048 Mar 4 00:06 testFreeebsd drwxr-xr-x 1 root wheel 2048 Mar 5 01:55 testLinux

i toze vse vidit ;-( particiju na ext2fs ne montiruet Mar 4 00:14:12 kernel: WARNING: R/W mount denied. Filesystem is not clean - run fsck

# mount -o rw -t ext2fs /dev/da0s2 /mnt/home/ mount: /dev/da0s2 : Operation not permitted

anonymous

dmesg

Mar 4 00:06:09 kernel: GEOM_LABEL: Label ext2fs//home removed. Mar 4 00:06:09 kernel: GEOM_LABEL: Label msdosfs/ removed. Mar 4 00:06:09 kernel: 0] ism_recv: we lost some rec=0xaf exp=0x0 Mar 4 00:06:31 kernel: 0] ism_recv: we lost some rec=0xb2 exp=0x0 Mar 4 00:06:31 kernel: 0] ism_recv: we lost some rec=0xb3 exp=0x0 Mar 4 00:06:41 kernel: 0] ism_recv: we lost some rec=0xb4 exp=0x0 Mar 4 00:06:41 kernel: 0] ism_recv: we lost some rec=0xb5 exp=0x0 Mar 4 00:06:41 kernel: 0] ism_recv: we lost some rec=0xb6 exp=0x0 Mar 4 00:06:41 kernel: GEOM_LABEL: Label for provider da0 is ext2fs//home. Mar 4 00:06:41 kernel: GEOM_LABEL: Label for provider da0s1 is msdosfs/ . Mar 4 00:06:47 kernel: GEOM_LABEL: Label ext2fs//home removed. Mar 4 00:06:47 kernel: GEOM_LABEL: Label msdosfs/ removed. Mar 4 00:06:47 kernel: 0] ism_recv: we lost some rec=0x13d exp=0x0 Mar 4 00:08:57 kernel: 0] ism_recv: we lost some rec=0x141 exp=0x0 Mar 4 00:08:57 kernel: GEOM_LABEL: Label for provider da0 is ext2fs//home. Mar 4 00:08:57 kernel: GEOM_LABEL: Label for provider da0s1 is msdosfs/ . Mar 4 00:09:00 kernel: GEOM_LABEL: Label ext2fs//home removed. Mar 4 00:09:00 kernel: GEOM_LABEL: Label msdosfs/ removed. Mar 4 00:09:00 kernel: 0] ism_recv: we lost some rec=0x1c8 exp=0x0 Mar 4 00:09:48 kernel: 0] ism_recv: we lost some rec=0x1cd exp=0x0 Mar 4 00:09:48 kernel: 0] ism_recv: we lost some rec=0x1ce exp=0x0 Mar 4 00:10:17 kernel: 0] ism_recv: we lost some rec=0x1cf exp=0x0 Mar 4 00:10:17 kernel: 0] ism_recv: we lost some rec=0x1d0 exp=0x0 Mar 4 00:14:12 kernel: WARNING: R/W mount denied. Filesystem is not clean - run fsck Mar 4 00:14:24 kernel: WARNING: R/W mount denied. Filesystem is not clean - run fsck Mar 4 00:16:33 kernel: WARNING: R/W mount denied. Filesystem is not clean - run fsck

Linux: uname -a Linux file1.xxxxxxxxx.lv 2.6.18-53.1.13.el5 #1 SMP Tue Feb 12 13:02:30 EST 2008 x86_64 x86_64 x86_64 GNU/Linux start targe on CentOS ----------------------------- service tgtd start tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.2001-04.com.example:storage.disk2.amiens.sys1.xyz tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/sda3 tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL # iscsiadm -m discovery -t sendtargets -p 185.15.113.113 185.15.113.113:3260,1 iqn.2001-04.com.example:storage.disk2.amiens.sys1.xyz #iscsiadm -m node -T iqn.2001-04.com.example:storage.disk2.amiens.sys1.xyz -p 185.15.113.113 [centos]# mkfs.msdos /dev/sdc1 mkfs.msdos 2.11 (12 Mar 2005) [centos]# mount /dev/sdc1 /mnt/

anonymous
()
Ответ на: комментарий от robot12

Есть две машини ФрееБСД 7.0 - инитиатор Линух 5 2.6.18-53.1.13.ел5 -таргет + инитиатор

после монтирования iscsi на FreeBSD делаем дирикторию, эта деректория не видна на линух после mount umount все дириктории появляутся на обоих PC.

anonymous
()
Ответ на: комментарий от anonymous

Решил попробоват все на Фреебсд

FreeBSD 6.1-RELEASE-p20 FreeBSD 6.1-RELEASE-p20 #0: Sun Nov 4 13:29:10 EET 2007 root@:/usr/obj/home/src/sys/PALM

initiator 1
/etc/iscsi.conf
target0 { # nickname
targetaddress = 15.135.13.142
targetname = iqn.1994-04.org.netbsd.iscsi-target:target0
}

iscontrol -n target0

# mount /dev/da0s1e /mnt/root

--------------------------------------------
iscsi FreeBSD 7.0 - initiator and target

vi /etc/iscsi/targets
# Simple file showing 1 extent, mapped straight into 1 target

# extents file start length
extent0 /dev/ad3 0 20GB

# target flags storage netmask
target0 rw extent0 85.115.113.1/24
target1 rw extent0 85.115.113.1/24

/etc/iscsi.conf
target1 { # nickname
targetaddress = 85.115.113.142
targetname = iqn.1994-04.org.netbsd.iscsi-target:target0
}


пробвал

target1 { # nickname
targetaddress = 85.115.113.142
targetname = iqn.1994-04.org.netbsd.iscsi-target:target1
}

без изменений.
/usr/local/etc/rc.d/iscsi_target start


-------------

FreeBSD 7.0# mount /dev/da0s1e /mnt/root/
FreeBSD 7.0# ls -l /mnt/root/
total 6932
drwxrwxr-x 2 root operator 512 Mar 4 23:18 .snap
-rw-r--r-- 1 root wheel 7077888 Mar 4 23:33 nout1
drwxr-xr-x 2 root wheel 512 Mar 5 00:42 root1
FreeBSD 7.0# rm -r /mnt/root/nout1
FreeBSD 7.0# ls -l /mnt/root/
total 4
drwxrwxr-x 2 root operator 512 Mar 4 23:18 .snap
drwxr-xr-x 2 root wheel 512 Mar 5 00:42 root1



FreeBSD 6.1# ls -l /mnt/root/
total 6932
drwxrwxr-x 2 root operator 512 Mar 5 01:18 .snap
-rw-r--r-- 1 root wheel 7077888 Mar 5 01:33 nout1
drwxr-xr-x 2 root wheel 512 Mar 5 02:42 root1

После удаления фаила на ФрееБСД 7.0
FreeBSD 6.1# ls -l /mnt/root/
total 6932
drwxrwxr-x 2 root operator 512 Mar 5 01:18 .snap
-rw-r--r-- 1 root wheel 7077888 Mar 5 01:33 nout1
drwxr-xr-x 2 root wheel 512 Mar 5 02:42 root1
FreeBSD 6.1# umount /mnt/root
FreeBSD 6.1# mount /dev/da0s1e /mnt/root
FreeBSD 6.1# ls -l /mnt/root/
total 4
drwxrwxr-x 2 root operator 512 Mar 5 01:18 .snap
drwxr-xr-x 2 root wheel 512 Mar 5 02:42 root1

тепер его нету ! В чем проблема
почему измений толко после
FreeBSD 6.1# umount /mnt/root
FreeBSD 6.1# mount /dev/da0s1e /mnt/root






anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.