On Apr 10, 2007, at 18:53:29 PDT, Rick McNeal wrote:
> Actually the s2 partition is not the entire disk. Solaris reserves a
> couple of cylinders to store the VTOC information. Also, on x86 based
> machines the VTOC is within a fdisk partition so it might not even be
> close to the entire disk.
Ok, Rick - thanks for clarifying that.
The SCSI disk that I'm using is marketed as having a 18.4Gbytes capacity,
but when using it as backing store for the target, I only see just
over 17GB.
Just for a comparison, I have re-partitioned the SCSI disk with an EFI label.
I thought other people may be interested what this looks like so at
the ends of this email is a trace of the commands & the output.
By the way, does it make any difference, or is it important, if you
use "/dev/rdsk/.." or "/dev/dsk/.."?
> You're right about the error messages not being helpful here. I also
> think the daemon could be a little more intelligent regarding the
> backing store. If someone supplies a block device which isn't labeled
> there's no reason the daemon could just label it.
Yes, if the error messages could be more helpful, that would be great.
Maybe it could check if the disk has a label & if so, which type.
And then suggest an example of the sort of path to use.
Rick, I know you do the code for the iscsi target daemon, but do you also
write the code for the 'iscsitadm', or is that someone else?
Thanks
Nigel Smith
bash-3.00# iscsitadm list target
Target: zd-4565
iSCSI Name:
iqn.1986-03.com.sun:02:6608f005-461d-669d-c6c4-904c502c2c36.zd-4565
Connections: 0
bash-3.00# iscsitadm delete target --lun 0 zd-4565
bash-3.00# format -e
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <DEFAULT cyl 2228 alt 2 hd 255 sec 63>
/[EMAIL PROTECTED],0/pci8086,[EMAIL PROTECTED]/pci9005,[EMAIL
PROTECTED]/[EMAIL PROTECTED],0
1. c2t0d0 <DEFAULT cyl 9723 alt 2 hd 255 sec 63>
/[EMAIL PROTECTED],0/pci1028,[EMAIL PROTECTED],2/[EMAIL PROTECTED],0
Specify disk (enter its number): 0
selecting c0t0d0
[disk formatted]
format> partition
partition> label
[0] SMI Label
[1] EFI Label
Specify Label type[0]: 1
Warning: This disk has an SMI label. Changing to EFI label will erase all
current partitions.
Continue? yes
partition> print
Current partition table (default):
Total disk sectors available: 35827252 + 16384 (reserved sectors)
Part Tag Flag First Sector Size Last Sector
0 usr wm 34 17.08GB 35827251
1 unassigned wm 0 0 0
2 unassigned wm 0 0 0
3 unassigned wm 0 0 0
4 unassigned wm 0 0 0
5 unassigned wm 0 0 0
6 unassigned wm 0 0 0
7 unassigned wm 0 0 0
8 reserved wm 35827252 8.00MB 35843635
partition> quit
format> quit
bash-3.00# iscsitadm create target --backing-store /dev/rdsk/c0t0d0 --lun 0
zd-4565
iscsitadm: Error Failed to create backing store
bash-3.00# iscsitadm create target --backing-store /dev/rdsk/c0t0d0s0 --lun 0
zd-4565
bash-3.00# iscsitadm list target -v
Target: zd-4565
iSCSI Name:
iqn.1986-03.com.sun:02:b35a60d1-29bd-4a7d-deeb-a02ae701b122.zd-4565
Connections: 0
ACL list:
TPGT list:
LUN information:
LUN: 0
GUID: 0
VID: SUN
PID: SOLARIS
Type: disk
Size: 17G
Backing store: /dev/rdsk/c0t0d0s0
Status: online
This message posted from opensolaris.org
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss