Discussion:
Re[2]: Re[2]: Copy bootcode to mirror disk?
(too old to reply)
Vladislav Prodan
2016-06-24 00:38:16 UTC
Permalink
Please show:

gpart show
gmirror status


--- Original message ---
From: "perikillo" <***@gmail.com>
Date: 24 June 2016, 02:53:34
sysctl kern.geom.debugflags=16
kern.geom.debugflags: 0 -> 16
gpart: /dev/ada0p1: Operation not permitted
--- Original message ---
Date: 24 June 2016, 01:58:05
gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0
gpart: /dev/ada0p1: Operation not permitted
Do I need remove first from mirror or some step before this?
No.
sysctl kern.geom.debugflags=16
gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0
Thanks.
--- Original message ---
Date: 23 June 2016, 23:19:27
Hi I have a server with 2 hard disk in mirror setup.
34 976773101 ada1 GPT (466G)
34 6 - free - (3.0K)
40 128 1 freebsd-boot (64K)
168 2097152 2 freebsd-ufs (1.0G)
2097320 16777216 3 freebsd-ufs (8.0G)
18874536 16777216 4 freebsd-ufs (8.0G)
35651752 1048576 5 freebsd-ufs (512M)
36700328 1048576 6 freebsd-swap (512M)
37748904 939024231 - free - (448G)
My mirror has ada0 ada1, ada0 var slice fails, them I decide to
replace
the
whole disk and follow the instructions for that using gpart and
backup my
current good disk layout into my new disk.
gpart backup ada1 | gpart restore -F /dev/ada0
This create my slices, I forget each mirror slice and add each slice
into
the mirror again.
Everything working, but looks like I forget to add the bootcode to
my new
disk because it won't boot.
Now is booting from 2nd disk but need to boot from all hard disk, if
ada1
fails I will have issues.
# gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0
--
Vladislav V. Prodan
System & Network Administrator
support.od.ua
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "
--
Vladislav V. Prodan
System & Network Administrator
support.od.ua
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
--
Vladislav V. Prodan
System & Network Administrator
support.od.ua
perikillo
2016-06-24 00:41:32 UTC
Permalink
gpart show
=> 34 976773101 ada0 GPT (466G)
34 6 - free - (3.0K)
40 128 1 freebsd-boot (64K)
168 2097152 2 freebsd-ufs (1.0G)
2097320 16777216 3 freebsd-ufs (8.0G)
18874536 16777216 4 freebsd-ufs (8.0G)
35651752 1048576 5 freebsd-ufs (512M)
36700328 1048576 6 freebsd-swap (512M)
37748904 939024231 - free - (448G)

=> 34 976773101 ada1 GPT (466G)
34 6 - free - (3.0K)
40 128 1 freebsd-boot (64K)
168 2097152 2 freebsd-ufs (1.0G)
2097320 16777216 3 freebsd-ufs (8.0G)
18874536 16777216 4 freebsd-ufs (8.0G)
35651752 1048576 5 freebsd-ufs (512M)
36700328 1048576 6 freebsd-swap (512M)
37748904 939024231 - free - (448G)

gmirror status
Name Status Components
mirror/boot COMPLETE ada0p1 (ACTIVE)
ada1p1 (ACTIVE)
mirror/root COMPLETE ada0p2 (ACTIVE)
ada1p2 (ACTIVE)
mirror/usr COMPLETE ada0p3 (ACTIVE)
ada1p3 (ACTIVE)
mirror/var COMPLETE ada0p4 (ACTIVE)
ada1p4 (ACTIVE)
mirror/tmp COMPLETE ada0p5 (ACTIVE)
ada1p5 (ACTIVE)
mirror/swap COMPLETE ada0p6 (ACTIVE)
ada1p6 (ACTIVE)
Post by Vladislav Prodan
gpart show
gmirror status
--- Original message ---
Date: 24 June 2016, 02:53:34
sysctl kern.geom.debugflags=16
kern.geom.debugflags: 0 -> 16
gpart: /dev/ada0p1: Operation not permitted
Post by Vladislav Prodan
--- Original message ---
Date: 24 June 2016, 01:58:05
gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0
gpart: /dev/ada0p1: Operation not permitted
Do I need remove first from mirror or some step before this?
No.
sysctl kern.geom.debugflags=16
gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0
Thanks.
On Thu, Jun 23, 2016 at 2:40 PM, Vladislav Prodan <
Post by Vladislav Prodan
--- Original message ---
Date: 23 June 2016, 23:19:27
Hi I have a server with 2 hard disk in mirror setup.
34 976773101 ada1 GPT (466G)
34 6 - free - (3.0K)
40 128 1 freebsd-boot (64K)
168 2097152 2 freebsd-ufs (1.0G)
2097320 16777216 3 freebsd-ufs (8.0G)
18874536 16777216 4 freebsd-ufs (8.0G)
35651752 1048576 5 freebsd-ufs (512M)
36700328 1048576 6 freebsd-swap (512M)
37748904 939024231 - free - (448G)
My mirror has ada0 ada1, ada0 var slice fails, them I decide to
replace
Post by Vladislav Prodan
the
whole disk and follow the instructions for that using gpart and
backup my
Post by Vladislav Prodan
current good disk layout into my new disk.
gpart backup ada1 | gpart restore -F /dev/ada0
This create my slices, I forget each mirror slice and add each
slice
Post by Vladislav Prodan
into
Post by Vladislav Prodan
the mirror again.
Everything working, but looks like I forget to add the bootcode
to
Post by Vladislav Prodan
my new
Post by Vladislav Prodan
disk because it won't boot.
Now is booting from 2nd disk but need to boot from all hard
disk, if
Post by Vladislav Prodan
ada1
Post by Vladislav Prodan
fails I will have issues.
# gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0
--
Vladislav V. Prodan
System & Network Administrator
support.od.ua
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "
--
Vladislav V. Prodan
System & Network Administrator
support.od.ua
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "
--
Vladislav V. Prodan
System & Network Administrator
support.od.ua
Loading...