Solaris 10 Connects To Targets but Can't Recognize Drive Typ

Software-based VM-centric and flash-friendly VM storage + free version

Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)

Post Reply
chanrahan
Posts: 4
Joined: Thu Feb 08, 2007 8:59 am

Thu Feb 08, 2007 9:28 am

Greetings,

I am using StarWind 3.2.1 build 20061130 running under Windows XP Pro SP2. In addition to the default 16meg ramdisk, I have created a 256 meg ramdisk.

I am able to connect to both of these targets using my SPARC Solaris 10 box as an initiator. However, I am not able to use the Format utility in Solaris to partition the targets because Solaris does not recognize the disk type.

I receive:

Feb 8 02:58:29 unknown scsi: [ID 107833 kern.warning] WARNING: /iscsi/disk@0000iqn.2003-06.com.rocketdivision.starwind%3Acbbgcc1.lbd.local.ramdisk.ramdrive0FFFF,0 (sd0):
Feb 8 02:58:29 unknown Corrupt label; wrong magic number

Is there a known issue with Solaris 10, or is there anything different that I need to do because I'm using Solaris as an initiator rather than another client ?

Any help is appreciated.

Chris Hanrahan
Val (staff)
Posts: 496
Joined: Tue Jun 29, 2004 8:38 pm

Thu Feb 08, 2007 10:07 am

Hi Chris,

Did you created a foramtted RAM disk or format it from the Solaris box?
It's a good idea to format the disk from Solaris after mounting it.
Best regards,
Valeriy
chanrahan
Posts: 4
Joined: Thu Feb 08, 2007 8:59 am

Thu Feb 08, 2007 10:18 am

Hi Valery,

When I run format on the Solaris box, and select one of the iscsi targets, Format prompts me to enter a drive type. In the initial display of format I see:

AVAILABLE DISK SELECTIONS:
0. c1t1d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w2100002037d83fd4,0
1. c1t2d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000020374bb89c,0
2. c3t0d0 <drive type unknown>
/iscsi/disk@0000iqn.2003-06.com.rocketdivision.starwind%3Acbbgcc1.lbd.local.ramdisk.ramdrive0FFFF,0
3. c3t1d0 <drive type unknown>
/iscsi/disk@0000solarisclusterFFFF,0

In Solaris, the Format utility is used to partiton a drive. The actual creation of the filesystem on a partiton is done using newfs after the drive is formatted.

I can enter the drive type manually but I have to know the number of cylinders, etc for the drive.
Val (staff)
Posts: 496
Joined: Tue Jun 29, 2004 8:38 pm

Thu Feb 08, 2007 10:45 am

Chris,

RamDisk (and other virtual StarWind targets) reports its virtual CHS parameters via SCSIOP_MODE_SENSE page 0x4.
It seems that Solaris does not use the data.

RamDisk always reports 16 sectors per track and 32 tracks per cylinder.
The number of cylinders is calculated dynamically.
Best regards,
Valeriy
chanrahan
Posts: 4
Joined: Thu Feb 08, 2007 8:59 am

Thu Feb 08, 2007 11:04 am

Valery,

Is there a manual calculation that I can perform that will provide me with the number of cylinders ? Solaris's Format utility has a way to manually input this data.


Thanks,
Val (staff)
Posts: 496
Joined: Tue Jun 29, 2004 8:38 pm

Thu Feb 08, 2007 11:17 am

chanrahan wrote:Is there a manual calculation that I can perform that will provide me with the number of cylinders ? Solaris's Format utility has a way to manually input this data.
cyl = [disk size in bytes] / [tracks per cyl] / [sect per tr] / 512
(sector size = 512)
Best regards,
Valeriy
chanrahan
Posts: 4
Joined: Thu Feb 08, 2007 8:59 am

Fri Feb 09, 2007 2:43 am

How many heads should I enter ? Is this calculated as well ?

I used 16 heads in the calculation for my 256 megabyte disk image, but Solaris sees it as a 119mb drive.
Val (staff)
Posts: 496
Joined: Tue Jun 29, 2004 8:38 pm

Fri Feb 09, 2007 10:18 am

chanrahan wrote:How many heads should I enter ? Is this calculated as well ?

I used 16 heads in the calculation for my 256 megabyte disk image, but Solaris sees it as a 119mb drive.
32 heads per cylinder, 16 sectors per track, 512 bytes per sector.

For 256MB disk:
Total sectors = 524288
Cylinders = 524288 / 32 / 16 = 1024
Best regards,
Valeriy
Post Reply