usb 3 is currently disabled by default
I've created a second pool on the SSD and used Dusan's template to relocate my jails to the new destination. This worked like a charm! :)
But somehow my drives won't sleep, even after 10hours of nothingness happend and no sleep. I can hear them and see them on the watt-meter. I've disabled all periodic accesses from the Plex Plugin, no periodic snapshots were scheduled at the time. I even stopped the jails but no sleep.
I remembered using the fresh install of FreeNAS my drives were going to sleep. But after I've started with the jails the sleepless time started. Can I find out what access is keeping the drives up and running?
Thanks :)
cannot mount '/plugins_partition/jails/.warden-template-pluginjail': failed to create mountpoint filesystem successfully created, but not mounted ERROR: Failed creating ZFS base dataset cannot open 'plugins_partition/jails/.warden-template-pluginjail': dataset does not exist ERROR: Failed to create ZFS base dataset
[root@homenas] /data# zfs list NAME USED AVAIL REFER MOUNTPOINT plugins_partition 2.31M 7.81G 160K /mnt/plugins_partition plugins_partition/.system 960K 7.81G 168K /mnt/plugins_partition/.system plugins_partition/.system/cores 144K 7.81G 144K /mnt/plugins_partition/.system/cores plugins_partition/.system/samba4 336K 7.81G 336K /mnt/plugins_partition/.system/samba4 plugins_partition/.system/syslog 312K 7.81G 312K /mnt/plugins_partition/.system/syslog plugins_partition/jails 168K 7.81G 168K /mnt/plugins_partition/jails red_disks 1.41T 3.78T 256K /mnt/red_disks red_disks/Backups 139G 3.78T 139G /mnt/red_disks/Backups red_disks/Movies 576G 3.78T 576G /mnt/red_disks/Movies red_disks/Music 722G 3.78T 722G /mnt/red_disks/Music red_disks/media 3.98G 3.78T 3.98G /mnt/red_disks/media
Enough theory, this is the "Relocate jails how-to" :) :
Assumptions:
Steps:
- The pool you are transferring the jails from is main_pool
- The destination pool is ssd_pool
- The jail root (Jails->Configuration) is /mnt/main_pool/jails
- The new jail root will be /mnt/ssd_pool/jails
- Turn off all plugins (Plugins->Installed)
- Stop all jails (Jails->View Jails)
- Run these commands via CLI:[PANEL]zfs snapshot -r main_pool/jails@relocate
zfs send -R main_pool/jails@relocate | zfs receive -v ssd_pool/jails
zfs get -rH -o name -s received mountpoint ssd_pool/jails | xargs -I {} sh -c "zfs set mountpoint=/{} {}; zfs mount {};"[/PANEL]- Change the Jail Root to /mnt/ssd_pool/jails (Jails->Configuration)
- Start jails/plugins
- Check that everything works and destroy the original jails dataset (main_pool/jails)
Sounds like you are going to need the old backup and fresh install Freenas. It took me a few tries till I got this right I created the SSD dataset first created the SYS file there and the jails as well then I created the mass data set for plex etc on another HDD drive now I added another 1TB drive for pictures backup with BTsync and works good.Hi
I did this and my jails start from the new SSD but my plugin manager says I have no plugins. Do you know how I fix that?
Thx
Actually, nothing nasty happens. The jails won't start of course, but FreeNAS will continue running without problems.
In reality, the config DB contains only single reference to the jails location and you can change it via GUI. The reason why you can't just cp it over is that the jails (warden) uses ZFS features to use disk space effectively (that's the reason you can't use UFS with FreeNAS jails). One plugin jail consumes about 700MB of disk space. With 5 plugins/jails you would waste 4*700MB=2.8GB of disk space by basically identical files. Instead of creating copies, warden does a snapshot of the plugin template dataset and then creates individual plugin jails as ZFS clones of the template snapshot. If you cp this to a new location you will lose the snapshot/clone links. Therefore you need to use ZFS replication to relocate the jails. Another small complication is that warden explicitly sets the template dataset mountpoint.
Enough theory, this is the "Relocate jails how-to" :) :
Assumptions:
Steps:
- The pool you are transferring the jails from is main_pool
- The destination pool is ssd_pool
- The jail root (Jails->Configuration) is /mnt/main_pool/jails
- The new jail root will be /mnt/ssd_pool/jails
- Turn off all plugins (Plugins->Installed)
- Stop all jails (Jails->View Jails)
- Run these commands via CLI:[PANEL]zfs snapshot -r main_pool/jails@relocate
zfs send -R main_pool/jails@relocate | zfs receive -v ssd_pool/jails
zfs get -rH -o name -s received mountpoint ssd_pool/jails | xargs -I {} sh -c "zfs set mountpoint=/{} {}; zfs mount {};"[/PANEL]- Change the Jail Root to /mnt/ssd_pool/jails (Jails->Configuration)
- Start jails/plugins
- Check that everything works and destroy the original jails dataset (main_pool/jails)
Actually, nothing nasty happens. The jails won't start of course, but FreeNAS will continue running without problems.
In reality, the config DB contains only single reference to the jails location and you can change it via GUI. The reason why you can't just cp it over is that the jails (warden) uses ZFS features to use disk space effectively (that's the reason you can't use UFS with FreeNAS jails). One plugin jail consumes about 700MB of disk space. With 5 plugins/jails you would waste 4*700MB=2.8GB of disk space by basically identical files. Instead of creating copies, warden does a snapshot of the plugin template dataset and then creates individual plugin jails as ZFS clones of the template snapshot. If you cp this to a new location you will lose the snapshot/clone links. Therefore you need to use ZFS replication to relocate the jails. Another small complication is that warden explicitly sets the template dataset mountpoint.
Enough theory, this is the "Relocate jails how-to" :) :
Assumptions:
Steps:
- The pool you are transferring the jails from is main_pool
- The destination pool is ssd_pool
- The jail root (Jails->Configuration) is /mnt/main_pool/jails
- The new jail root will be /mnt/ssd_pool/jails
- Turn off all plugins (Plugins->Installed)
- Stop all jails (Jails->View Jails)
- Run these commands via CLI:[PANEL]zfs snapshot -r main_pool/jails@relocate
zfs send -R main_pool/jails@relocate | zfs receive -v ssd_pool/jails
zfs get -rH -o name -s received mountpoint ssd_pool/jails | xargs -I {} sh -c "zfs set mountpoint=/{} {}; zfs mount {};"[/PANEL]- Change the Jail Root to /mnt/ssd_pool/jails (Jails->Configuration)
- Start jails/plugins
- Check that everything works and destroy the original jails dataset (main_pool/jails)
Is it possible to run Jails from USB drives? I have the same problem as mka except I don't have any spare SATA ports left to use for SSD jails.
My server never powers down which I assume is b/c I have plex and transmission plugins running and plex is constantly refreshing the library. I'm the only person who uses the server so there's no point in it using more power than necessary from the time I go to bed to when I get home from work in the evenings around 6pm. It's cobbled together from left over parts so its not the most energy efficient build to begin with but I don't care how much it uses when it's being utilized. I get good transfer rates on LAN (110 MB/s peak on CFS share) so I'm please with the performance. I just want it to go to sleep when I'm not at home.
Also, I think I can, but I just want to know if I can delete the snapshots in the new jail location, just for housekeeping purposes.
Actually, nothing nasty happens. The jails won't start of course, but FreeNAS will continue running without problems.
In reality, the config DB contains only single reference to the jails location and you can change it via GUI. The reason why you can't just cp it over is that the jails (warden) uses ZFS features to use disk space effectively (that's the reason you can't use UFS with FreeNAS jails). One plugin jail consumes about 700MB of disk space. With 5 plugins/jails you would waste 4*700MB=2.8GB of disk space by basically identical files. Instead of creating copies, warden does a snapshot of the plugin template dataset and then creates individual plugin jails as ZFS clones of the template snapshot. If you cp this to a new location you will lose the snapshot/clone links. Therefore you need to use ZFS replication to relocate the jails. Another small complication is that warden explicitly sets the template dataset mountpoint.
Enough theory, this is the "Relocate jails how-to" :) :
Assumptions:
Steps:
- The pool you are transferring the jails from is main_pool
- The destination pool is ssd_pool
- The jail root (Jails->Configuration) is /mnt/main_pool/jails
- The new jail root will be /mnt/ssd_pool/jails
- Turn off all plugins (Plugins->Installed)
- Stop all jails (Jails->View Jails)
- Run these commands via CLI:[PANEL]zfs snapshot -r main_pool/jails@relocate
zfs send -R main_pool/jails@relocate | zfs receive -v ssd_pool/jails
zfs get -rH -o name -s received mountpoint ssd_pool/jails | xargs -I {} sh -c "zfs set mountpoint=/{} {}; zfs mount {};"[/PANEL]- Change the Jail Root to /mnt/ssd_pool/jails (Jails->Configuration)
- Start jails/plugins
- Check that everything works and destroy the original jails dataset (main_pool/jails)
Just throwing some more love at this post - I've also used these steps several times, since my box is a mishmash hobby thing that's grown and evolved in the many months since I first took the plunge. Jails have been relocated back and forth all over the place, and each time I've typed in the magic incantations, held my breath and been genuinely stunned to see everything has worked perfectly. Sooner or later I'm going to do something dumb and have to rebuild from scratch, but in the meantime, this post has postponed that dullness many times! Thanks, Dusan.(lots of clever stuff)