Hi Guys!
First up, sorry for my english
I was trying to update from 10.3 to 11.1, and right after the first reboot, the system doesnt boot from the mirror. (Maybe the bootloader changes and the geom-mirror.ko doesnt loaded.)
I didn't think throught what i'm doing, just was happy to boot from ada1.
That was about a week ago, but i want prevent data loss.
So, the question is: Can i rebuild the mirror without reboot? If yes, how?
Thank you !
First up, sorry for my english

I was trying to update from 10.3 to 11.1, and right after the first reboot, the system doesnt boot from the mirror. (Maybe the bootloader changes and the geom-mirror.ko doesnt loaded.)
I didn't think throught what i'm doing, just was happy to boot from ada1.
That was about a week ago, but i want prevent data loss.
Code:
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <KINGSTON SV300S37A60G 505ABBF0> ATA8-ACS SATA 3.x device
ada0: Serial Number 50026B723203EB7E
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 57241MB (117231408 512 byte sectors)
ada1 at ahcich1 bus 0 scbus1 target 0 lun 0
ada1: <KINGSTON SV300S37A60G 505ABBF0> ATA8-ACS SATA 3.x device
ada1: Serial Number 50026B723203EFE9
ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 57241MB (117231408 512 byte sectors)
ada2 at ahcich2 bus 0 scbus2 target 0 lun 0
ada2: <TOSHIBA DT01ACA100 MS2OA750> ATA8-ACS SATA 3.x device
ada2: Serial Number Z628VSENS
ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada2: Command Queueing enabled
ada2: 953869MB (1953525168 512 byte sectors)
ada3 at ahcich3 bus 0 scbus3 target 0 lun 0
ada3: <WDC WD20PURX-64P6ZY0 80.00A80> ACS-2 ATA SATA 3.x device
ada3: Serial Number WD-WCC4M1KVEHXS
ada3: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada3: Command Queueing enabled
ada3: 1907729MB (3907029168 512 byte sectors)
ada3: quirks=0x1<4K>
ada4 at ahcich4 bus 0 scbus4 target 0 lun 0
ada4: <WDC WD1001FALS-00J7B1 05.00K05> ATA8-ACS SATA 2.x device
ada4: Serial Number WD-WMATV2099508
ada4: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada4: Command Queueing enabled
ada4: 953869MB (1953525168 512 byte sectors)
Trying to mount root from ufs:/dev/mirror/root [rw]...
GEOM: ada1: the secondary GPT table is corrupt or invalid.
GEOM: ada1: using the primary only -- recovery suggested.
uhub0: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
uhub3: 2 ports with 2 removable, self powered
uhub4: 2 ports with 2 removable, self powered
GEOM: diskid/DISK-50026B723203EFE9: the secondary GPT table is corrupt or invalid.
GEOM: diskid/DISK-50026B723203EFE9: using the primary only -- recovery suggested.
Root mount waiting for: usbus4
Root mount waiting for: usbus4
Root mount waiting for: usbus4
uhub2: 8 ports with 8 removable, self powered
Root mount waiting for: usbus4
mountroot: waiting for device /dev/mirror/root...
ugen0.2: <Motorola USB Keyboard Mouse> at usbus0
ukbd0 on uhub4
ukbd0: <Keyboard> on usbus0
kbd2 at ukbd0
Mounting from ufs:/dev/mirror/root failed with error 19.
Loader variables:
vfs.root.mountfrom=ufs:/dev/mirror/root
vfs.root.mountfrom.options=rw
Manual root filesystem specification:
<fstype>:<device> [options]
Mount <device> using filesystem <fstype>
and with the specified (optional) option list.
eg. ufs:/dev/da0s1a
zfs:tank
cd9660:/dev/cd0 ro
(which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)
? List valid disk boot devices
. Yield 1 second (for background tasks)
<empty line> Abort manual input
mountroot> Trying to mount root from ufs:/dev/ada0p3 []...
g_vfs_done():ada0p1[READ(offset=262144, length=8192)]error = 5
Mounting from ufs:/dev/ada0p3 failed with error 5.
mountroot> random: unblocking device.
Invalid file system specification.
mountroot> Trying to mount root from ufs:/dev/ada1p3 []...
GEOM: diskid/DISK-50026B723203EFE9: the secondary GPT table is corrupt or invalid.
GEOM: diskid/DISK-50026B723203EFE9: using the primary only -- recovery suggested.
ums0 on uhub4
ums0: <Mouse> on usbus0
ums0: 5 buttons and [XYZ] coordinates ID=1
ums0: 5 buttons and [Z] coordinates ID=4
em0: link state changed to UP
ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is present;
to enable, add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf.
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
GEOM_MIRROR: Cannot open consumer ada1 (error=1).
GEOM_MIRROR: Cannot add disk ada1 to gm0 (error=1).
GEOM_MIRROR: Device gm0 destroyed.
GEOM_MIRROR: Cannot open consumer ada1p3 (error=1).
GEOM_MIRROR: Cannot add disk ada1p3 to root (error=1).
GEOM_MIRROR: Device root destroyed.
GEOM_MIRROR: Device mirror/swap launched (2/2).
GEOM_MIRROR: Device mirror/boot launched (2/2).
GEOM_MIRROR: Force device root start due to timeout.
GEOM_MIRROR: Device mirror/root launched (1/2).
GEOM_NOP: Device gzero.nop created.
[CODE][root@xxx /var/log]# camcontrol devlist
<KINGSTON SV300S37A60G 505ABBF0> at scbus0 target 0 lun 0 (ada0,pass0)
<KINGSTON SV300S37A60G 505ABBF0> at scbus1 target 0 lun 0 (ada1,pass1)
<TOSHIBA DT01ACA100 MS2OA750> at scbus2 target 0 lun 0 (ada2,pass2)
<WDC WD20PURX-64P6ZY0 80.00A80> at scbus3 target 0 lun 0 (ada3,pass3)
<WDC WD1001FALS-00J7B1 05.00K05> at scbus4 target 0 lun 0 (ada4,pass4)
Code:
[root@xxx /var/log]# gpart show
=> 34 117231341 diskid/DISK-50026B723203EB7E GPT (56G)
34 128 1 freebsd-boot (64K)
162 2097152 2 freebsd-swap (1.0G)
2097314 115134061 3 freebsd-ufs (55G)
=> 34 117231341 ada1 GPT (56G) [CORRUPT]
34 128 1 freebsd-boot (64K)
162 2097152 2 freebsd-swap (1.0G)
2097314 115134061 3 freebsd-ufs (55G)
=> 34 1953525101 ada2 GPT (932G)
34 2014 - free - (1.0M)
2048 1953521664 1 freebsd-ufs (932G)
1953523712 1423 - free - (712K)
=> 34 3907029101 ada3 GPT (1.8T)
34 6 - free - (3.0K)
40 3907029088 1 freebsd-ufs (1.8T)
3907029128 7 - free - (3.5K)
=> 63 1953525105 ada4 MBR (932G)
63 1258290369 1 freebsd [active] (600G)
1258290432 419429808 2 freebsd [active] (200G)
1677720240 275804928 3 freebsd [active] (132G)
Code:
[root@xxx /home/xxx]# gpart show ada0
gpart: No such geom: ada0.
So, the question is: Can i rebuild the mirror without reboot? If yes, how?
Thank you !