-
sjorge
hadfl in case you missed it (I was editing a bit)
omniosorg/zadm #151#issuecomment-3023168201 I think I found the issue, with that change zadm doesn't complain. I think it's also intended to be valid and just a small coding error. But my perl skills are pretty bad so that may open a whole can of unintended side effects.
-
Amir2
Hi guys
-
Amir2
I'm Amir and I'm from Iran
-
Amir2
I'm assuming that you are aware of out current situation about the war...
-
Amir2
we are having Internet connectivity issues here
-
Amir2
so I am going to make an OmniOS mirror hosted here to be used for my servers and other OmniOS users in our country
-
tomww
:) load average: 1,11, 1,11, 1,11
-
jayjwa
I foolishly added hw.vmm.amdvi.enable=1 in /boot/loader.conf and a few entries as per
cyber-tec.org/2019/05/29/using-bhyve-pci-passthrough-on-omnios and now have a non-booting system. Anyway to fix this without a re-install?
-
jayjwa
Trying to mount anything from the boot disk doesn't work and zfs says there's no datasets.
-
mighty_spiky
Is that not a FreeBSD file? On my OmniOS, I don’t even have a /boot/loader.conf .
-
jayjwa
It's not there by default but you can add it (as per loader manpage).
-
jayjwa
There has to be a way to mount disk/zfs dataset from a bootdisk.
-
mighty_spiky
Do you have more than one boot environment?
-
jayjwa
Yes, but it's a ways back. That would require re-updating. There's no way to mount from a bootdisk? In linux it's just 'mount /dev/sda2 /mnt' and you have your disk partition to fix.
-
jayjwa
I think the disk was c1t0d0s0 but it doesnt' show under /dev/dsk.
-
mighty_spiky
From the bootdisk, I would try « zpool import » to list zpools ready to import and then « zpool import zpool_name » but you would have to precise an alternate root
-
jayjwa
Shows rpool ONLINE and then c3t0d0 ONLINE
-
jayjwa
Might be getting some place. I see the datasets now.
-
jayjwa
How to mount that dataset someplace else? zfs mount -o mountpoint=/mnt rpool/ROOT/omnios-r151054e doesn't work. Nor does zfs mount rpool/whatever /mnt
-
mighty_spiky
Use flag « -R »
-
mighty_spiky
-
jayjwa
zfs set mountpoint=/new/mountpoint dataset_name I got the dataset mount, and removed the file. Now to put it back together again...
-
jayjwa
I put the mountpoint back to / and rebooted but it still hangs. Not sure what to do at this point.
-
jayjwa
I had to select 'reconfigure' at the loader screen. Now it boots again. Thanks mighty_spiky. As you can tell, I don't know a whole lot about zfs.
-
mighty_spiky
You’re welcome. I’m also quite new to Illumos/OmniOS but I have some experience with ZFS on FreeBSD and Linux.
-
jayjwa
I'm on Slackware, and I guess I could get it, but it's not available to set the system up from install and of course Solaris 9 didn't have it back then.
-
mighty_spiky
Even if it’s limited to my data on Linux (As you say, it’s hard to set it up on OS drives), I find ZFS quite useful on all my systems.
-
m1ari
jayjwa: for future reference I think you need options at import time to tell it to use an alternative root for the dataset and/or tell it not to automatically mount the zfs dataset mountpoints (see variations of the -N -o and -R flags for zpool import in
man.omnios.org/man8/zpool)
-
m1ari
by default when you import a pool it'll try to mount any dataset on that pool at any configured mountpoint within the dataset config.
-
jayjwa
So I could have just done it with zpool right off then.
-
m1ari
you may also have issues if the boot media uses the same pool name as the media you're trying to mount - I think you can rename the pool at import time if both the boot media and the thing you're trying to fix both use the same pool name (rpool) - although I forget if you might then have to try and rename the pool you're fixing back somehow
-
jayjwa
Basically I just needed to remove /boot/loader.conf and any /etc/ppt* I added about the passthru. Not sure if it was indeed loader.conf, the /etc/ppt* files, or some combo.
-
jayjwa
The next question would be why that loader.conf setting caused such a problem.
-
m1ari
there might be better ways to fix things in the zfs world for that sort of issue, but from the bits I've played with I think doing something like `zpool import -R /mnt rpool` might have been a fairly easy option - especially if you use a boot medium that doesn't use rpool for it's own zpool
-
m1ari
when you get stuck again the man pages are often worth reading - they're generally quite useful in the OmniOS/Illumous/Solaris world
-
sjorge
I’m 60% sure creating /boot/loader.conf replaced the default loader config. And since there was only that parameter there the system didn’t know how to boot.
-
sjorge
Or you somehow added your boot nvme/hba/storage controller to the ppt driver, but more unlikely
-
jayjwa
Nope. No /boot/loader.conf. There's a loader.rc, loader, and loader.help in /boot/. The file didn't exist before and I added that one line.
-
jayjwa
loader.rc has the include so that it is eventually grabbed, according to loader.conf(5)
-
jayjwa
There is one in /boot/defaults