Ask a Question related to FreeBSD, Design and Development.

  1. #1

    Default FreeBSD 5.3 - Raid

    Hi,

    Sorry if this is dumb question.

    I have a new install of FreeBSD on a single IDE drive. I have backed this up
    so I am not too concerned about drive failure. I have now added 2, 250 Gbyte
    drives (ad3 and ad4) to hold data. I would like to mirror them using sofware
    raid and mount them as /home to hold the users data which is critical.

    I have read the manual and searched the web for a simple way to do the above.
    The manual seems to cover complex solutions and may be somewhat behind the
    times.

    I guess what I am looking for is a howto couched in such a way that even a
    windows user can understand :-).

    Any suggestions please.

    Rob
    Robert Slade Guest

  2. Similar Questions and Discussions

    1. Compile FreeBSD RELENG_5 on FreeBSD 4-STABLE
      Hi. I have a FreeBSD 4-STABLE machine. I want to do my custom RENELG_5 FreeBSD release. I'm get all RELENG_5 CVS source (with cvs checkout...
    2. Adaptec 7902- Raid -Support Under FreeBSD 5.3
      Hi all, I have a Supermicro MB wiht onboard Adaptec SCSI 7902 chipset. Now the big question under...
    3. [linux-raid] Problem converting raid-5 array from 2.2.17 into 2.4.22
      Hi, I used to have the following array: # mdtab entry for /dev/md0 /dev/md0 raid5,128k,0,93fa4522 /dev/hda3 /dev/hdb1 /dev/hdc1...
    4. To RAID or not to RAID?
      Running Photoshop 7 on WinXP Home (SP1). Have two identical hard drives: Maxtor ATA133 250GB 7200RPM (8MB Buffer). Which config will give me the...
    5. RAID?
      Hi My computer overheated a few weeks ago and I ended up with some fs corruption. My mom didn't trust the HD, so she bought me a new one-- so now...
  3. #2

    Default Re: FreeBSD 5.3 - Raid

    > I have read the manual and searched the web for a simple way to do the above.
    > The manual seems to cover complex solutions and may be somewhat behind the
    > times.
    Personally I would go for geom_mirror. See gmirror(8) ('man gmirror') for usage
    instructions including examples. Creating a mirror takes only one command.

    --
    / Peter Schuller, InfiDyne Technologies HB

    PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller@infidyne.com>'
    Key retrieval: Send an E-Mail to [email]getpgpkey@scode.org[/email]
    E-Mail: [email]peter.schuller@infidyne.com[/email] Web: [url]http://www.scode.org[/url]

    Peter Schuller Guest

  4. #3

    Default Re: FreeBSD 5.3 - Raid

    On February 27, 2005 08:59 am, Robert Slade wrote:
    > Hi,
    >
    > Sorry if this is dumb question.
    >
    > I have a new install of FreeBSD on a single IDE drive. I have backed this
    > up so I am not too concerned about drive failure. I have now added 2, 250
    > Gbyte drives (ad3 and ad4) to hold data. I would like to mirror them using
    > sofware raid and mount them as /home to hold the users data which is
    > critical.
    >
    > I have read the manual and searched the web for a simple way to do the
    > above. The manual seems to cover complex solutions and may be somewhat
    > behind the times.
    The handbook is pretty up to date (I just looked at it).

    I would suggest you ignore the section that describes 'ccd'. It is easier to
    set up than vinum but I have found the current implementation of ccd to be
    unreliable.

    If you are using FreeBSD 5.x (hopefully 5.3), use gvinum instead of vinum. It
    works the same way (commands and options) as vinum but (from what I
    understand) it has some improvements.
    > I guess what I am looking for is a howto couched in such a way that even a
    > windows user can understand :-).
    I assume you have physically installed your two disks (ad3, ad4).

    If you have not done so yet, use fdisk(8) to create a single slice (what
    Windows calls a partition). This can also be done through sysinstall

    Also, if you have not done so yet, use bsdlabel(8) to create a FreeBSD
    partition (no Windows equivalent). Be sure to set the 'fstype' to 'vinum'.

    At this stage I will assume that you have set up your two disks so that you
    have ad3s1a and ad4s1a as the slices you wish to use for vinum. I think you
    can do this with sysinstall as well.

    NOTE: you do not need to use newfs to create the filesystem, that would happen
    after you have setup your RAID volumes.

    Create a file, we will call it gvinum.conf and put the following into it:

    # Define the FreeBSD Partitions to be used for Vinum
    drive a device /dev/ad3s1a
    drive b device /dev/ad4s1a
    #
    # Define each volume/plex/subdisk
    volume home # home volume
    plex org concat # concatinated plex (1st half of mirror)
    sd length 8192m drive a # 1st subdisk of concatinated plex
    plex org concat # concatinated plex (2nd half of mirror)
    sd length 8192m drive b # 1st subdisk of 2nd concatinated plex

    Now, use the vinum(8) 'create' command to set things up using the
    configuration file.

    You should now have a /dev/gvinum/home device. You can newfs it, mount it, and
    add it to your /etc/fstab.

    newfs /dev/gvinum/home

    mount /dev/gvinum/home /home
    > Any suggestions please.
    Do read and try to understand chapter 17 of the FreeBSD handbook if you want
    to get into software RAID.

    Rob, you really need to understand how software RAID works if you want to take
    advantage of it. When you have a disk failure, you need to know what to do to
    recover your data. In order to do that you really need to understand how the
    software RAID works.

    You may want to consider setting up a seconds FreeBSD partition on each of
    your two new disks so that you can fiddle with RAID and figure out how to
    recover from a disk failure.

    --
    Ean Kingston

    E-Mail: ean AT hedron DOT org
    URL: [url]http://www.hedron.org/[/url]
    Ean Kingston Guest

  5. #4

    Default Re: FreeBSD 5.3 - Raid

    On Sun, Feb 27, 2005 at 01:59:35PM +0000, Robert Slade wrote:
    > I have a new install of FreeBSD on a single IDE drive. I have backed this up
    > so I am not too concerned about drive failure. I have now added 2, 250 Gbyte
    > drives (ad3 and ad4) to hold data. I would like to mirror them using sofware
    > raid and mount them as /home to hold the users data which is critical.
    >
    > I have read the manual and searched the web for a simple way to do the above.
    > The manual seems to cover complex solutions and may be somewhat behind the
    > times.
    >
    > I guess what I am looking for is a howto couched in such a way that even a
    > windows user can understand :-).
    >
    > Any suggestions please.
    Someone else already recommended GEOM which I also recommend.
    I just setup gmirror for the fist time and I am very impressed with it.
    I did drive failure simulations for both ad0 and ad2 and was able to
    reconstruct the mirror each time. This howto is very good:

    [url]http://people.freebsd.org/~rse/mirror/[/url]

    Andy
    Andy Firman Guest

  6. #5

    Default Re: FreeBSD 5.3 - Raid

    On Sun, 2005-02-27 at 15:26, Ean Kingston wrote:
    > On February 27, 2005 08:59 am, Robert Slade wrote:
    > > Hi,
    > >
    > > Sorry if this is dumb question.
    > >
    > > I have a new install of FreeBSD on a single IDE drive. I have backed this
    > > up so I am not too concerned about drive failure. I have now added 2, 250
    > > Gbyte drives (ad3 and ad4) to hold data. I would like to mirror them using
    > > sofware raid and mount them as /home to hold the users data which is
    > > critical.
    > >
    > > I have read the manual and searched the web for a simple way to do the
    > > above. The manual seems to cover complex solutions and may be somewhat
    > > behind the times.
    >
    > The handbook is pretty up to date (I just looked at it).
    What confused me is that it did not seem to cover GEOM which came up
    during my searches.
    >
    > I would suggest you ignore the section that describes 'ccd'. It is easier to
    > set up than vinum but I have found the current implementation of ccd to be
    > unreliable.
    >
    > If you are using FreeBSD 5.x (hopefully 5.3), use gvinum instead of vinum. It
    > works the same way (commands and options) as vinum but (from what I
    > understand) it has some improvements.
    I am using 5.3.
    >
    > > I guess what I am looking for is a howto couched in such a way that even a
    > > windows user can understand :-).
    >
    > I assume you have physically installed your two disks (ad3, ad4).
    >
    > If you have not done so yet, use fdisk(8) to create a single slice (what
    > Windows calls a partition). This can also be done through sysinstall
    >
    > Also, if you have not done so yet, use bsdlabel(8) to create a FreeBSD
    > partition (no Windows equivalent). Be sure to set the 'fstype' to 'vinum'.
    >
    > At this stage I will assume that you have set up your two disks so that you
    > have ad3s1a and ad4s1a as the slices you wish to use for vinum. I think you
    > can do this with sysinstall as well.
    >
    > NOTE: you do not need to use newfs to create the filesystem, that would happen
    > after you have setup your RAID volumes.
    >
    > Create a file, we will call it gvinum.conf and put the following into it:
    >
    > # Define the FreeBSD Partitions to be used for Vinum
    > drive a device /dev/ad3s1a
    > drive b device /dev/ad4s1a
    > #
    > # Define each volume/plex/subdisk
    > volume home # home volume
    > plex org concat # concatinated plex (1st half of mirror)
    > sd length 8192m drive a # 1st subdisk of concatinated plex
    > plex org concat # concatinated plex (2nd half of mirror)
    > sd length 8192m drive b # 1st subdisk of 2nd concatinated plex
    >
    > Now, use the vinum(8) 'create' command to set things up using the
    > configuration file.
    >
    > You should now have a /dev/gvinum/home device. You can newfs it, mount it, and
    > add it to your /etc/fstab.
    >
    > newfs /dev/gvinum/home
    >
    > mount /dev/gvinum/home /home
    >
    > > Any suggestions please.
    >
    > Do read and try to understand chapter 17 of the FreeBSD handbook if you want
    > to get into software RAID.
    >
    > Rob, you really need to understand how software RAID works if you want to take
    > advantage of it. When you have a disk failure, you need to know what to do to
    > recover your data. In order to do that you really need to understand how the
    > software RAID works.
    >
    > You may want to consider setting up a seconds FreeBSD partition on each of
    > your two new disks so that you can fiddle with RAID and figure out how to
    > recover from a disk failure.
    Ean,

    Many many thanks for your explanation. I do take your points regarding
    understanding how the raid works before providing it for users. I have a
    little time before the box has to go live and I will use it check the
    system.

    Rob

    Robert Slade Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139