I'm not sure if this is a bug or if I'm doing something wrong. I am trying to
create a zpool which can be mounted either locally or over iscsi. For testing I
have created a local zvol, and then create a zpool on top of the zvol. That
seems to work OK. When I try to import the same zvol over iscsi, I get the
"value too large" error below. This happened on both 2008.5 and Nevada build 97.
-bash-3.2# dd if=/dev/zero of=/zfs_devices/filedev3 bs=1048576 count=150
150+0 records in
150+0 records out
-bash-3.2# zpool create myzpool /zfs_devices/filedev3
-bash-3.2# zfs create -V 100m myzpool/myzvol
-bash-3.2# zpool create zpool_in_zvol /dev/zvol/dsk/myzpool/myzvol
-bash-3.2# zfs create zpool_in_zvol/myzfs
-bash-3.2# zpool status myzpool
pool: myzpool
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
myzpool ONLINE 0 0 0
/zfs_devices/filedev3 ONLINE 0 0 0
errors: No known data errors
-bash-3.2# zpool status zpool_in_zvol
pool: zpool_in_zvol
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
zpool_in_zvol ONLINE 0 0 0
/dev/zvol/dsk/myzpool/myzvol ONLINE 0 0 0
errors: No known data errors
-bash-3.2# zpool export zpool_in_zvol
-bash-3.2# zfs set shareiscsi=on myzpool/myzvol
-bash-3.2# iscsiadm list target myzpool/myzvol
myzpool/myzvol: not found
-bash-3.2# iscsitadm list target myzpool/myzvol
Target: myzpool/myzvol
iSCSI Name: iqn.1986-03.com.sun:02:7cb1af72-b98c-4b77-d10b-ea9c6d4df078
Connections: 0
-bash-3.2# iscsiadm add static-config
iqn.1986-03.com.sun:02:7cb1af72-b98c-4b77-d10b-ea9c6d4df078,127.0.0.1
-bash-3.2# isciadm list target
-bash: isciadm: command not found
-bash-3.2# iscsiadm list target
Target: iqn.1986-03.com.sun:02:7cb1af72-b98c-4b77-d10b-ea9c6d4df078
Alias: myzpool/myzvol
TPGT: 1
ISID: 4000002a0000
Connections: 1
-bash-3.2# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c3d0 <DEFAULT cyl 1302 alt 2 hd 255 sec 63>
/[EMAIL PROTECTED],0/[EMAIL PROTECTED],1/[EMAIL PROTECTED]/[EMAIL
PROTECTED],0
1. c5t600144F048CECB920008002766B21800d0 <DEFAULT cyl 98 alt 2 hd 64 sec
32>
/scsi_vhci/[EMAIL PROTECTED]
Specify disk (enter its number): ^C
-bash-3.2#
-bash-3.2# zpool import
pool: zpool_in_zvol
id: 10850620652857224374
state: UNAVAIL
status: One or more devices contains corrupted data.
action: The pool cannot be imported due to damaged devices or data.
see: http://www.sun.com/msg/ZFS-8000-5E
config:
zpool_in_zvol UNAVAIL insufficient
replicas
c5t600144F048CECB920008002766B21800d0s8 UNAVAIL corrupted data
-bash-3.2# zpool import zpool_in_zvol
internal error: Value too large for defined data type
Abort (core dumped)
-bash-3.2#
--
This message posted from opensolaris.org
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss