Skip to content

Instantly share code, notes, and snippets.

View snajpa's full-sized avatar

Pavel Snajdr snajpa

  • vpsFree.cz
  • Brno, Czech Republic
View GitHub Profile
[root@backuper zfs]# zpool import -d /dev/disk/by-path/
pool: storage
id: 17867153918278089024
state: FAULTED
status: The pool metadata is corrupted.
action: The pool cannot be imported due to damaged devices or data.
The pool may be active on another system, but can be imported using
the '-f' flag.
see: http://zfsonlinux.org/msg/ZFS-8000-72
config:
[[email protected]]
~ # zpool status
pool: storage
state: DEGRADED
status: One or more devices could not be used because the label is missing or
invalid. Sufficient replicas exist for the pool to continue
functioning in a degraded state.
action: Replace the device using 'zpool replace'.
see: http://zfsonlinux.org/msg/ZFS-8000-4J
scan: scrub in progress since Mon Feb 15 14:44:05 2016
[[email protected]]
~ # zpool import
pool: storage
id: 17867153918278089024
state: UNAVAIL
status: One or more devices contains corrupted data.
action: The pool cannot be imported due to damaged devices or data.
see: http://zfsonlinux.org/msg/ZFS-8000-5E
config:
[[email protected]]
~ # zpool status
pool: storage
state: DEGRADED
status: One or more devices could not be used because the label is missing or
invalid. Sufficient replicas exist for the pool to continue
functioning in a degraded state.
action: Replace the device using 'zpool replace'.
see: http://zfsonlinux.org/msg/ZFS-8000-4J
scan: scrub in progress since Mon Feb 15 14:44:05 2016
[[email protected]]
~ # zpool status
pool: storage
state: ONLINE
status: One or more devices could not be used because the label is missing or
invalid. Sufficient replicas exist for the pool to continue
functioning in a degraded state.
action: Replace the device using 'zpool replace'.
see: http://zfsonlinux.org/msg/ZFS-8000-4J
scan: scrub canceled on Sat Feb 20 16:51:07 2016
[[email protected]]
~/build-vpsfree-templates/templates # export PATH=$PATH:/bin:/sbin; /root/build-vpsfree-templates/bin/build-vpsfree-templates fedora-23
Building fedora-23 ...
Downloading #1 http://ftp.fi.muni.cz/pub/linux/fedora/linux/releases/23/Everything/x86_64/os/Packages/f/fedora-release-23-1.noarch.rpm
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16726 100 16726 0 0 219k 0 --:--:-- --:--:-- --:--:-- 217k
warning: /var/build/install.download.Fla/release1.rpm: Header V3 RSA/SHA256 Signature, key ID 34ec9cba: NOKEY
Preparing... ################################# [100%]
Updating / installing...
[[email protected]]
~ # cat /proc/spl/kstat/zfs/storage/txgs
18 0 0x01 53 5936 25548199873 1309969878148
txg birth state ndirty nread nwritten reads writes otime qtime wtime stime
26735785 1298944733629 C 0 0 0 0 0 909279 3078 503055693 264820
26735786 1298945642908 C 0 0 0 0 0 503063811 3758 259336 1897889
26735787 1299448706719 C 17940480 0 6458368 0 801 48734026 3996 39648 340182357
26735788 1299497440745 C 212992 512 1248256 1 247 74978 28576 340126453 238116979
26735789 1299497515723 C 3981312 0 4422656 0 720 340186647 3830 238084759 329790336
26735790 1299837702370 C 20545536 0 8518
[[email protected]]
~ # perf list
List of pre-defined events (to be used in -e):
branch-instructions OR branches [Hardware event]
branch-misses [Hardware event]
bus-cycles [Hardware event]
cache-misses [Hardware event]
cache-references [Hardware event]
[[email protected]]
~ # perf list
List of pre-defined events (to be used in -e):
branch-instructions OR branches [Hardware event]
branch-misses [Hardware event]
bus-cycles [Hardware event]
cache-misses [Hardware event]
cache-references [Hardware event]
[[email protected]]
~ # cat /proc/zoneinfo
Node 0, zone DMA
pages free 3894
min 0
low 0
high 0
scanned 80211
spanned 4080
present 3784