-
nikolam
So, illumos HCL.. would like to use USB3 to LAN gigabit adapter.. because no other to biy ATM. So how do I know it will work.. Even, will Solaris drivers still work for illumos and is there actual activity porting drivers to illumos, like a group for that?
-
tsoome_
neirac that is likely quite harmless, but ping Woodstock about it, he was looking on such errors recently.
-
toasterson
nikolam: As long as the gigabit chip is supported the USB3 wont be a problem. It's only the cable
-
neirac
tsoome_ thanks!, but that error makes impossible to format a disk, well is a vm using vioscsi.
-
tsoome_
format as from format command submenu?
-
tsoome_
that is low level scsi format
-
tsoome_
thats something you practiaclly never want to use
-
tsoome_
and it probably does explain the error -- if vioscsi does not support low level format.
-
neirac
tsoome_ yes, that's correct. I tried to do that because creating a pool does not work, complains about using a specific slice and run fdisk, I also tried modifying/creating the partitions but fails writing the efi label
-
tsoome_
what error you get exactly?
-
neirac
tsoome_ ooh that's explains it all. But how do I make the disk ready to be able to create a pool?, the error I'm getting is on zpool create it says use a slice run fdisk(8), something like that, I'll reproduce it now again
-
tsoome_
with efi (GPT) label, you are supposed to have MBR in absolute sector 0, EFI label in absolute sector 1, and EFI table array in sectors 2 - 32 (with 512B sector size) AND, efi label + partition array mirrored at the end of the disk.
-
tsoome_
normally, you create boot pool with whole disk setup by using zpool create -B rpool diskname_without_slice
-
tsoome_
or data pool, you leave out -B
-
tsoome_
-B will tell zpool to create EFI system partition, so you can get bootable disk with UEFI
-
tsoome_
or if you want to have multiboot setup or data slice, you run format -e and enter fdisk menu fdisk, there you create 100% EFI partition, exit fdisk and create partition(s), and on write to disk, select efi type.
-
tsoome_
you can verify with mdb /dev/rdsk/c...p0; there enter: ::load disk_label, then you can enter ::mbr and ::gpt and ::vtoc commands to get information about partitioning on disk.
-
neirac
tsoome_ thanks!, I'm replicating now
-
tsoome_
with GPT, the MBR EFI partition is "fake" partition, to make sure the GPT unaware partitioning programs wont consider your disk unused.
-
tsoome_
(thats why its called protective mbr, or pmbr)
-
neirac
tsoome_ fdisk /dev/rdsk/c1t0d1p0 returns Error in ioctl DKIOCGMBOOT: I/O error ; zpool create -B zones /dev/rdsk/c1t0d1 returns cannot label 'c1t0d1': try using fdisk(8) and then provide a specific slice
-
tsoome_
c1t0d1 ? do you also have c1t0d0 ?
-
neirac
tsoome_ according to diskinfo I only have one disk SCSI c1t0d1 ORACLE BlockVolume
-
tsoome_
ok, can you test it with mdb? mdb /dev/rdsk/c1t0d1p0, then ::load disk_label, then ::mbr and ::gpt outputs
-
tsoome_
I wonder, what is the sector size reported for that disk?
-
neirac
tsoome_ for ::mbr mdb: failed to read MBR: cannot read past current end of file
-
neirac
tsoome_ for gpt mdb: failed to read GPT header: cannot read past current end of file
-
tsoome_
format -> verify should tell, but also device-blksize property from prtconf -v
-
neirac
I also tried zeroing the disk with dd if=/dev/null of=/dev/rdsk/c1t0d1p0 but still I have hte same errors trying to use it
-
tsoome_
hm, those are from device name ending with p0?
-
neirac
tsoome_ yes
-
tsoome_
that is something weird, p0 is supposed to be entire disk
-
neirac
currently the disk has dd the smartos usb img, to be able to boot the smartos installer,
-
tsoome_
ok, can you dd if=/dev/rdsk/c1t0d1p0 of=mbr.dd count=1 bs=512
-
tsoome_
this d1 is still weird, it means you have lun 1, but that hints that there should also be lun 0...
-
neirac
tsoome_ done, after doing dd I tried again mdb ::load disk_label but it returns the same errors for ::mbr and ::gpt
-
tsoome_
can you mail me that mbr.dd ?
-
tsoome_
ok, can you try mdb mbr.dd ; ::load disk_label and then ::mbr
-
tsoome_
or mdb mbr.dd and then ::dump
-
neirac
-
tsoome_
and 0,200::dump
-
neirac
-
tsoome_
how big is that file?
-
tsoome_
mbr.dd, I mean
-
neirac
tsoome_ the mbr.dd file gets created using those dmcds?, I see a mbr.dd that's 0 bytes
-
tsoome_
if mbr.dd is 0 bytes, it means dd failed to read from the disk
-
tsoome_
which is confirming errors from mdb /dev/rdsk/c1t0d1p0
-
tsoome_
so, there is something bad going on, we would expect we can read from the disk...
-
neirac
-
tsoome_
yes, thats IO error, no data was read
-
neirac
tsoome_ just filling the disk with any data using dd could not cause an i/o error right ?
-
tsoome_
no, you are supposed to be able to read that data out
-
tsoome_
but, I wonder, if you were attempting the low level format, could it be that did confuse the VM?
-
tsoome_
it may be worth to check if vm restart will change anything.
-
neirac
tsoome_ let me restart it, and creating the pool after boot
-
tsoome_
the simple test would still be format -> verify -- this will attempt to read disk label and should present some meaningful output.
-
neirac
tsoome_ just restarting the vm I see WARNING: vioscsi0: request stuck, resetting target
-
neirac
tsoome_ I'll re-create the vm again
-
tsoome_
so there is something bad going on with that disk.
-
neirac
tsoome_ could the viosci driver?
-
tsoome_
can not tell:)
-
tsoome_
maybe the driver, maybe the vm engine is confused...
-
neirac
-
tsoome_
ah, you meant the message - yes, that one is from the driver for sure.
-
tsoome_
but the reason, why the disk is stuck, is obviously elsewhere.
-
jbk
the code suggests it's polling... maybe it's not waiting long enough?
-
neirac
jbk I'll create the vm again as it stuck
-
neirac
-
tsoome_
so, can it now [read] label?
-
neirac
tsoome_ no, same error doing mdb ::mbr
-
tsoome_
does prtconf -v report disk sector size (and disk size)?
-
neirac
-
tsoome_
disk, instance #0 is from DELL PERC
-
tsoome_
but seems this is your disk: unknown, instance #1 value='scsa,nodev' + 'scsiclass,1f.vQEMU.pQEMU_TARGET.r2_5_' + 'scsiclass,1f.vQEMU.pQEMU_TARGET' + 'scsiclass,1f' + 'scsiclass'
-
tsoome_
but no device-nblocks nor device-blksize properties are present
-
tsoome_
so, that device is not quite usable ...
-
tsoome_
-D will add driver name in output, but anyhow, it seems there must be problem with driver and this qemu interaction...
-
neirac
-
neirac
jbk the no device-nblocks or device-blksize properties are setup by the virtioscsi driver or some other layer?
-
jbk
i don't know offhand
-
jbk
if it's for a specific target or lun, my guess is sd is setting it
-
jbk
though you could probably search the vioscsi code to see if that property shows up anywhere
-
richlowe
veg: I don't know either, I've never been any real part of ZFS maintenance
-
tsoome_
neirac there seems to some sort of incompatibility; you have vioscsi, to vioscsi you have connected iport, but also something unknown (nulldriver) and disk (sd driver). disk with sd driver is providing device c1t0d1 with sector size 512 and device size 46GB. Yet for some reason, you are getting those IO errors while reading the disk...
-
tsoome_
neirac does fmadm faulty report anything by chance?
-
neirac
tsoome_ no there is no fault according to fmadm when the vm starts
-
richlowe
does fmdump say anything?
-
richlowe
wait, was that property with the literal "QEMU" in it actually literal?
-
richlowe
have any of you used ::step out on an amd64 process target?
-
richlowe
rmustacc?
-
rmustacc
I have before.
-
richlowe
did it work?
-
rmustacc
It usually did something kind of like what I wanted, but was never super accurate in my memory.
-
richlowe
ok, so
-
rmustacc
I think I have trained myself to no really use it, tbh.
-
richlowe
-
richlowe
those registers sure don't line up with their 64 bit equivs even
-
rmustacc
That woud explain a lot.
-
richlowe
is it possible I should stop searching for magic, and instead assume it doesn't work right?
-
rmustacc
I would assume the amd64 version is busted.
-
rmustacc
I've found a few other i386 vs. amd64 issues there lately.
-
richlowe
#512
-
richlowe
sigh
-
richlowe
#15288 fenix?
-
fenix
BUG 15288: mdb amd64 ::step out seems like it's busted (New)
-
fenix
-
rmustacc
I'll see if the test suite stuff I'm doing right now can work easily to test that as well.
-
richlowe
it's still possible there's magic I'm not understanding
-
richlowe
rmustacc: do you want to take that bug for your testing stuff, or what? I'm confused now
-
rmustacc
If you want to take it, go for it.
-
rmustacc
Just if no one does, I can try to.
-
richlowe
I just can't work out how to write a good automated test
-
richlowe
which is where the relevance of what you said comes in
-
rmustacc
Ah. I am trying to figure that out myself, haha.
-
rmustacc
I don't have an answer yet.
-
richlowe
using gerrit with a new keyboard is nerve wracking
-
richlowe
especially when I screwed the bug already
-
tsoome_
was there some idea to teach wsdiff some to process debug info better?
-
richlowe
ctf or dwarf?
-
richlowe
I think I've filed bugs for both, actually
-
tsoome_
ah, ok
-
richlowe
you might want to check though?
-
tsoome_
I'm just checking wsdiff report atm:D