Did a opsi when moving files (mv) and after reboot will the system nnot starting up.

Monk3003

Cadet
Joined
Aug 14, 2023
Messages
7
Hi,
So I was trying to structure my files a bit better on my truenas system, then I think I moved files somewhere where they shouldn't be.
So after a reboot will not the system boot up.

I get the error.
Any ideas what I can do?

Code:
zsh:locking failed for root/.zsh-histfile. No space left on device. 
 

Attachments

  • received_698001175501567.jpeg
    received_698001175501567.jpeg
    209.9 KB · Views: 121

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
I would suggest a fresh install and import your latest saved config.
 

Monk3003

Cadet
Joined
Aug 14, 2023
Messages
7
I would suggest a fresh install and import your latest saved config.
OK, but what has happened, so I don't do it again.
There is no other way doing it?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
It sounds like you filled up the boot device with something. You can confirm this by looking at the output of zpool list.
 

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,112
Command history from zsh might shed some light on exactly what went pear-shaped, and potentially avoid the reinstall.

tail /root/.zsh-histfile and look for the line where you mv'd the files to the wrong place. mv the files back to the dataset where they belong, reboot, and it may be okay.
 

Monk3003

Cadet
Joined
Aug 14, 2023
Messages
7
Command history from zsh might shed some light on exactly what went pear-shaped, and potentially avoid the reinstall.

tail /root/.zsh-histfile and look for the line where you mv'd the files to the wrong place. mv the files back to the dataset where they belong, reboot, and it may be okay.
Yeah that is what I suspected also.
Where is the boot folder, I was trying to make tree command to see what I copied wrong. I will test what you wrote also.
Thanks everyone that is helping me.
 

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,112
Where is the boot folder, I was trying to make tree command to see what I copied wrong.
Generally speaking, any directory that is not in the /mnt/YourPoolNameHere path is on the boot device; including directories like /root and /home

/var/db/system is a special case in that it is the "system dataset" but also should not be used for storage as it is reserved for TrueNAS itself.
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222

Monk3003

Cadet
Joined
Aug 14, 2023
Messages
7
So since my server is in another country I need to send PiKVM there so I could see what was the issue.
What you guys said was correct there was folder misplaced on the boot section.
Deleted it and rebooted it and now the server is working like charm.

Thanks again for the help
 
Top