wiki:FreeBSDgmirror

FreeBSD - Moving a gmirror to a Larger Drives

rip.psg.com was running out of space on an antique 250GB gmirror drive set. So I got two 2TB drives and migrated.

Check and Initialize the Drives

rip.psg.com:/root# camcontrol devlist
<TEAC DV-28E-V 1.AB>               at scbus0 target 0 lun 0 (pass0,cd0)
<ST3250820NS 3.AEK>                at scbus1 target 0 lun 0 (ada0,pass1)
<ST3250820NS 3.AEK>                at scbus1 target 1 lun 0 (ada1,pass2)
<WDC WD2000F9YZ-09N20L1 01.01A02>  at scbus2 target 0 lun 0 (pass3,ada2)
<WDC WD2000F9YZ-09N20L1 01.01A02>  at scbus2 target 1 lun 0 (pass4,ada3)

from /var/run/dmesg.boot

ada0: ST3250820NS 9QE7MXMC
ada1: ST3250820NS 9QE7MY84
ada2: WDC WD2000F9YZ-09N20L1 01.01A02 WD-WMC5C0D5MXU1
ada3: WDC WD2000F9YZ-09N20L1 01.01A02 WD-WMC5C0E2C2L0

Make sure all metadata are gone from previous work

rip.psg.com:/root# gpart destroy -F ada2
ada2 destroyed
rip.psg.com:/root# gpart destroy -F ada2
ada2 destroyed
rip.psg.com:/root# gpart destroy -F ada3
ada3 destroyed

And, because I do not trust things

rip.psg.com:/root# dd if=/dev/zero of=/dev/ada2
^C51101+0 records in
51100+0 records out
26163200 bytes transferred in 2.518037 secs (10390316 bytes/sec)
rip.psg.com:/root# dd if=/dev/zero of=/dev/ada3
^C51702+0 records in
51701+0 records out
26470912 bytes transferred in 2.563411 secs (10326441 bytes/sec)

Create a Single Drive Mirror

rip.psg.com:/root# gmirror label -v gm1 /dev/ada2 /dev/ada3
Metadata value stored on /dev/ada2.
Metadata value stored on /dev/ada3.
Done.

Create an MBR Partitioning Scheme

rip.psg.com:/root# gpart create -s MBR mirror/gm1
mirror/gm1 created 

Make the disk a single FreeBSD slice and make it bootable (I do not know why)

rip.psg.com:/root# gpart add -t freebsd -a 4k mirror/gm1
mirror/gm1s1 added, but partition is not aligned on 4096 bytes
rip.psg.com:/root# gpart create -s MBR mirror/gm1s1
mirror/gm1s1 created

Create s1 Slice

rip.psg.com:/root# gpart create -s BSD mirror/gm1s1
mirror/gm1s1 created

Check our handiwork

rip.psg.com:/root# gpart show mirror/gm1
=>        63  3907029104  mirror/gm1  MBR  (1.8T)
          63          63              - free -  (32K)
         126  3907028979           1  freebsd  (1.8T)
  3907029105          62              - free -  (31K)

Partition the Mirror

Make the FileSystem partitions

rip.psg.com:/root# gpart add -t freebsd-ufs  -a 4k -s 16g mirror/gm1s1
mirror/gm1s1a added
rip.psg.com:/root# gpart add -t freebsd-swap -a 4k -s 16g mirror/gm1s1
mirror/gm1s1b added
rip.psg.com:/root# gpart add -t freebsd-ufs  -a 4k -s 16g mirror/gm1s1
mirror/gm1s1d added
rip.psg.com:/root# gpart add -t freebsd-ufs  -a 4k -s 16g mirror/gm1s1
mirror/gm1s1e added
rip.psg.com:/root# gpart add -t freebsd-ufs  -a 4k -s 16g mirror/gm1s1
mirror/gm1s1e added
rip.psg.com:/root# gpart add -t freebsd-ufs  -a 4k        mirror/gm1s1
mirror/gm1s1f added

And again inspect

