How to destroy or remove raid 1 (mirror) in FreeBSD 8.3?

Consider a situation where you need to uninstall the program has raid 1 with FreeBSD.
Option number 1 – the system is installed on a software raid 1, consisting of two disks. That is, the system only uses gmirror these two disks.
Deleting a raid in this case without any problems and issues is achieved by editing the file / etc / fstab and /boot/loader.conf.
In the / etc / fstab file must be brought to the form, which was to install raid, that is, to mean in my case:
/ Dev / da0s1a none swap sw 0 0
/ Dev / da0s1b / ufs rw 1 January
Ie remove all references to gmirror (mirror and gm0)
The next step is to remove the line to /boot/loader.conf geom_mirror_load = “YES”
After rebooting you boot without the module geom_mirror, the disc da0
Option # 2 – A better option.
Have a system for raid 1 of two disks da0 and da1. Content / etc / fstab:
/ Dev / mirror / gm0s1b none swap sw 0 0
/ Dev / mirror / gm0s1a / ufs rw 1 January
/ Dev / mirror / gm0s1d / usr ufs rw 0 0
/ Dev / mirror / gm0s1f / home ufs rw 2 February
/ Dev / mirror / gm0s1e / var ufs rw 2 February
If you want to use the disk da1 to as a worker, then remove it from the disc Reid da1:
# Gmirror remove gm0 / dev / da1
Edit / etc / fstab and give to the form:
/ Dev / da1s1b none swap sw 0 0
/ Dev / da1s1a / ufs rw 1 January
/ Dev / da1s1d / usr ufs rw 0 0
/ Dev / da1s1f / home ufs rw 2 February
/ Dev / da1s1e / var ufs rw 2 2
Remove from /boot/loader.conf line geom_mirror_load = “YES”
Remove from Reid disk da0:
# Gmirror remove gm0 / dev / da1
Restarting the system is now working on the disk da1 without raid 1.