Hi all,
Weird situation at work today. One of the servers I couldn't get in anymore..my ssh key got refused. Logged on via the console (vnc), as root, and found out my authorized_keys file was full of garbage. Not even trying to figure out why this happened, I tried to edit the file and the machine rebooted.
Since then, at boot it gets stuck on the mountroot prompt.
As you can see, it's complaining about the secondary GPT header not being in the last LBA. In all honesty, I'm not sure what that means at all. The disk is partitioned like this (output from another identically setup server):
Being completely new at the mountroot prompt, I tried the question mark first which gave me this output:
I don't know what those error 19 and 22 mean. My google-fu disappointed me with people talking about it but not explaining what it really is.
Then I tried to mount /dev/vtbd0p3 explicitly, which gave me I guess the most verbose message:
So here I am..knowing there's something wrong with my filesystem, but no clue what I can do. I tried to boot as single-user but it also needs to mount the system so no much progress/luck there.
The server is a Virtual Machine running in an Openstack environment. Has worked fine for several months, until today this thing happening.
Really appreciate any pointers to:
- what do each of these errors allude to
- what can I do if anything, to recover from this
- anything really making me understand what happened so I can avoid this issue, and not face it on the other machines that are similarly provisioned.. (bit nervous now as I'm the only guy pushing for BSD in the company for consistency and reliability... *heh* )
Appreciate all your inputs, ready to learn more from you guys!
Weird situation at work today. One of the servers I couldn't get in anymore..my ssh key got refused. Logged on via the console (vnc), as root, and found out my authorized_keys file was full of garbage. Not even trying to figure out why this happened, I tried to edit the file and the machine rebooted.
Since then, at boot it gets stuck on the mountroot prompt.
As you can see, it's complaining about the secondary GPT header not being in the last LBA. In all honesty, I'm not sure what that means at all. The disk is partitioned like this (output from another identically setup server):
gpart show
=> 3 1073742069 vtbd0 GPT (512G)
3 125 1 freebsd-boot (63K)
128 2097152 2 freebsd-swap (1.0G)
2097280 1071644792 3 freebsd-ufs (511G)
Being completely new at the mountroot prompt, I tried the question mark first which gave me this output:
I don't know what those error 19 and 22 mean. My google-fu disappointed me with people talking about it but not explaining what it really is.
Then I tried to mount /dev/vtbd0p3 explicitly, which gave me I guess the most verbose message:
So here I am..knowing there's something wrong with my filesystem, but no clue what I can do. I tried to boot as single-user but it also needs to mount the system so no much progress/luck there.
The server is a Virtual Machine running in an Openstack environment. Has worked fine for several months, until today this thing happening.
Really appreciate any pointers to:
- what do each of these errors allude to
- what can I do if anything, to recover from this
- anything really making me understand what happened so I can avoid this issue, and not face it on the other machines that are similarly provisioned.. (bit nervous now as I'm the only guy pushing for BSD in the company for consistency and reliability... *heh* )
Appreciate all your inputs, ready to learn more from you guys!