rip.psg.com:/root# gpart show mirror/gm1s1
=>         0  3907028979  mirror/gm1s1  BSD  (1.8T)
           0           2                - free -  (1.0K)
           2    33554432             1  freebsd-ufs  (16G)
    33554434    33554432             2  freebsd-swap  (16G)
    67108866    33554432             4  freebsd-ufs  (16G)
   100663298    33554432             5  freebsd-ufs  (16G)
   134217730    33554432             6  freebsd-ufs  (16G)
   167772162  3739256816             7  freebsd-ufs  (1.7T)
  3907028978           1                - free -  (512B)

Install boot code

rip.psg.com:/root# gpart bootcode -b /boot/mbr mirror/gm1
bootcode written to mirror/gm1

Make partition active

rip.psg.com:/root# gpart set -a active -i 1 mirror/gm1
active set on mirror/gm1s1

Make slice bootable

rip.psg.com:/root# gpart bootcode -b /boot/boot mirror/gm1s1
bootcode written to mirror/gm1s1

Make FileSystems

At this point, boot single-user

:/> df -h
Filesystem            Size    Used   Avail Capacity  Mounted on
/dev/mirror/gm0s1a    989M    527M    383M    58%    /
devfs                 1.0K    1.0K      0B   100%    /dev
:/> mount -a
:/> df -h
Filesystem            Size    Used   Avail Capacity  Mounted on
/dev/mirror/gm0s1a    989M    527M    383M    58%    /
devfs                 1.0K    1.0K      0B   100%    /dev
/dev/mirror/gm0s1d    989M     23M    887M     3%    /var
/dev/mirror/gm0s1e    989M    1.2M    909M     0%    /var/spool
/dev/mirror/gm0s1f    989M     47M    863M     5%    /root
/dev/mirror/gm0s1g    214G    213G    -16G   108%    /usr
procfs                4.0K    4.0K      0B   100%    /proc
fdescfs               1.0K    1.0K      0B   100%    /dev/fd
:/> bash

Initialize FileSystems

:/root# newfs -U /dev/mirror/gm1s1a
/dev/mirror/gm1s1a: 16384.0MB (33554432 sectors) block size 32768, fragment size 4096
        using 27 cylinder groups of 626.09MB, 20035 blks, 80256 inodes.
        with soft updates
