You shouldn't need "-C" really...

devfsadm -c disk

... is all I use. Of course I am not using NPIV for exactly the reasons you 
mention later. I just put both hosts (all hosts?) on the initiator group in the 
storage array and share it directly by its MPxIO name .. /dev/dsk/c0t${WWN}d0p0

Tommy

On Dec 2, 2009, at 6:50 AM, Uwe Bartels wrote:

> Hi,
> 
> thanks this problen i could fix with the help of a colleague. the missing 
> piece was "devfsadm -Cv" - reconfiguring the new devices.
> 
> if you have any idea about npiv that would be great.
> 
> best regards,
> Uwe
> 
> 
> 
> 2009/12/2 Mark Johnson <[email protected]>
> 
> 
> Uwe Bartels wrote:
> Hi,
> 
> i'm having problems attaching disks from a fc-san to a solaris 10 guest.
> xen host ist a opensolaris box "SunOS node1 5.11 snv_127 i86pc i386 i86xpv".
> 
> my xen guest is named pg4.
> 
> this command works fine.
> virsh attach-disk pg4 /dev/dsk/c8t600A0B800029D69A000013CA4B00E1ABd0 hdb
> 
> Really? You should have to supply p0, i.e. cXtYd0p0
> 
> This should work.
>   virsh attach-disk pg4 /dev/dsk/c8t600A0B800029D69A000013CA4B00E1ABd0p0 hdb
> 
> 
> 
> 
> 
> and before i was able to import this volume as a zpool on the xen host - so 
> connection to this volume looks fine.
> 
> when i run format i only see the file-based disk:
> global: r...@pg4:~ > format
> Searching for disks...done
> 
> 
> AVAILABLE DISK SELECTIONS:
>       0. c0d0 <DEFAULT cyl 4092 alt 2 hd 128 sec 32>
>          /p...@0,0/pci-...@1,1/i...@0/c...@0,0
> Specify disk (enter its number): ^C
> zsh: 1777 exit 1     format
> 
> this is the configuration of the guest:
> global: r...@node1:~ > virsh dumpxml pg4
> <domain type='xen' id='16'>
>  <name>pg4</name>
>  <uuid>314aa42b-9380-a10a-0dc2-fd3e495be172</uuid>
>  <memory>17034240</memory>
>  <currentMemory>17034240</currentMemory>
>  <vcpu>8</vcpu>
>  <os>
>    <type>hvm</type>
>    <loader>/usr/lib/xen/boot/hvmloader</loader>
>    <boot dev='hd'/>
>  </os>
>  <features>
>    <acpi/>
>    <apic/>
>    <pae/>
>  </features>
>  <clock offset='localtime'/>
>  <on_poweroff>destroy</on_poweroff>
>  <on_reboot>restart</on_reboot>
>  <on_crash>restart</on_crash>
>  <distro>
>    <type>solaris</type>
>    <variant>solaris10</variant>
>  </distro>
>  <devices>
>    <emulator>/usr/lib/xen/bin/qemu-dm</emulator>
>    <disk type='block' device='disk'>
>      <driver name='phy'/>
>      <source dev='/dev/zvol/dsk/data/xenimages/pg4'/>
>      <target dev='hda' bus='ide'/>
>    </disk>
>    <disk type='block' device='disk'>
>      <driver name='phy'/>
>      <source dev='/dev/dsk/c8t600A0B800029D69A000013CA4B00E1ABd0'/>
>      <target dev='hdb' bus='ide'/>
>    </disk>
>    <interface type='bridge'>
>      <mac address='00:16:3e:00:03:04'/>
>      <source bridge='nge0'/>
>      <script path='/usr/lib/xen/scripts/vif-vnic'/>
>      <target dev='vif16.0'/>
>    </interface>
>    <serial type='pty'>
>      <source path='/dev/pts/1'/>
>      <target port='0'/>
>    </serial>
>    <console type='pty' tty='/dev/pts/1'>
>      <source path='/dev/pts/1'/>
>      <target port='0'/>
>    </console>
>    <input type='tablet' bus='usb'/>
>  </devices>
> </domain>
> 
> in /dev/dsk i also only see this one file based disk.
> Can you help me with this?
> 
> 
> 
> The second option i found useful and but bad documented is npiv.
> I create a virtual port for the 2 fc-hbas in the machine via
> fcadm create-npiv-port -p 2000000000000001 -n 2100000000000001 
> 2100001b321fbc18    fcadm create-npiv-port -p 2000000000000002 -n 
> 2100000000000002 210000e08b947697    and the result looks fine:
> global: r...@node1:~ > fcinfo hba-port
> HBA Port WWN: 2100001b321fbc18
>        Port Mode: Initiator
>        Port ID: 10700
>        OS Device Name: /dev/cfg/c7
>        Manufacturer: QLogic Corp.
>        Model: 375-3355-01
>        Firmware Version: 05.01.03
>        FCode/BIOS Version:  BIOS: 1.24; fcode: 1.24; EFI: 1.08;
>        Serial Number: 0402R00-0724369194
>        Driver Name: qlc
>        Driver Version: 20090924-2.38
>        Type: N-port
>        State: online
>        Supported Speeds: 1Gb 2Gb 4Gb
>        Current Speed: 4Gb
>        Node WWN: 2000001b321fbc18
>        Max NPIV Ports: 127
>        NPIV port list:
>          Virtual Port1:
>                Node WWN: 2100000000000001
>                Port WWN: 2000000000000001
> HBA Port WWN: 210000e08b947697
>        Port Mode: Initiator
>        Port ID: 10000
>        OS Device Name: /dev/cfg/c6
>        Manufacturer: QLogic Corp.
>        Model: 375-3355-01
>        Firmware Version: 05.01.03
>        FCode/BIOS Version:  BIOS: 1.24; fcode: 1.24; EFI: 1.08;
>        Serial Number: 0402R00-0710356221
>        Driver Name: qlc
>        Driver Version: 20090924-2.38
>        Type: N-port
>        State: online
>        Supported Speeds: 1Gb 2Gb 4Gb
>        Current Speed: 4Gb
>        Node WWN: 200000e08b947697
>        Max NPIV Ports: 127
>        NPIV port list:
>          Virtual Port1:
>                Node WWN: 2100000000000002
>                Port WWN: 2000000000000002
> 
> 
> Now attaching this to the guest according to 
> http://www.mail-archive.com/[email protected]/msg05181.html fails.
> virsh attach-disk pg4 /2100001b321fbc18/2000000000000001/3000000000000001/12 
> hdb --driver phy --subdriver npiv
> 
> what's wrong?
> 
> There should be error messages in
>   /var/log/xen/xpvd-event.log
> 
> 
> >From these, what failed exactly?
> 
> 
> 
> MRJ
> 
> 
> _______________________________________________
> xen-discuss mailing list
> [email protected]

_______________________________________________
xen-discuss mailing list
[email protected]

Reply via email to