Answer the question
In order to leave comments, you need to log in
FreeBSD, merge two hard drives
Good evening,
there is a machine, it has only 2 hard drives.
It is necessary to install FreeBSD there and that two hard drives be combined into one, i.e. for example, the /home partition consisted of two hard drives.
On linux, I used lvm for this purpose.
What and how (as I understand it must be done during installation) can be used for this purpose in FreeBSD?
Answer the question
In order to leave comments, you need to log in
Of course, for your purposes, a hardware (or semi-software) stripe (RAID0) would be best suited for you - you don’t have to think about partitioning the disk, etc.
Well, if there is none, I recommend using the following configuration (names for scsi devices and the classic partition table):
/dev/da0s1a + /dev/da1s1a = gmirror for partition / (root) eg
1gb /dev/da0s1b AND /dev/da1s1b = two independent partitions to swap (each size of server RAM)
/dev/da0s1d +/ dev/da1s1d = gstripe /tmp
/dev/da0s1e + /dev/da1s1e = gmirror /var
/dev/da0s1f + /dev/da1s1f = gmirror /usr
/dev/da0s1g + /dev/da1s1g = gstripe /home
In order to install a system with such a partition table, I recommend using mfsBSD for the initial partitioning of disks (and even installing the system)
The effect of striped partitions with mirror and stripe on the overall performance of the disk subsystem has not been studied =)
PS: For retrogrades, there is also gvinum - it's almost LVM . However, for me, gmirror and gstripe are much easier to use.
The simplest is to use mount_unionfs.
For example, if the first disk has main partitions, including /home, and the second one has one that needs to be added to the main /home, then we mount the partition of the second disk as /home2 and then do /sbin/mount_unionfs /home2 /home
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question