super-block backups (for fsck_ffs -b #) at:
 192, 1282432, 2564672, 3846912, 5129152, 6411392, 7693632, 8975872, 10258112,
 11540352, 12822592, 14104832, 15387072, 16669312, 17951552, 19233792,
 20516032, 21798272, 23080512, 24362752, 25644992, 26927232, 28209472,
 29491712, 30773952, 32056192, 33338432
:/root# newfs -U /dev/mirror/gm1s1d
/dev/mirror/gm1s1d: 16384.0MB (33554432 sectors) block size 32768, fragment size 4096
        using 27 cylinder groups of 626.09MB, 20035 blks, 80256 inodes.
        with soft updates
super-block backups (for fsck_ffs -b #) at:
 192, 1282432, 2564672, 3846912, 5129152, 6411392, 7693632, 8975872, 10258112,
 11540352, 12822592, 14104832, 15387072, 16669312, 17951552, 19233792,
 20516032, 21798272, 23080512, 24362752, 25644992, 26927232, 28209472,
 29491712, 30773952, 32056192, 33338432
:/root# newfs -U /dev/mirror/gm1s1e
/dev/mirror/gm1s1e: 16384.0MB (33554432 sectors) block size 32768, fragment size 4096
        using 27 cylinder groups of 626.09MB, 20035 blks, 80256 inodes.
        with soft updates
super-block backups (for fsck_ffs -b #) at:
 192, 1282432, 2564672, 3846912, 5129152, 6411392, 7693632, 8975872, 10258112,
 11540352, 12822592, 14104832, 15387072, 16669312, 17951552, 19233792,
 20516032, 21798272, 23080512, 24362752, 25644992, 26927232, 28209472,
 29491712, 30773952, 32056192, 33338432
:/root# newfs -U /dev/mirror/gm1s1f
/dev/mirror/gm1s1f: 16384.0MB (33554432 sectors) block size 32768, fragment size 4096
        using 27 cylinder groups of 626.09MB, 20035 blks, 80256 inodes.
        with soft updates
super-block backups (for fsck_ffs -b #) at:
 192, 1282432, 2564672, 3846912, 5129152, 6411392, 7693632, 8975872, 10258112,
 11540352, 12822592, 14104832, 15387072, 16669312, 17951552, 19233792,
 20516032, 21798272, 23080512, 24362752, 25644992, 26927232, 28209472,
 29491712, 30773952, 32056192, 33338432
:/root# newfs -U /dev/mirror/gm1s1g
/dev/mirror/gm1s1g: 1825809.0MB (3739256816 sectors) block size 32768, fragment size 4096
        using 2917 cylinder groups of 626.09MB, 20035 blks, 80256 inodes.
        with soft updates
super-block backups (for fsck_ffs -b #) at:
 192, 1282432, 2564672, 3846912, 5129152, 6411392, 7693632, 8975872, 10258112,
 11540352, 12822592, 14104832, 15387072, 16669312, 17951552, 19233792,
 20516032, 21798272, 23080512, 24362752, 25644992, 26927232, 28209472,
 29491712, 30773952, 32056192, 33338432, 34620672, 35902912, 37185152,
 38467392, 39749632, 41031872, 42314112, 43596352, 44878592, 46160832,
 47443072, 48725312, 50007552, 51289792, 52572032, 53854272, 55136512,
 56418752, 57700992, 58983232, 60265472, 61547712, 62829952, 64112192,
 65394432, 66676672, 67958912, 69241152, 70523392, 71805632, 73087872,
 74370112, 75652352, 76934592, 78216832, 79499072, 80781312, 82063552,
 83345792, 84628032, 85910272, 87192512, 88474752, 89756992, 91039232,
 92321472, 93603712, 94885952, 96168192, 97450432, 98732672, 100014912,
 101297152, 102579392, 103861632, 105143872, 106426112, 107708352, 108990592,
 110272832, 111555072, 112837312, 114119552, 115401792, 116684032, 117966272,
 119248512, 120530752, 121812992, 123095232, 124377472, 125659712, 126941952,
 ...
 3699262592, 3700544832, 3701827072, 3703109312, 3704391552, 3705673792,
 3706956032, 3708238272, 3709520512, 3710802752, 3712084992, 3713367232,
 3714649472, 3715931712, 3717213952, 3718496192, 3719778432, 3721060672,
 3722342912, 3723625152, 3724907392, 3726189632, 3727471872, 3728754112,
 3730036352, 3731318592, 3732600832, 3733883072, 3735165312, 3736447552,
 3737729792, 3739012032

Clone FilesSystems

As the filesystems are live, this is only a test. Will have to be redone in single user mode to be safe.

Dump | Restore / filesystem

:/root# mount /dev/mirror/gm1s1a /mnt
:/root# dump -C16 -b64 -0aL -f - / | (cd /mnt && restore -rf -)
  DUMP: Date of this level 0 dump: Sat Jul  2 21:59:47 2016
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping snapshot of /dev/mirror/gm0s1a (/) to standard output
  DUMP: mapping (Pass I) [regular files]
  DUMP: Cache 16 MB, blocksize = 65536
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 532943 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
warning: ./.snap: File exists
expected next file 21, got 15
  DUMP: DUMP: 533645 tape blocks
  DUMP: finished in 35 seconds, throughput 15247 KBytes/sec
  DUMP: DUMP IS DONE

Dump | Restore /var filesystem

:/root# mount /dev/mirror/gm1s1d /mnt/var
:/root# dump -C16 -b64 -0aL -f - /var | (cd /mnt/var && restore -rf -)
  DUMP: Date of this level 0 dump: Sat Jul  2 22:00:56 2016
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping snapshot of /dev/mirror/gm0s1d (/var) to standard output
  DUMP: mapping (Pass I) [regular files]
  DUMP: Cache 16 MB, blocksize = 65536
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 23429 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
warning: ./.snap: File exists
expected next file 12, got 10
  DUMP: DUMP: 23467 tape blocks
  DUMP: finished in 2 seconds, throughput 11733 KBytes/sec
  DUMP: DUMP IS DONE

Dump | Restore /var/spool filesystem

:/root# mount /dev/mirror/gm1s1e /mnt/var/spool
:/root# dump -C16 -b64 -0aL -f - /var/spool | (cd /mnt/var/spool && restore -rf -)
  DUMP: Date of this level 0 dump: Sat Jul  2 22:01:17 2016
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping snapshot of /dev/mirror/gm0s1e (/var/spool) to standard output
  DUMP: mapping (Pass I) [regular files]
  DUMP: Cache 16 MB, blocksize = 65536
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 1249 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
warning: ./.snap: File exists
expected next file 47115, got 4
  DUMP: DUMP: 1285 tape blocks
  DUMP: finished in less than a second
  DUMP: DUMP IS DONE

Dump | Restore /root filesystem

:/root# mount /dev/mirror/gm1s1f /mnt/root
:/root# dump -C16 -b64 -0aL -f - /root | (cd /mnt/root && restore -rf -)
  DUMP: Date of this level 0 dump: Sat Jul  2 22:01:39 2016
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping snapshot of /dev/mirror/gm0s1f (/root) to standard output
  DUMP: mapping (Pass I) [regular files]
  DUMP: Cache 16 MB, blocksize = 65536
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 48098 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
warning: ./.snap: File exists
expected next file 24, got 23
  DUMP: DUMP: 48134 tape blocks
  DUMP: finished in 2 seconds, throughput 24067 KBytes/sec
  DUMP: DUMP IS DONE

Dump | Restore /usr filesystem

:/root# mount /dev/mirror/gm1s1g /mnt/usr 
:/root# dump -C16 -b64 -0aL -f - /usr | (cd /mnt/usr && restore -rf -)

Prepare for Booting gm1

Deactivate gm0

:/root# gpart unset -a active -i 1 mirror/gm0
active unset on mirror/gm0s1

Be sure gm1 is bootable

:/root# gpart set -a active -i 1 mirror/gm1
active set on mirror/gm1s1
:/root# gpart bootcode -b /boot/mbr mirror/gm1
bootcode written to mirror/gm1

Check active and inactive

:/root# gpart show mirror/gm1
=>        63  3907029104  mirror/gm1  MBR  (1.8T)
          63          63              - free -  (32K)
         126  3907028979           1  freebsd  [active]  (1.8T)
  3907029105          62              - free -  (31K)

:/root# gpart show mirror/gm0
=>       63  488397104  mirror/gm0  MBR  (233G)
         63  488392002           1  freebsd  (233G)
  488392065         63              - free -  (32K)
  488392128       4977           2  freebsd  (2.4M)
  488397105         62              - free -  (31K)

Edit fstab to mount gm1

:/root# cat /etc/fstab
# Device                Mountpoint      FStype  Options         Dump    Pass#
#
/dev/mirror/gm0s1a      /               ufs     rw              1       1
/dev/mirror/gm0s1d      /var            ufs     rw              2       2
/dev/mirror/gm0s1e      /var/spool              ufs     rw      2       2
/dev/mirror/gm0s1f      /root           ufs     rw              2       2
/dev/mirror/gm0s1g      /usr            ufs     rw              2       2
#
/dev/acd0               /cdrom          cd9660  ro,noauto       0       0
#
/dev/mirror/gm0s1b      none            swap    sw              0       0
proc                    /proc           procfs  rw              0       0
fdesc   /dev/fd         fdescfs         rw      0       0
#
# end

Reboot

:/root# reboot

Jul  3 01:28:14 init: single user shell terminated.
Waiting (max 60 seconds) for system process `vnlru' to stop...done
Waiting (max 60 seconds) for system process `bufdaemon' to stop...done
Waiting (max 60 seconds) for system process `syncer' to stop...
Syncing disks, vnodes remaining...1 0 0 0 0 done
All buffers synced.
Uptime: 3h33m50s
GEOM_MIRROR: Device gm1: provider mirror/gm1 destroyed.
GEOM_MIRROR: Device gm1 destroyed.
GEOM_MIRROR: Device gm0: provider mirror/gm0 destroyed.
GEOM_MIRROR: Device gm0 destroyed.
Rebooting...
cpu_reset: Stopping other CPUs
...

  ______               ____   _____ _____  
 |  ____|             |  _ \ / ____|  __ \ 
 | |___ _ __ ___  ___ | |_) | (___ | |  | |
 |  ___| '__/ _ \/ _ \|  _ < \___ \| |  | |                ,        ,
 | |   | | |  __/  __/| |_) |____) | |__| |               /(        )`
 | |   | | |    |    ||     |      |      |               \ \___   / |
 |_|   |_|  \___|\___||____/|_____/|_____/                /- _  `-/  '
                                                         (/\/ \ \   /\
 +============Welcome to FreeBSD===========+             / /   | `    \
 |                                         |             O O   ) /    |
 |  1. Boot Multi User [Enter]             |             `-^--'`<     '
 |  2. Boot [S]ingle User                  |            (_.)  _  )   /
 |  3. [Esc]ape to loader prompt           |             `.___/`    /
 |  4. Reboot                              |               `-----' /
 |                                         |  <----.     __ / __   \
 |  Options:                               |  <----|====O)))==) \) /====|
 |  5. [K]ernel: kernel (1 of 2)           |  <----'    `--' `.__,' \
 |  6. Configure Boot [O]ptions...         |               |        |
 |                                         |                \       /       /\
 |                                         |           ______( (_  / \______/
 |                                         |         ,'  ,-----'   |
 +=========================================+         `--{__________) 
                                          
/boot/kernel/kernel text=0xfe2de8 data=0x129430+0x207f90 syms=[0x8+0x146f58+0x8+0x161380]
/boot/kernel/geom_mirror.ko size 0x23fb0 at 0x19bd000
/boot/kernel/ipfw.ko size 0x21b28 at 0x19e1000
Booting...
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.3-RELEASE-p4 #0: Sat May 28 12:23:44 UTC 2016
    root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
CPU: Intel(R) Xeon(R) CPU           X3210  @ 2.13GHz (2128.04-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x6fb  Family=0x6  Model=0xf  Stepping=11
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0xe3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM>
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
  VT-x: (disabled in BIOS) HLT,PAUSE
  TSC: P-state invariant, performance statistics
real memory  = 4294967296 (4096 MB)
avail memory = 4115316736 (3924 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <PTLTD          APIC  >
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s)
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  2
 cpu3 (AP): APIC ID:  3
random: <Software, Yarrow> initialized
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <PTLTD   RSDT> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43,0x50-0x53 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> irq 16 at device 3.0 on pci0
pci6: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> irq 17 at device 28.0 on pci0
pcib3: failed to allocate initial I/O port window: 0-0xfff
pcib3: failed to allocate initial memory window: 0-0xfffff
pcib3: failed to allocate initial prefetch window: 0-0xfffff
pci9: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> irq 17 at device 28.4 on pci0
pci13: <ACPI PCI bus> on pcib4
em0: <Intel(R) PRO/1000 Network Connection 7.6.1-k> port 0x2000-0x201f mem 0xe8000000-0xe801ffff irq 16 at device 0.0 on pci13
em0: Using an MSI interrupt
em0: Ethernet address: 00:30:48:98:a6:de
pcib5: <ACPI PCI-PCI bridge> irq 16 at device 28.5 on pci0
pci14: <ACPI PCI bus> on pcib5
em1: <Intel(R) PRO/1000 Network Connection 7.6.1-k> port 0x3000-0x301f mem 0xe8100000-0xe811ffff irq 17 at device 0.0 on pci14
em1: Using an MSI interrupt
em1: Ethernet address: 00:30:48:98:a6:df
uhci0: <Intel 82801G (ICH7) USB controller USB-A> port 0x1800-0x181f irq 23 at device 29.0 on pci0
usbus0 on uhci0
uhci1: <Intel 82801G (ICH7) USB controller USB-B> port 0x1820-0x183f irq 19 at device 29.1 on pci0
usbus1 on uhci1
uhci2: <Intel 82801G (ICH7) USB controller USB-C> port 0x1840-0x185f irq 18 at device 29.2 on pci0
usbus2 on uhci2
uhci3: <Intel 82801G (ICH7) USB controller USB-D> port 0x1860-0x187f irq 16 at device 29.3 on pci0
usbus3 on uhci3
ehci0: <Intel 82801GB/R (ICH7) USB 2.0 controller> mem 0xe8500000-0xe85003ff irq 23 at device 29.7 on pci0
usbus4: EHCI version 1.0
usbus4 on ehci0
pcib6: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci15: <ACPI PCI bus> on pcib6
vgapci0: <VGA-compatible display> port 0x4000-0x40ff mem 0xe0000000-0xe7ffffff,0xe8200000-0xe820ffff irq 16 at device 0.0 on pci15
vgapci0: Boot video device
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH7 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x18a0-0x18af at device 31.1 on pci0
ata0: <ATA channel> at channel 0 on atapci0
atapci1: <Intel ICH7 SATA300 controller> port 0x18e8-0x18ef,0x18dc-0x18df,0x18e0-0x18e7,0x18d8-0x18db,0x18b0-0x18bf mem 0xe8500400-0xe85007ff irq 19 at device 31.2 on pci0
ata2: <ATA channel> at channel 0 on atapci1
ata3: <ATA channel> at channel 1 on atapci1
acpi_button0: <Power Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: console (9600,n,8,1)
uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xcafff,0xcb000-0xcbfff,0xcc000-0xccfff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ppc0: cannot reserve I/O port range
est0: <Enhanced SpeedStep Frequency Control> on cpu0
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 822082206000822
device_attach: est0 attach returned 6
est1: <Enhanced SpeedStep Frequency Control> on cpu1
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 822082206000822
device_attach: est1 attach returned 6
est2: <Enhanced SpeedStep Frequency Control> on cpu2
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 822082206000822
device_attach: est2 attach returned 6
est3: <Enhanced SpeedStep Frequency Control> on cpu3
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 822082206000822
device_attach: est3 attach returned 6
random: unblocking device.
usbus0: 12Mbps Full Speed USB v1.0
Timecounters tick every 1.000 msec
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, default to deny, logging disabled
usbus1: 12Mbps Full Speed USB v1.0
ugen0.1: <Intel> at usbus0
uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <Intel> at usbus1
uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
usbus2: 12Mbps Full Speed USB v1.0
usbus3: 12Mbps Full Speed USB v1.0
ugen2.1: <Intel> at usbus2
uhub2: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
ugen3.1: <Intel> at usbus3
uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
usbus4: 480Mbps High Speed USB v2.0
ugen4.1: <Intel> at usbus4
uhub4: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus4
uhub0: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
uhub3: 2 ports with 2 removable, self powered
uhub2: 2 ports with 2 removable, self powered
ada0 at ata2 bus 0 scbus1 target 0 lun 0
ada0: <ST3250820NS 3.AEK> ATA-7 SATA 1.x device
ada0: Serial Number 9QE7MXMC
ada0: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes)
ada0: 238475MB (488397168 512 byte sectors)
ada0: Previously was known as ad4
ada1 at ata2 bus 0 scbus1 target 1 lun 0
ada1: <ST3250820NS 3.AEK> ATA-7 SATA 1.x device
ada1: Serial Number 9QE7MY84
ada1: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes)
ada1: 238475MB (488397168 512 byte sectors)
ada1: Previously was known as ad5
ada2 at ata3 bus 0 scbus2 target 0 lun 0
ada2: <WDC WD2000F9YZ-09N20L1 01.01A02> ATA8-ACS SATA 3.x device
ada2: Serial Number WD-WMC5C0D5MXU1
ada2: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes)
ada2: 1907729MB (3907029168 512 byte sectors)
GEOM_MIRROR: Cancelling unmapped because of ada1.
GEOM_MIRROR: Cancelling unmapped because of ada0.
GEOM_MIRROR: Device mirror/gm0 launched (2/2).
ada2: Previously was known as ad6
ada3 at ata3 bus 0 scbus2 target 1 lun 0
ada3: <WDC WD2000F9YZ-09N20L1 01.01A02> ATA8-ACS SATA 3.x device
ada3: Serial Number WD-WMC5C0E2C2L0
ada3: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes)
ada3: 1907729MB (3907029168 512 byte sectors)
ada3: Previously was known as ad7
cd0 at ata0 bus 0 scbus0 target 0 lun 0
cd0: <TEAC DV-28E-V 1.AB> Removable CD-ROM SCSI device
SMP: AP CPU #3 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #1 Launched!
cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed
Timecounter "TSC" frequency 2128043800 Hz quality 1000
GEOM_MIRROR: Cancelling unmapped because of ada3.
GEOM_MIRROR: Cancelling unmapped because of ada2.
GEOM_MIRROR: Device mirror/gm1 launched (2/2).
Root mount waiting for: usbus4
uhub4: 8 ports with 8 removable, self powered
Trying to mount root from ufs:/dev/mirror/gm1s1a [rw]...
Setting hostuuid: 64837263-8462-7493-1212-00304886B75A.
Setting hostid: 0xffcc2c55.
Entropy harvesting: interrupts ethernet point_to_point swi.
Starting file system checks:
/dev/mirror/gm1s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/mirror/gm1s1a: clean, 3922315 free (403 frags, 490239 blocks, 0.0% fragmentation)
/dev/mirror/gm1s1d: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/mirror/gm1s1d: clean, 4052351 free (151 frags, 506525 blocks, 0.0% fragmentation)
/dev/mirror/gm1s1e: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/mirror/gm1s1e: clean, 4058021 free (61 frags, 507245 blocks, 0.0% fragmentation)
/dev/mirror/gm1s1f: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/mirror/gm1s1f: clean, 4046303 free (39 frags, 505783 blocks, 0.0% fragmentation)
/dev/mirror/gm1s1g: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/mirror/gm1s1g: clean, 396690349 free (2357 frags, 49585999 blocks, 0.0% fragmentation)
Mounting local file systems:.
Writing entropy file:.
Setting hostname: rip.psg.com.
Starting Network: lo0 em0 em1.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128 
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 
        inet 127.0.0.1 netmask 0xff000000 
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=4219b<RXCSUM,TXCSUM,VLAem0: link state changed to UP
N_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
        ether 00:30:48:98:a6:de
        inet 147.28.0.39 netmask 0xffffff00 broadcast 147.28.0.255 
        inet6 fe80::230:48ff:fe98:a6de%em0 prefixlen 64 scopeid 0x1 
        inet6 2001:418:1::39 prefixlen 64 
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: Ethernet autoselect
        status: no carrier
em1: flags=8c02<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
        ether 00:30:48:98:a6:df
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: Ethernet autoselect
        status: no carrier
Starting devd.
Starting Network: em1.
em1: flags=8c02<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
        ether 00:30:48:98:a6:df
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: Ethernet autoselect
        status: no carrier
add net default: gateway 147.28.0.1
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
add net default: gateway 2001:418:1::1
Firewall rules loaded.
Firewall logging enabled.
Creating and/or trimming log files.
Starting syslogd.
Jul  3 01:49:47 rip syslogd: kernel boot file is /boot/kernel/kernel
Jul  3 01:49:47 rip kernel: em0: link state changed to UP
Starting named.
        Waiting for nameserver to resolve rip.psg.com
ELF ldconfig path: /lib /usr/lib /usr/local/lib /usr/lib/compat /usr/local/lib/perl5/5.20/mach/CORE /usr/local/lib/pth
32-bit compatibility ldconfig path: /usr/lib32
No core dumps found.
Additional ABI support: linuxJul  3 01:50:18 rip kernel: em0: promiscuous mode enabled
/etc/rc: INFO: linux kernel module loaded.
/etc/rc: INFO: linux64 kernel module loaded.
.
Clearing /tmp.
Updating motd:.
Mounting late file systems:.
Starting ntpd.
Starting smartd.
Jul  3 01:50:19 rip ntpd[700]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): expired less than 33 days ago
Starting enforcer...
OpenDNSSEC ods-enforcerd started (version 1.4.10), pid 730
Jul  3 01:50:22 rip ods-enforcerd: group set to: opendnssec (3007)
Jul  3 01:50:22 rip ods-enforcerd: user set to: opendnssec (3007)
Starting signer engine...
OpenDNSSEC signer engine version 1.4.10
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone 28.147.in-addr.arpa: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone 230.83.192.in-addr.arpa: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone 206.133.198.in-addr.arpa: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone 150.180.198.in-addr.arpa: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone 151.180.198.in-addr.arpa: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone 152.180.198.in-addr.arpa: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone 153.180.198.in-addr.arpa: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone 68.159.203.in-addr.arpa: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone 69.159.203.in-addr.arpa: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone 70.159.203.in-addr.arpa: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone 71.159.203.in-addr.arpa: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone 1.0.0.0.8.1.4.0.1.0.0.2.ip6.arpa: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone 7.0.8.3.8.1.4.0.1.0.0.2.ip6.arpa: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone 6.0.0.8.8.1.4.0.1.0.0.2.ip6.arpa: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone 0.0.0.0.b.e.d.0.1.0.0.2.ip6.arpa: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone muddy.coffee: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone bogus.com: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone bozanicfamily.com: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone flybynighttravel.com: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone psg.com: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone ymbk.com: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone gn: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone cryptech.is: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone lb: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone lr: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone bozanicfamily.net: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone rg.net: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone rpki.net: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone bozanicfamily.org: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone bknix.co.th: read magic error
Jul  3 01:50:22 rip ods-signerd: [zone] corrupted backup file zone bknix.in.th: read magic error
Jul  3 01:50:22 rip ods-enforcerd: WARNING: New KSK has reached the ready state; please submit the DS for 0.0.0.0.b.e.d.0.1.0.0.2.ip6.arpa and use ods-ksmutil key ds-seen when the DS appears in the DNS.
Engine running.

Starting exim.
/etc/rc: INFO: RSA1 host key exists.
/etc/rc: INFO: RSA host key exists.
/etc/rc: INFO: DSA host key exists.
/etc/rc: INFO: ECDSA host key exists.
/etc/rc: INFO: ED25519 host key exists.
Performing sanity check on sshd configuration.
Starting sshd.
Jul  3 01:50:24 rip sshd[788]: Server listening on :: port 22.
Jul  3 01:50:24 rip sshd[788]: Server listening on 0.0.0.0 port 22.
Performing sanity check on apache24 configuration:
Jul  3 01:50:24 rip sshguard[789]: Monitoring attacks from stdin
Syntax OK
Starting apache24.
Configuring syscons: keymap keyrate.
Starting cron.
Starting bsnmpd.
Jul  3 01:50:25 rip snmpd[849]: '=' expected, got 'M-^C'
Jul  3 01:50:25 rip snmpd[849]:   in file /etc/snmpd.config line 17
Jul  3 01:50:25 rip snmpd[849]: error in config file

Sun Jul  3 01:50:25 UTC 2016
Jul  3 01:50:26 rip kernel: em0: promiscuous mode enabled

FreeBSD/amd64 (rip.psg.com) (ttyu0)

login:

Check Disks

rip.psg.com:/root# df -h
Filesystem            Size    Used   Avail Capacity  Mounted on
/dev/mirror/gm1s1a     15G    532M     14G     4%    /
devfs                 1.0K    1.0K      0B   100%    /dev
/dev/mirror/gm1s1d     15G     24M     14G     0%    /var
/dev/mirror/gm1s1e     15G    1.5M     14G     0%    /var/spool
/dev/mirror/gm1s1f     15G     47M     14G     0%    /root
/dev/mirror/gm1s1g    1.7T    214G    1.3T    13%    /usr
procfs                4.0K    4.0K      0B   100%    /proc
fdescfs               1.0K    1.0K      0B   100%    /dev/fd
/dev/md0              124M     24K    114M     0%    /tmp
Last modified 4 years ago Last modified on Jul 3, 2016, 2:03:10 AM