On 19 May 2017 at 10:22, cristian pancià <[email protected]> wrote:
> HI there, it happend twice i had a freebsd.json with all the set ups, but 
> i've done some reboot, and i can't find it seems like disappeared.
> Doing a vmadm get UUID i can have all the info but doing a find . / 
> freebsd.json  no way to get it
> Any point about that strangeness?

Where did you store the file?  The home directory of the root user
(i.e., "/root") is not persistent -- it's a part of the ramdisk image,
so its contents are lost on reboot.  If you look at the mounted file
systems in the global zone, there are a few places which _are_
persistent; e.g., "/opt" and "/var" are mounted out of the "zones"
pool.  Files in persistent locations will survive a reboot.

On my personal SmartOS machine, I have created a (custom) persistent
home directory for the root user -- "/var/root".  Then I have a
startup script[1] in which I do this:

    mount -F lofs -O -o rw /var/root /root

The "lofs" file system is a bit like the FreeBSD "nullfs", or bind
mounts in Linux.  It can make one tree within the file system (in this
case, the persistent "/var/root") appear in place of another.


[1]: https://gist.github.com/jclulow/2606370

-- 
Joshua M. Clulow
UNIX Admin/Developer
http://blog.sysmgr.org


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to