On Apr 10, 2007, at 3:34 PM, Nigel Smith wrote:
I have played around some more to get a working syntax to create a
non raw backing store, and have now got it to accept by using
"/dev/rdsk/c0t0d0s2".
It seems I have a VTOC label on the disk, which means slice 2
has a special meaning representing the entire disk.
The following commands & output should help explain what is
happening:
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.
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.
# iscsitadm create target --backing-store /dev/rdsk/c0t0d0p0 --lun
0 zd-4565
iscsitadm: Error Failed to create backing store
# iscsitadm create target --backing-store /dev/rdsk/c0t0d0s0 --lun
0 zd-4565
iscsitadm: Error Internal error: unknown message
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <DEFAULT cyl 2229 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
Please run fdisk first.
format> fdisk
No fdisk table exists. The default partition for the disk is:
a 100% "SOLARIS System" partition
Type "y" to accept the default partition, otherwise type "n" to
edit the
partition table.
y
format> partition
partition> print
Current partition table (original):
Total disk cylinders available: 2228 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0
(0/0/0) 0
1 unassigned wm 0 0
(0/0/0) 0
2 backup wu 0 - 2227 17.07GB (2228/0/0)
35792820
3 unassigned wm 0 0
(0/0/0) 0
4 unassigned wm 0 0
(0/0/0) 0
5 unassigned wm 0 0
(0/0/0) 0
6 unassigned wm 0 0
(0/0/0) 0
7 unassigned wm 0 0
(0/0/0) 0
8 boot wu 0 - 0 7.84MB (1/0/0)
16065
9 unassigned wm 0 0
(0/0/0) 0
partition> q
format> q
# prtvtoc /dev/dsk/c0t0d0p0
* /dev/dsk/c0t0d0p0 partition map
*
* Dimensions:
* 512 bytes/sector
* 63 sectors/track
* 255 tracks/cylinder
* 16065 sectors/cylinder
* 2230 cylinders
* 2228 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* Unallocated space:
* First Sector Last
* Sector Count Sector
* 16065 35776755 35792819
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
2 5 01 0 35792820 35792819
8 1 01 0 16065 16064
# iscsitadm create target --backing-store /dev/rdsk/c0t0d0p2 --lun
0 zd-4565
iscsitadm: Error Backing store is not valid raw device
# iscsitadm create target --backing-store /dev/rdsk/c0t0d0s2 --lun
0 zd-4565
#
I guess it makes sense once you understand what is happening, but
the error messages from 'iscsitadm' are not particularly helpful.
Thanks
Nigel Smith
This message posted from opensolaris.org
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss
----
Rick McNeal
"If ignorance is bliss, this lesson would appear to be a deliberate
attempt on your part to deprive me of happiness, the pursuit of which
is my unalienable right according to the Declaration of
Independence. I therefore assert my patriotic prerogative not to
know this material. I'll be out on the playground." -- Calvin
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss