Solved how to "unmirror" a pool/disk?

I reformulate my question from here:

how to correct detach a disk in mirror mode?

the case is the same, I have 2 mirrored disk
I want to detach the second and tell the other one that now is "alone"
and from booting from 1 disk like before
but if I do it the principal disk dont boot

zfs.jpg



someone guys? is a easy answer four you
just in case I wrote the boot loader code to the pincipal disk
like chrbr suggested to me(thanks) , but is the same case
I know that is one step to tell the disk "your are no mirrror anymore" but how?
thanks
 
Impossible to answer unless you're a bit more specific about the mirror. How was it set up, what filesystem was used, etc..
 
Impossible to answer unless you're a bit more specific about the mirror. How was it set up, what filesystem was used, etc..
FreeBSD 13-BETA3
ZFS
two SSD disk of the same size diferent brand
pool name zroot

ada0 is the main disk and ada1 is the second

Code:
zpool attach zroot /dev/ada0 /dev/ada1
wait to resilver
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1

if a detach the sata cable from my primary disk I can boot from the second
but if I do it backbards not
 
Well, to remove a mirror you'd normally use zpool(8). It's even part of the examples, check number 16:

Code:
       The command to remove the mirrored log mirror-2 is:

         # zpool remove tank mirror-2

       The command to remove the mirrored data mirror-1 is:

         # zpool remove tank mirror-1
The booting process though is indeed probably caused by missing or incorrect bootcode. Normally you should be able to boot from both disks.
 
Hi. Write the bootcode for EFI to your primary disk
Code:
 # gpart bootcode -p /boot/boot1.efifat -i 1 ada0
and make sure you can boot from this disk.
Then detach your 2nd disk from the pool
Code:
# zpool detach zroot /dev/ada1
This should be sufficient, no need to detach the SATA cable
 
Well, to remove a mirror you'd normally use zpool(8). It's even part of the examples, check number 16:

Code:
       The command to remove the mirrored log mirror-2 is:

         # zpool remove tank mirror-2

       The command to remove the mirrored data mirror-1 is:

         # zpool remove tank mirror-1
The booting process though is indeed probably caused by missing or incorrect bootcode. Normally you should be able to boot from both disks.

Hi , when I run the command returns with the error
Code:
cannot remove mirror-0: out of space
 
Hi. Write the bootcode for EFI to your primary disk
Code:
 # gpart bootcode -p /boot/boot1.efifat -i 1 ada0
and make sure you can boot from this disk.
Then detach your 2nd disk from the pool
Code:
# zpool detach zroot /dev/ada1
This should be sufficient, no need to detach the SATA cable

the twoo first times don work , the last one yes
I dettach the disk from the pool and copy the boot code to the disk
only a little diferent from you
Code:
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0
Thanks ShelLuser and twllnbrck , mark as solved
 
Back
Top