- 
lem_urist
hello everyone, I can't update my omnios installation
 
- 
andyf
lem_urist - I'm sure we can help with that. What's happening and what version are you trying to upgrade from and to?
 
- 
lem_urist
The system seems to fail to create a new boot environment, I think it has to do with a boot archive corruption, but I'm not really knowledgeable about SunOS to be sure
 
- 
lem_urist
let me send you a privatebin
 
- 
andyf
Ok. I have to step away for 5 minutes then I'll be back.
 
- 
lem_urist
 
- 
lem_urist
No probs
 
- 
lem_urist
I'm running r151054i btw
 
- 
lem_urist
trying to update to 54v
 
- 
lem
I'm back
 
- 
andyf
Could you try: BE_PRINT_ERR=true beadm create backup-09102025
 
- 
lem
 
- 
andyf
Well that's really strange. How are you for disk space? Could I have `df -h` and `beadm list -s`?
 
- 
lem
sure
 
- 
lem
 
- 
andyf
Nothing out of the ordinary there. There are a few orphaned snapshots that we could clean up but that's all.
 
- 
andyf
How about the output of this (will be quite long): truss -flea beadm create backup-09102025
 
- 
lem
geez, sure it is 
 
- 
lem
okay let me copy it for you
 
- 
andyf
Thanks - you can add `-o <file>` to put it in a file too if that helps
 
- 
lem
oh I just redirected all stderr to a file haha
 
- 
lem
 
- 
andyf
Still working my way through that. Does `zfs mount -a` show any errors?
 
- 
lem
`cannot mount '/rpool': directory is not empty
 
- 
lem
`cannot mount '/rpool': directory is not empty`
 
- 
andyf
zfs list -o name,mountpoint
 
- 
lem
 
- 
andyf
df -h /rpool/*
 
- 
andyf
er, sorry: stat /rpool/*
 
- 
lem
 
- 
andyf
truss -t stat,mount zfs mount -a
 
- 
lem
 
- 
andyf
Ok, last one I think: zfs get all rpool
 
- 
lem
 
- 
andyf
Ok, so the fact that your `rpool` dataset is not mounted is the problem - the "mounted no" in there confirms it, but I'm not sure how that could have happened.
 
- 
lem
Maybe it was me messing up with the filesystem manually, how should it be mounted and how could I get this done? I tried rebooting the system yesterday but had problems shutting down the system.
 
- 
andyf
The easiest way to fix it is going to be in single user mode if you are ok to switch to that. 
 
- 
andyf
I can talk you through i
 
- 
andyf
*it
 
- 
lem
Okay, but I would need to attach an external monitor and peripherals to this machine, let me see how could I do it
 
- 
andyf
Well we could also probably do it by shutting down services, zones and unmounting things which might be easier.
 
- 
lem
Can I do it through SSH?
 
- 
andyf
Yes
 
- 
lem
Let's go then, should I run an init command after shutting down services and zones?
 
- 
andyf
No, just stop all the zones and any services (if any) that use datasets under /rpool
 
- 
andyf
You can stop all zones with `svcadm disable -t zones` if that's easier
 
- 
andyf
Your home directory will be the trickiest one to unmount. Can you ssh in directly as root?
 
- 
lem
Let me install my pubkey real quick for that
 
- 
lem
Zones are shutted down
 
- 
andyf
Oh, no, that one is probably ok because it mounts at /home. We will see
 
- 
andyf
So now unmount the filesystems one by one that are mounted under /rpool
 
- 
andyf
df -h | grep ' /rpool'
 
- 
andyf
Then: zfs umount rpool/bastion
 
- 
andyf
etc.
 
- 
andyf
If any don't unmount, then look to see what's using them
 
- 
lem
OK cool
 
- 
andyf
I count 8 of them
 
- 
lem
They're all umounted
 
- 
andyf
Ok, great, now what's left in `/rpool`? do something like `ls -lR /rpool`
 
- 
lem
Only rpool/zones/iso, I think that one didn't get umounted
 
- 
andyf
That's mounted under `/zones/iso/` though
 
- 
andyf
So this might be something old
 
- 
lem
Yup, it is
 
- 
andyf
Ultimately we need to completely clean out everything in /rpool/ 
 
- 
lem
Okay there's only empty directories right now
 
- 
lem
Should I remove them all?
 
- 
andyf
Yes because they're actually in the root filesystem
 
- 
andyf
and they stopping `rpool` from mounting on `/rpool`
 
- 
lem
Huh, got it
 
- 
andyf
When that's empty, try `zfs mount -a` again to mount everything again
 
- 
lem
Okay, clean, now I should try to mount rpool right?
 
- 
lem
Okay
 
- 
lem
No errors
 
- 
andyf
and if you get no errors.. try creating a BE again with beadm
 
- 
lem
Yeah, created successfully
 
- 
andyf
Ok, you should be ok now. It was something about the way the iso dataset was created or moved or...
 
- 
lem
And no problems with the update either
 
- 
lem
Thank you very much for your help!!! I'm still relatively new in illumos and I'm having a great time using it as my NAS server, thought I messed up the boot there, thank you very much for your quick response and help :)
 
- 
andyf
You're welcome.