Skip to main content
Home
term:~# less tar.gz.ro
Read-only. Think freely.

Main navigation

  • Home
    • My Yard Projects
  • AIX World
    • AIX Commands
    • HACMP Commands
    • HMC Commands
    • How to assign disks to AIX partition via VIO
    • Misc stuff
    • NIM (Network Installation Management)
    • Virtual I/O (VIO)
  • Apple World
    • News
    • Tips & Tricks
    • iOS
  • CygWin World
    • CygWin Tips and Tricks
    • Cygwin: clone disk with dd
    • Cygwin: how to have multiple tabs in Cygwin's Mintty
    • Cygwin: start and enable sshd
    • config.guess: unable to guess system type
  • ESXi World
    • ESXi 7: Create VMFS Partition Via Command Line
    • ESXi : A bunch of useful commands and information
    • ESXi: How to change the hostname of an ESXi host
    • ESXi: how to change the MTU of vmkernek (vmk) interface (when UI fails)
    • ESXi: how to resize the OS partition
    • How to create a bootable USB installer of ESXi 7.0
  • Games
    • Assetto Corsa Rally vs Real Life – La Bollène-VĂ©subie → Col de Turini | Monte-Carlo Rally
    • Assetto Corsa Rally – Early Access Deep Dive
    • Diablo 3 & Reaper of Souls tips
    • EA Sports WRC Time Trial Locations and Stages
    • EA Sports WRC vs Assetto Corsa Rally | Visual Comparison (Gravel, Asphalt, Wet, Night, Snow)
    • Global Chip Shortage? Build this oddity: PC From 2009 With GeForce GTX 1050ti 4G
    • Left4Dead Lan Play
    • Live Sessions
    • Mafia II Joe's Adventures - Playboy Locations
  • HP-UX World
    • Boot into HPUX L2000
    • How to increase the size of a filesystem in LVM
    • Miscellaneous
    • Performance tools
    • Working with HP VM
  • Hardware
    • 5 Months with iPhone 15 Pro: Not PERFECT But... Must See. From Gaming to ProRes Requirements.
    • Apple Watch Series 9? Not Yet! I Still Love My "Seven of Nine" 19 months later
    • Asus ROG Sheath in 2024: a HUGE Mousepad, Bigger Than Logitech G840 XL
    • Choose Your Perfect Mic / Lavalier | AIQIU M31 vs. Boya BY-M3/BY-M2 & Puluz PU425
    • DJI Mic Mini 2 – Real-World Review and Testing
    • How I Test Mousepads: Glide, Control, and Surface Noise Explained
    • How to build a 25U 600x600 Server Rack
    • I Tested Creative Pebble V2 on My Sim Rig – Surprising Results!
    • Icy Box IB-3805-C31 speed test
    • Is the RX 9060 XT Mercury Class Worth It? Silent Power Meets Real Gameplay
    • Logitech Pro X Wired Gaming Headset (2nd gen): review + mic test with G HUB on Windows 11 and macOS
    • Logitech RS H-Shifter - Amazing Feel, But There’s a Catch (As Always)
    • Mousepad Logitech G840
    • PX8 S2 – A Journey Through Sound, Expectations and Reality
    • Play Steam Games on iPhone with Backbone One Playstation Edition gen2 USB-C / Steam Deck Alternative
    • Qnap TR-004 short review - working with linux
    • Razer Gigantus V2 XXL – 5 Months Later (Still Worth It?)
    • Samsung 870 QVO 2TB: Speed Tests and comparison with Adata SU650 and Kingston K600
    • Server-Ready MS-01 - A Small PC with Everything: SFP+, USB4, 2.5gbps LAN, Enterprise SSD, TPM 2.0
    • The TCL 34R83Q is Insane
    • The TCL 34R83Q is Insane… But There’s a Catch! Honest Review About a Real Product! Read Description.
    • The one with APC Back-UPS BE850G2-GR: Charge Whatever With It, From Phone to Computer And BEYOND :D
    • Thermaltake Pure 20 fan - HUGE and quiet!
    • Ubiquiti EdgeRouter X lift off
    • VIOFO A139 Quad HD Dash Camera - 3 Channels Camera in a 2 Channels Package. Confused?
    • Why Bluetooth Headphones Switch to MONO When Using the Microphone?
    • Why the Logitech PRO Racing Wheel Made Me a Better Driver
  • Home
  • Linux World
    • Alternative to finger command? Sure: pinky :)
    • Backup/restore/reinstall tips
    • Copy one file in linux with progress bar, using pv
    • DNSKEY: verify failed due to bad signature (keyid=19297): RRSIG has expired
    • DRBD: How to replace drbd backend devices
    • Debian 11: Unable to locate package glances
    • Debian 13: missing last command
    • Debian Bullseye (11): zpool command missing
    • Debian DRBD: How to resize drbd and OCFS2 online
    • Debian DRBD: How to resize drbd volume on top of LVM
    • Debian DRBD: Tips, Tricks and Commands
    • Debian Heartbeat: Commands, Tips and Tricks
    • Debian Heartbeat: STONITH errors when configuring CRM cluster
    • Debian Jessie: how to enable and start OpenVPN
    • Debian Tips & Tricks
    • Debian on mac mini: Core temperature above threshold, cpu clock throttled
    • Debian: Can't locate LWP/UserAgent.pm in @INC
    • Debian: HA (cluster) NFS with DRBD and Heartbeat
    • Debian: How to install, configure and manage ZFS
    • Debian: How to split rc.local in rc.local.stop and rc.local.start
    • Debian: Install and configure AFP server
    • Debian: LVM on ISCSI not activated on reboot.
    • Debian: The repository does no longer have a Release file
    • Debian: add and configure VLAN
    • Debian: how to choose default kernel in grub2
    • Debian: how to create bonding device
    • Debian: install open-vm-tools
    • Debian: pdo_mysql.so: undefined symbol: pdo_parse_params in Unknown on line 0
    • Debian: reinstall zfs when changing the linux kernel
    • Debian: ssh key no longer works after upgrading to Debian version 9
    • Docker: Pi-Hole - Failed to set capabilities on file `/usr/bin/pihole-FTL' (Operation not supported)
    • Gnome: Clear "Open With" list
    • How to add a swap file in linux
    • How to add an ISCSI disk from linux server
    • How to add exfat support on RHEL 6
    • How to be sure network interfaces have always the same names
    • How to check which local device is assigned to which iscsi disk
    • How to configure GlusterFS with a volume replicated over 2 nodes
    • How to create an encrypted image
    • How to create bond device under linux
    • How to create/modify a file's timestamp
    • How to give more memory to Lotus Notes in Linux
    • How to install bind (name server) in chroot environment
    • How to install mplayer on RHEL 6
    • How to install openoffice 4.0.1 on Fedora 20/19/18, CentOS/Red Hat (RHEL) 6.5
    • How to install python 2.7 on Red Hat Enterprise Linux Workstation release 6.5 (Santiago)
    • How to modify the hostname on Linux
    • How to mount a HFS partition in linux as Read/Write?
    • How to properly configure oidentd for IRC connections
    • How to read MBR
    • How to remove LVM snapshots if you get message "Can't remove open logical volume"
    • How to setup OpenVPN server for iPhone
    • How to show UUID of a block device, including other attributes too
    • How to speed up things by using tmpfs (your memory)
    • How to switch from pc to efi and recreate boot partition
    • How to test ethernet speed with iperf
    • How to write CD or DVD under linux's console
    • ISCIS: remove disk from linux client
    • LVM
    • Linux Network Tips and Tricks
    • Linux: CPU utilization vs. load average
    • Linux: How to clear (delete) a GUID partition table (GPT)
    • Linux: TCP keepalive or not
    • Linux: Tuning network cards on Linux
    • Linux: how to check if the disk is SSD or not
    • Network Manager - get_secrets_cb(): Couldn't get connection secrets
    • RHEL6: yum update - package is a duplicate with package
    • RPM Tips and Tricks
    • ReiserFS: how to recover deleted files
    • ShellShock - Fix Bash on Debian Lenny
    • ShellShock - Fix Bash on Debian Squeeze
    • Spamassassin: eval/lookup failed: available_nameservers: No DNS servers available!
    • Start restricted graphical apps
    • Systemd startup order
    • The Nano Incident: How a Text Editor Almost Took Down My Database
    • Ubuntu: Fast Install With VMware Fusion
    • User Management
    • Using Mdadm
    • Wi-FI KO after upgrade to RHEL 6.5
    • ZFS: Convert a One Disk Pool in Two Disks Mirror
    • ZFS: cannot import 'whatever': no such pool available
    • how to resize iscsi volume in Linux
    • rc.openvpn for slackware
  • Proxmox
    • Proxmox LXC Recovery: What Happens When Your LVM-Thin Pool Runs Out of Space
  • Solaris World
    • Tips & Tricks
  • Windows World
    • Active Directory Command Line (CMD) Tips & Tricks
    • Excel: extract text between two different characters
    • Excel: seconds in hours:minutes:seconds
    • PowerShell tips and tricks
    • Windows 7: How to repair boot partition
    • Windows 7: Steam not starting
    • Windows 7: how to disable/enable hibernation
    • Windows CMD commands
  • Tips & Tricks
    • Apache Tips & Tricks
    • Audio / Video *nix Command Line Tricks
    • Bombardier: How to use it to Download Boot Camp Drivers
    • Brigadier: How to use to Download Boot Camp Drivers
    • Citrix XEN: Install VM OS via CLI
    • Citrix Xen CLI Tips & Tricks
    • Citrix Xen: Connect to VM's VNC console
    • Citrix Xen: How to "migrate" VHD lv from one XEN to another with dd
    • Citrix Xen: How to attach an existing vdi to any virtual machine
    • Citrix Xen: How to rename a vm via command line
    • Citrix Xen: How to show vm information via command line
    • Citrix Xen: Modify VM memory value via CLI
    • Docker Tips and Tricks
    • Docker: Create a Custom Image
    • Docker: How to Check Which Docker Container is Using the Space in Linux
    • Docker: How to Run Your Own Docker Registry (e.g. Images Repository)
    • Docker: Install on Debian
    • Docker: Playing with consul
    • Docker: UNIX socket and TCP port
    • Docker: how to enable swap limit capabilities
    • Docker: how to increase php memory "the docker way"
    • Docker: syslog-ng setup
    • Drupal 7 to Drupal 10 Migration and Configuration Notes
    • Executing commands remotely on multiple systems via SSH
    • FIO Perf Tool Nutshell
    • Flushing the ARP cache
    • FreeNAS console tricks
    • Gallery2 - Gd - How to create thumbnails with fixed width while keeping the aspect ratio (variable height)
    • Gallery2 - Imagemagick - How to create thumbnails with fixed width while keeping the aspect ratio (variable height)
    • Gallery2 - Netpbm - How to create thumbnails with fixed width while keeping the aspect ratio (variable height)
    • How to change the hostid of a Linux operating system
    • How to create a hash password from text
    • How to delete files or directories that contains special characters
    • How to display the output of a file without the blank lines
    • How to enable rstatd
    • How to encrypt a file in linux (or cygwin)
    • How to find out which process is using some port
    • How to login to youtube account via Apple TV if you have Google Authenticator enabled
    • How to resume failed scp transfer
    • How to rotate pdf files with pdftk tool
    • How to send a json from command line
    • How to use an LVM partition as VirtualBox disk
    • IBM DS System Storage common commands examples
    • ImageMagick Tricks
    • Logging ssh sessions
    • Merge mp3 files
    • Miscellaneous
    • MySQL Commands, Tips and Tricks
    • Nagios Stuff
    • Nagios: UNKNOWN: Drive S/N : No health status line found,
    • Networking - questions and answers
    • Oracle: How to connect to the listener and display a parameter's value
    • Oracle: How to list DBA users for a database
    • Oracle: dbfsize Header block magic number is bad
    • Oracle: display tablespace information with sizes
    • PHP: How to display in a table, information from a text file
    • Python: fake smtp server
    • Render Blocking JavaScript and CSS
    • Runlevels
    • SAP useful commands for UNIX administrator
    • SMF Tips and Tricks
    • Script to get memory usage of desired processes
    • Strings or File Manipulation
    • The Hard Link
    • Using Find Command
    • Using VI Editor
    • VirtualBox Tips&Tricks
    • VirtualBox: How to Add Serial Port for Linux Cluster Heartbeat Monitoring
    • VirtualBox: How to work with ISCSI disks
    • dsmc commands
    • iMessage “Waiting for Activation” Error on iPhone
  • Exclamation!
    • Bash CVE-2014-6278 CVE-2014-6277
    • Heartbleed Bug
    • PHP2Shell: Critical PHP Remote Code Execution Vulnerabilities
    • Ransomware KeRanger attached to Transmission app
    • Shellshock (CVE-2014-6271)
  • About This
    • Cookies, Cookies, Cookies!
  • Donate
User account menu
  • Log in
Popular content

Today's:

  • PHP2Shell: Critical PHP Remote Code Execution Vulnerabilities and Website’s Impact
  • €6,000 MacBook Pro: Should I Throw It Away After 6 Years?
  • Drupal 7 to Drupal 10 Migration and Configuration Notes
  • The Nano Incident: How a Text Editor Almost Took Down My Database
  • Proxmox LXC Recovery: What Happens When Your LVM-Thin Pool Runs Out of Space
  • Assetto Corsa Rally vs Real Life – La Bollène-VĂ©subie → Col de Turini | Monte-Carlo Rally
  • Linux Networking: How to disable/enable offload features, RX/TX checksum, scatter, gather and beyond
  • How I Test Mousepads: Glide, Control, and Surface Noise Explained
  • Windows World
  • Hardware

All time:

  • Linux Networking: How to disable/enable offload features, RX/TX checksum, scatter, gather and beyond
  • Tivoli Storage Manager Client Commands (dsmc commands)
  • Centrify Useful Commands and Information
  • Run ZIM on OS X and create Zim.app
  • How to be sure network interfaces have always the same names
  • Linux backup/restore/reinstall
  • How to add exfat support on RHEL 6
  • Mafia II Joe's Adventures - Playboy Locations
  • HMC commands
  • Command Line Software Update in MacOS

Last viewed:

  • PHP2Shell: Critical PHP Remote Code Execution Vulnerabilities and Website’s Impact
  • Macports: Current platform "darwin 17" does not match expected platform "darwin 16"
  • AIX System Dump Commands
  • Drupal 7 to Drupal 10 Migration and Configuration Notes
  • VIOFO A139 Quad HD Dash Camera - 3 Channels Camera in a 2 Channels Package. Confused?
  • The Nano Incident: How a Text Editor Almost Took Down My Database
  • Proxmox LXC Recovery: What Happens When Your LVM-Thin Pool Runs Out of Space
  • Macports: Current platform "darwin 14" does not match expected platform "darwin 13"
  • How to speed up things by using tmpfs
  • Errpt - Logopen: open: No such file or directory

Breadcrumb

  1. Home

FreeNAS tricks

Profile picture for user root
By root, 16 July, 2014

You have gigabit network adapters and your speed is not as expected?

This could be because of many reasons but sometimes the reason is as simple as MTU.
Below is speed test with MTU 1500 vs. MTU 9000:

Gigabit with mtu 1500 - 300Mbits/sec average:

root@uranus:~# iperf -c 192.168.99.12 -B 192.168.99.10 -i 1 -t 10
------------------------------------------------------------
Client connecting to 192.168.99.12, TCP port 5001
Binding to local address 192.168.99.10
TCP window size: 96.7 KByte (default)
------------------------------------------------------------
[  3] local 192.168.99.10 port 5001 connected with 192.168.99.12 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 1.0 sec  19.8 MBytes   166 Mbits/sec
[  3]  1.0- 2.0 sec  37.8 MBytes   317 Mbits/sec
[  3]  2.0- 3.0 sec  33.9 MBytes   284 Mbits/sec
[  3]  3.0- 4.0 sec  36.8 MBytes   308 Mbits/sec
[  3]  4.0- 5.0 sec  40.6 MBytes   341 Mbits/sec
[  3]  5.0- 6.0 sec  42.1 MBytes   353 Mbits/sec
[  3]  6.0- 7.0 sec  45.9 MBytes   385 Mbits/sec
[  3]  7.0- 8.0 sec  27.9 MBytes   234 Mbits/sec
[  3]  8.0- 9.0 sec  38.6 MBytes   324 Mbits/sec
[  3]  9.0-10.0 sec  43.4 MBytes   364 Mbits/sec
[  3]  0.0-10.0 sec   367 MBytes   307 Mbits/sec

Gigabit with mtu 9000 - 1.20 Gbits/sec average:

root@uranus:~# iperf -c 192.168.99.12 -B 192.168.99.10 -i 1 -t 10
------------------------------------------------------------
Client connecting to 192.168.99.12, TCP port 5001
Binding to local address 192.168.99.10
TCP window size: 96.7 KByte (default)
------------------------------------------------------------
[  3] local 192.168.99.10 port 52430 connected with 192.168.99.12 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 1.0 sec   144 MBytes  1.20 Gbits/sec
[  3]  1.0- 2.0 sec   151 MBytes  1.27 Gbits/sec
[  3]  2.0- 3.0 sec   153 MBytes  1.28 Gbits/sec
[  3]  3.0- 4.0 sec   163 MBytes  1.37 Gbits/sec
[  3]  4.0- 5.0 sec   152 MBytes  1.27 Gbits/sec
[  3]  5.0- 6.0 sec   148 MBytes  1.24 Gbits/sec
[  3]  6.0- 7.0 sec   150 MBytes  1.25 Gbits/sec
[  3]  7.0- 8.0 sec   160 MBytes  1.34 Gbits/sec
[  3]  8.0- 9.0 sec   152 MBytes  1.28 Gbits/sec
[  3]  9.0-10.0 sec   147 MBytes  1.23 Gbits/sec
[  3]  0.0-10.0 sec  1.48 GBytes  1.27 Gbits/sec

See the difference? :)

How to list the available disks:

[root@sun] ~# camcontrol devlist
<VBOX HARDDISK 1.0>                at scbus0 target 0 lun 0 (da0,pass0)
<VBOX HARDDISK 1.0>                at scbus0 target 1 lun 0 (da1,pass1)
<VBOX HARDDISK 1.0>                at scbus1 target 0 lun 0 (ada0,pass2)
<VBOX CD-ROM 1.0>                  at scbus2 target 0 lun 0 (cd0,pass3)

How to display the size of ZFS volume, available space and mount point (df style):

[root@sun] ~# zpool list
NAME        SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
DataPool0   928G   158G   770G    17%  1.00x  ONLINE  /mnt

How to display the info of ZFS volume:

In our example, a disk was recently replaced and it is being resilvered.

[root@sun] ~# zpool status -v
  pool: DataPool0
 state: ONLINE
status: One or more devices is currently being resilvered.  The pool will
	continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
  scan: resilver in progress since Tue Jul 15 22:55:50 2014
        96.7G scanned out of 158G at 61.6M/s, 0h16m to go
        96.7G resilvered, 61.23% done
config:

	NAME                                            STATE     READ WRITE CKSUM
	DataPool0                                       ONLINE       0     0     0
	  mirror-0                                      ONLINE       0     0     0
	    gptid/45fa284a-0c62-11e4-88ee-080027f558f6  ONLINE       0     0     0  (resilvering)
	    gptid/884e2d6d-0a8a-11e4-8d94-080027f558f6  ONLINE       0     0     0

errors: No known data errors

How to put online a disk in ZFS pool:

[root@sun] ~# zpool online DataPool0 gptid/8805578c-0a8a-11e4-8d94-080027f558f6

How to replace a disk in ZFS pool:

[root@sun] ~# zpool replace DataPool0 gptid/854ddc51-0c5f-11e4-88ee-080027f558f6

How to check the disk partitions:

[root@sun] ~# gpart show
=>     63  4194241  ada0  MBR  (2.0G)
       63  1930257     1  freebsd  [active]  (942M)
  1930320       63        - free -  (31k)
  1930383  1930257     2  freebsd  (942M)
  3860640     3024     3  freebsd  (1.5M)
  3863664    41328     4  freebsd  (20M)
  3904992   289312        - free -  (141M)

=>      0  1930257  ada0s1  BSD  (942M)
        0       16          - free -  (8.0k)
       16  1930241       1  !0  (942M)

=>        34  1953525101  da1  GPT  (931G)
          34          94       - free -  (47k)
         128     4194304    1  freebsd-swap  (2.0G)
     4194432  1949330696    2  freebsd-zfs  (929G)
  1953525128           7       - free -  (3.5k)

=>        34  1953525101  da0  GPT  (931G)
          34          94       - free -  (47k)
         128     4194304    1  freebsd-swap  (2.0G)
     4194432  1949330696    2  freebsd-zfs  (929G)
  1953525128           7       - free -  (3.5k)

How to check the disk labels:

[root@sun] ~# glabel status
                                      Name  Status  Components
                             ufs/FreeNASs3     N/A  ada0s3
                             ufs/FreeNASs4     N/A  ada0s4
                            ufs/FreeNASs1a     N/A  ada0s1a
gptid/884e2d6d-0a8a-11e4-8d94-080027f558f6     N/A  da1p2
gptid/85433ef4-0c5f-11e4-88ee-080027f558f6     N/A  da0p1
gptid/854ddc51-0c5f-11e4-88ee-080027f558f6     N/A  da0p2

How to list the ISCSI LUNs and their information:

[root@sun] ~# istgt
istgt version 0.5 (20121028)
normal mode
using kqueue
using host atomic
LU2 HDD UNIT
LU2: LUN0 file=/mnt/DataPool0/virtuals/webcache, size=32212254720
LU2: LUN0 62914560 blocks, 512 bytes/block
LU2: LUN0 30.0GB storage for iqn.2014-07.ro.gz.sun:webcache
LU2: LUN0 serial 080027f558f6010
LU2: LUN0 read cache enabled, write cache enabled
LU2: LUN0 command queuing enabled, depth 32
LU3 HDD UNIT
LU3: LUN0 file=/mnt/DataPool0/swaps/pluto, size=1073741824
LU3: LUN0 2097152 blocks, 512 bytes/block
LU3: LUN0 1.0GB storage for iqn.2014-07.ro.gz.sun:swap-pluto
LU3: LUN0 serial 080027f558f6020
LU3: LUN0 read cache enabled, write cache enabled
LU3: LUN0 command queuing enabled, depth 32
LU4 HDD UNIT
LU4: LUN0 file=/mnt/DataPool0/swaps/venus, size=2147483648
LU4: LUN0 4194304 blocks, 512 bytes/block
LU4: LUN0 2.0GB storage for iqn.2014-07.ro.gz.sun:swap-venus
LU4: LUN0 serial 080027f558f6030
LU4: LUN0 read cache enabled, write cache enabled
LU4: LUN0 command queuing enabled, depth 32
LU5 HDD UNIT
LU5: LUN0 file=/mnt/DataPool0/virtuals/backups, size=375809638400
LU5: LUN0 734003200 blocks, 512 bytes/block
LU5: LUN0 350.0GB storage for iqn.2014-07.ro.gz.sun:backups-file
LU5: LUN0 serial 080027f558f6040
LU5: LUN0 read cache enabled, write cache enabled
LU5: LUN0 command queuing enabled, depth 32

If you want to add ssh key, remember that root filesystem is mounted read-only. You will have to remount it read-write before:

1. Remount root fs read-write:

[root@sun] ~/.ssh# mount -o rw /

2. Edit authorized_keys file:

[root@sun] ~/.ssh# nano authorized_keys

3. Remount root fs read-only:

[root@sun] ~/.ssh# mount -o ro /

How to correct the timezone in FreeNAS via console:

1. Mount / read-write:

[root@sun] ~# mount -o rw /
[root@sun] ~# mount | grep FreeNASs1a
/dev/ufs/FreeNASs1a on / (ufs, local, soft-updates)

2. Change the time zone:

[root@sun] ~# date
Wed Jul 16 07:03:49 PDT 2014
[root@sun] ~# cp /usr/share/zoneinfo/Europe/Vienna  /etc/localtime 
[root@sun] ~# date
Wed Jul 16 16:06:44 CEST 201

If time is not accurate, you can change it as follows:

[root@sun] ~# date 1407201652
Sun Jul 20 16:52:00 CEST 2014

If you want to set up the time via NTP, do the following:

[root@sun] ~# date
Mon Jul 21 11:35:54 CEST 2014
[root@sun] ~# service ntpd stop
Stopping ntpd.
Waiting for PIDS: 77873.
[root@sun] ~# ntpdate 192.168.11.1
21 Jul 16:42:11 ntpdate[80176]: step time server 192.168.11.1 offset 18263.080345 sec
[root@sun] ~# service ntpd start
Starting ntpd.
[root@sun] ~# date
Mon Jul 21 16:42:17 CEST 2014

3. Mount back / as read-only:

[root@sun] ~# mount -o ro /
[root@sun] ~# mount | grep FreeNASs1a
/dev/ufs/FreeNASs1a on / (ufs, local, read-only)

How to mount cdrom in FreeNas:

[root@sun] ~# mkdir /mnt/cdrom
[root@sun] ~# ls -la /dev/cd0
crw-r-----  1 root  operator  0x53 Jul 16 15:57 /dev/cd0
[root@sun] ~# mount /dev/cd0 /mnt/cdrom
mount: /dev/cd0: Invalid argument
[root@sun] ~# ls -la /dev/iso9660/
total 1
dr-xr-xr-x   2 root  wheel      512 Jul 21 20:24 ./
dr-xr-xr-x  28 root  wheel      512 Jul 16 15:57 ../
crw-r-----   1 root  operator  0x7e Jul 21 20:24 VBOXADDITIONS_4.3.14_95030
[root@sun] ~# mount -t cd9660 /dev/iso9660/VBOXADDITIONS_4.3.14_95030 /mnt/cdrom/
[root@sun] ~# df /mnt/cdrom/
Filesystem                              1K-blocks  Used Avail Capacity  Mounted on
/dev/iso9660/VBOXADDITIONS_4.3.14_95030     64398 64398     0   100%    /mnt/cdrom

How to list zfs partitions:

[root@sun] ~# zfs list
NAME                       USED  AVAIL  REFER  MOUNTPOINT
DataPool0                  268G   646G   192K  /mnt/DataPool0
DataPool0/.system         11.7M   646G   176K  /mnt/DataPool0/.system
DataPool0/.system/cores   5.23M   646G  5.23M  /mnt/DataPool0/.system/cores
DataPool0/.system/rrd     5.61M   646G  5.61M  /mnt/DataPool0/.system/rrd
DataPool0/.system/samba4   216K   646G   216K  /mnt/DataPool0/.system/samba4
DataPool0/.system/syslog   520K   646G   520K  /mnt/DataPool0/.system/syslog
DataPool0/osxTM             20G  11.2G  8.83G  /mnt/DataPool0/osxTM
DataPool0/squid           9.80G  20.2G  9.80G  /mnt/DataPool0/squid
DataPool0/swaps            846M  4.17G   846M  /mnt/DataPool0/swaps
DataPool0/virtuals         178G   122G   178G  /mnt/DataPool0/virtuals
DataPool0/www             58.9G  21.1G  58.9G  /mnt/DataPool0/www

How to show pool-wide I/O statistics:

02:05:05 root@minivm:~# zpool iostat
               capacity     operations     bandwidth 
pool         alloc   free   read  write   read  write
-----------  -----  -----  -----  -----  -----  -----
mdbkp         761G   255G      0      0     11     32
plex         3.10T   534G      0      0  1.75K  5.93K
timemachine  2.93T   715G      0      0     28     62
tm           3.33T   306G     81    196  40.7M  43.1M
-----------  -----  -----  -----  -----  -----  -----

How to show virtual devices I/O statistics:

02:05:01 root@minivm:~# zpool iostat -v
                              capacity     operations     bandwidth 
pool                        alloc   free   read  write   read  write
--------------------------  -----  -----  -----  -----  -----  -----
mdbkp                        761G   255G      0      0     11     32
  sdd1                       761G   255G      0      0     11     32
--------------------------  -----  -----  -----  -----  -----  -----
plex                        3.10T   534G      0      0  1.95K  6.60K
  sdh1                      3.10T   534G      0      0  1.95K  6.60K
--------------------------  -----  -----  -----  -----  -----  -----
timemachine                 2.93T   715G      0      0     28     62
  sde1                      2.93T   715G      0      0     28     62
--------------------------  -----  -----  -----  -----  -----  -----
tm                          3.33T   306G     81    196  40.7M  43.1M
  mirror                    3.33T   306G     81    196  40.7M  43.1M
    sdi1                        -      -     77     25  40.2M  2.38M
    replacing                   -      -      4    170   496K  40.8M
      15866860730596997993      -      -      0      0      0      0
      sdg1                      -      -      4    170   496K  40.8M
--------------------------  -----  -----  -----  -----  -----  -----
  • Log in to post comments
  • 25385 views

Thou shalt not steal!

If you want to use this information on your own website, please remember: by doing copy/paste entirely it is always stealing and you should be ashamed of yourself!
Have at least the decency to create your own text and comments and run the commands on your own servers and provide your output, not what I did!

Or at least link back to this website.

Popular content

Today's:

  • PHP2Shell: Critical PHP Remote Code Execution Vulnerabilities and Website’s Impact
  • €6,000 MacBook Pro: Should I Throw It Away After 6 Years?
  • Drupal 7 to Drupal 10 Migration and Configuration Notes
  • The Nano Incident: How a Text Editor Almost Took Down My Database
  • Proxmox LXC Recovery: What Happens When Your LVM-Thin Pool Runs Out of Space
  • Assetto Corsa Rally vs Real Life – La Bollène-VĂ©subie → Col de Turini | Monte-Carlo Rally
  • Linux Networking: How to disable/enable offload features, RX/TX checksum, scatter, gather and beyond
  • How I Test Mousepads: Glide, Control, and Surface Noise Explained
  • Windows World
  • Hardware

All time:

  • Linux Networking: How to disable/enable offload features, RX/TX checksum, scatter, gather and beyond
  • Tivoli Storage Manager Client Commands (dsmc commands)
  • Centrify Useful Commands and Information
  • Run ZIM on OS X and create Zim.app
  • How to be sure network interfaces have always the same names
  • Linux backup/restore/reinstall
  • How to add exfat support on RHEL 6
  • Mafia II Joe's Adventures - Playboy Locations
  • HMC commands
  • Command Line Software Update in MacOS

Last viewed:

  • PHP2Shell: Critical PHP Remote Code Execution Vulnerabilities and Website’s Impact
  • Macports: Current platform "darwin 17" does not match expected platform "darwin 16"
  • AIX System Dump Commands
  • Drupal 7 to Drupal 10 Migration and Configuration Notes
  • VIOFO A139 Quad HD Dash Camera - 3 Channels Camera in a 2 Channels Package. Confused?
  • The Nano Incident: How a Text Editor Almost Took Down My Database
  • Proxmox LXC Recovery: What Happens When Your LVM-Thin Pool Runs Out of Space
  • Macports: Current platform "darwin 14" does not match expected platform "darwin 13"
  • How to speed up things by using tmpfs
  • Errpt - Logopen: open: No such file or directory

@ gz.ro 2011-2026
Page generated in 0.0517 seconds. Served by tar.