Hi Jason,

Jason Zhao wrote:
> Hi, Jan and William,
>
> I am developing libtd test suite, actually port the
> test suite from dwarf caiman to OpenSolaris. It seems
> that there are something different with the previous
> libtd on snv. I have some questions about as following.
>
> 1. libtd regard a dump as disk? What is the dump? dump device?

'dump' is dump device created as ZFS volume:

$ zfs list -t volume
NAME USED AVAIL REFER MOUNTPOINT
rpool/dump 256M 4.86G 256M -
rpool/swap 512M 5.09G 273M -

> Actually, through "format" command, I only could
> find 2 disks, no "dump" at all.

That is correct.

>  I run the driver on OpenSolaris
> with ZFS root. Why does libtd list the dump device or
> swap device as a disk?
> # test_td -d
> Disk discovery
> Total number of disks: 3
> ---------------------------------
> num | name| ctype|size [MB]|
> ---------------------------------
> 1 | c3d0| ata| 76293|
> 2 | c3d1| ata| 76293|
> 3 | dump|unknown| 507|
> ---------------------------------

I think it is a bug - Target discovery should filter out
ZFS volumes. Could you please file bug for this ?

ZFS volumes are currently filtered out in GUI,
since TD doesn't provide enough information,
so that they might be considered as possible
installation targets (media type is unknown).
But I think those should be excluded either by
libdiskmgt or TD itself.

>
> 2. How to find a disk when its ctype is "usb"?

I think you could use following commands:

* format(1M) when invoked in expert mode (with -e option)
* rmformat(1)
* iostat(1M) -En

> # /export/test_td -d
> Disk discovery
> Total number of disks: 3
> ---------------------------------
> num | name| ctype|size [MB]|
> ---------------------------------
> 1 | c0t0d0| usb| 38154|
> 2 |* c4d0| ata| 152625|
> 3 | swap|unknown| 512|
> ---------------------------------
>
> Right now, c0t0d0's device is
> "/pci at 0,0/pci17aa,20ab at 1d,7/storage at 2/disk at 0,0",
> through "prtconf -Dv", I could get its major number
> is "50"(sd driver), but "/pci at 0,0/pci17aa,20ab at 1d,7" is
> a usb controller which driver is "ehci". So it looks
> like the way to check if target disk is "usb" is to
> check the output of "prtconf" and libdevinfo. Do you
> know some other simpler ways to get the correct
> disk ctype?
>
> I am developing the test suite now, and very possible
> to have more questions to interrupt you, thank you very
> much for your patience.

No problem at all :-) Please feel free to ask if you have questions
or need more information.

I will be on vacation following two weeks, but will be available
starting January 5th.

Thank you,
Jan


Reply via email to