unix:freebsd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
unix:freebsd [2019-02-25T06:34:45+0100]
Wolfgang
unix:freebsd [2021-08-26T11:58:10+0200] (current)
Wolfgang
Line 5: Line 5:
  
 ==== Better top ==== ==== Better top ====
-<code bash>+<sxh bash>
 nice top -j -P -S -z -I -t nice top -j -P -S -z -I -t
-</code> +top -j -S -u -b -w -q -a 
 +</sxh>
 ==== Reinstall Port ==== ==== Reinstall Port ====
 <code bash> <code bash>
 make deinstall install clean make deinstall install clean
 </code> </code>
 +
 +==== Add Disk and move ezjail Jails ====
 +<sxh bash>
 +camcontrol devlist
 +gpart show da1
 +gpart create -s GPT da1
 +gpart add -t freebsd-ufs -a 1M da1
 +newfs -U /dev/da1p1
 +mkdir /data
 +gpart show da1
 +vim /etc/fstab
 +mount /data
 +service ezjail stop
 +mkdir -p /data/usr/jails
 +time rsync -aP /usr/jails /data/usr/
 +vim /etc/fstab.jail_1
 +vim /etc/fstab.jail_n
 +vim /usr/local/etc/ezjail.conf
 +vim /usr/local/etc/ezjail/jail_1
 +vim /usr/local/etc/ezjail/jail_n
 +mv /usr/jails{,_old}
 +service ezjail start
 +</sxh>
  
 ==== Memory Usage ==== ==== Memory Usage ====
  
 https://raw.githubusercontent.com/ocochard/myscripts/master/FreeBSD/freebsd-memory.sh https://raw.githubusercontent.com/ocochard/myscripts/master/FreeBSD/freebsd-memory.sh
 +
 +==== Iterate over iocage jails ====
 +
 +<code>
 +for j in $(iocage list -q -h | cut -f1); do echo "$j:\r" && iocage exec $j freebsd-version; done
 +</code>
 +
  • unix/freebsd.1551072885.txt.gz
  • Last modified: 2019-02-25T06:34:45+0100
  • by Wolfgang