I have been reading and testing how to make my FreeBSD 10 x64 running on RAID-1 during installation. Exist a lot of info, but most of them use the same layout:
This works, I had try and is working, my way to set up partitions is using the old layout for me:
I set up the RAID-1 during the installation following the manuals, like I say, the manuals just use root, my brain told to do this. Once I set up the partitions, create my other partitions I mention:
Latter, create the raid:
Some other commands, but exist one important that say that we need to create FS on our root partition and them mount them partition, them I say if we create this one, we need to create for each of our other partitions:
Here is my doubt, do I'm on the right track? What I did was:
If I'm right, where I mount my other partitions?
Later the manual say that we need to set up fstab for our disk layout, done, exit and let the installation continue, once finish, set up.
/boot/loader.conf
To load the GEOM_GMIRROR_LOAD module at boot, reboot and done.
Did I did this right or is wrong my steps :q
Thanks.
Code:
/boot :q
swap
/root
This works, I had try and is working, my way to set up partitions is using the old layout for me:
Code:
/boot
/root
/usr
/var
/tmp
/home if I need it.
I set up the RAID-1 during the installation following the manuals, like I say, the manuals just use root, my brain told to do this. Once I set up the partitions, create my other partitions I mention:
Code:
gpart create -s gpt ada0
gpart create -s gpt ada1
gpart add -s 64k -t freebsd-boot -l boot0 ada0
gpart add -s 64k -t freebsd-boot -l boot1 ada1
gpart add -s 512M -t freebsd-swap -l swap0 ada0
gpart add -s 512M -t freebsd-swap -l swap1 ada1
gpart add -s 1G -t freebsd-ufs -l root0 ada0
gpart add -s 1G -t freebsd-ufs -l root1 ada1
gpart add -s 6G -t freebsd-ufs -l usr0 0ada0
gpart add -s 6G -t freebsd-ufs -l usr1 ada1
gpart add -s 6G -t freebsd-ufs -l var0 ada0
gpart add -s 6G -t freebsd-ufs -l var1 ada1
gpart add -s 512M -t freebsd-ufs -l tmp0 ada0
gpart add -s 512M -t freebsd-ufs -l tmp1 ada1
gpart add -s 512M -t freebsd-ufs -l home0 ada0
gpart add -s 512M -t freebsd-ufs -l home1 ada1
Latter, create the raid:
Code:
gmirror label boot /dev/gpt/boot0 /dev/gpt/boot1
gmirror label swap /dev/gpt/swap0 /dev/gpt/swap1
gmirror label root /dev/gpt/root0 /dev/gpt/root1
gmirror label root /dev/gpt/usr0 /dev/gpt/usr1
gmirror label root /dev/gpt/var0 /dev/gpt/var1
gmirror label root /dev/gpt/tmp0 /dev/gpt/tmp1
gmirror label root /dev/gpt/home0 /dev/gpt/home1
Some other commands, but exist one important that say that we need to create FS on our root partition and them mount them partition, them I say if we create this one, we need to create for each of our other partitions:
Code:
newfs -U -L root /dev/mirror/root
mount /dev/mirror/root /mnt
Here is my doubt, do I'm on the right track? What I did was:
Code:
newfs -U -L root /dev/mirror/root
mount /dev/mirror/root /mnt
newfs -U -L usr /dev/mirror/usr
newfs -U -L var /dev/mirror/var
newfs -U -L tmp /dev/mirror/tmp
newfs -U -L home /dev/mirror/home
If I'm right, where I mount my other partitions?
Later the manual say that we need to set up fstab for our disk layout, done, exit and let the installation continue, once finish, set up.
/boot/loader.conf
To load the GEOM_GMIRROR_LOAD module at boot, reboot and done.
Did I did this right or is wrong my steps :q
Thanks.