# zpool statuspool: zrootstate: DEGRADEDstatus: One or more devices could not be opened. Sufficient replicas exist forthe pool to continue functioning in a degraded state.action: Attach the missing device and online it using 'zpool online'.see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-2Qconfig:NAME STATE READ WRITE CKSUMzroot DEGRADED 0 0 0mirror-0 DEGRADED 0 0 0ada0p3 ONLINE 0 0 0ada1p3 UNAVAIL 0 0 0 cannot openerrors: No known data errors`# zpool detach zroot ada1p3# zpool statuspool: zrootstate: ONLINEconfig:NAME STATE READ WRITE CKSUMzroot ONLINE 0 0 0ada0p3 ONLINE 0 0 0errors: No known data errors# gpart create -s GPT ada1ada1 createdroot@:/home/rahox # gpart show=> 40 33554352 ada0 GPT (16G)40 1024 1 freebsd-boot (512K)1064 984 - free - (492K)2048 4194304 2 freebsd-swap (2.0G)4196352 29356032 3 freebsd-zfs (14G)33552384 2008 - free - (1.0M)=> 40 33554352 ada1 GPT (16G)40 33554352 - free - (16G)# gpart bootcode -b /boot/pmbr ada1bootcode written to ada1# gpart add -t freebsd-boot -s 512K ada1ada1p1 added# gpart show=> 40 33554352 ada0 GPT (16G)40 1024 1 freebsd-boot (512K)1064 984 - free - (492K)2048 4194304 2 freebsd-swap (2.0G)4196352 29356032 3 freebsd-zfs (14G)33552384 2008 - free - (1.0M)=> 40 33554352 ada1 GPT (16G)40 1024 1 freebsd-boot (512K)1064 33553328 - free - (16G)root@:/home/rahox # gpart bootcode -p /boot/gptboot -i 1 ada1partcode written to ada1p1root@:/home/rahox # gpart add -t freebsd-swap -s 2G ada1ada1p2 addedroot@:/home/rahox # gpart show=> 40 33554352 ada0 GPT (16G)40 1024 1 freebsd-boot (512K)1064 984 - free - (492K)2048 4194304 2 freebsd-swap (2.0G)4196352 29356032 3 freebsd-zfs (14G)33552384 2008 - free - (1.0M)=> 40 33554352 ada1 GPT (16G)40 1024 1 freebsd-boot (512K)1064 4194304 2 freebsd-swap (2.0G)4195368 29359024 - free - (14G)root@:/home/rahox # gpart add -t freebsd-zfs ada1ada1p3 addedroot@:/home/rahox # newfs -Uj /dev/ada1p3/dev/ada1p3: 14335.5MB (29359024 sectors) block size 32768, fragment size 4096using 23 cylinder groups of 625.22MB, 20007 blks, 80128 inodes.with soft updatessuper-block backups (for fsck_ffs -b #) at:192, 1280640, 2561088, 3841536, 5121984, 6402432, 7682880, 8963328, 10243776,11524224, 12804672, 14085120, 15365568, 16646016, 17926464, 19206912, 20487360,21767808, 23048256, 24328704, 25609152, 26889600, 28170048Using inode 4 in cg 0 for 33554432 byte journalnewfs: soft updates journaling setroot@:/home/rahox # gpart show=> 40 33554352 ada0 GPT (16G)40 1024 1 freebsd-boot (512K)1064 984 - free - (492K)2048 4194304 2 freebsd-swap (2.0G)4196352 29356032 3 freebsd-zfs (14G)33552384 2008 - free - (1.0M)=> 40 33554352 ada1 GPT (16G)40 1024 1 freebsd-boot (512K)1064 4194304 2 freebsd-swap (2.0G)4195368 29359024 3 freebsd-zfs (14G)root@:/home/rahox # zpool attach zroot ada0p3 ada1p3root@:/home/rahox # zpool statuspool: zrootstate: ONLINEscan: resilvered 762M in 00:00:08 with 0 errors on Sat Mar 11 03:31:29 2023config:NAME STATE READ WRITE CKSUMzroot ONLINE 0 0 0mirror-0 ONLINE 0 0 0ada0p3 ONLINE 0 0 0ada1p3 ONLINE 0 0 0errors: No known data errors
Friday, March 10, 2023
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment