htadeleeuw
October 10th, 2009, 10:05 AM
Hi,
I want to set up my PC (VIA PC3500G board, with 2 Gb RAM, 2 x 1Tb WD10EADS, and a Pure Power BQT L7 300W PSU) as a reliable and energy efficient home server (running dns, samba, scalix, mysql, apache, moinmoin wiki, and what not).
Dedicated Ubuntu server, no dual booting, no other operating systems.
I wasn't sure how to set up my disk and there is too much (inconsistent) information out there to determine what's best.
I have done this:
- In the BIOS I've switched the SATA mode from RAID to IDE, so I will not use the on-board RAID features.
- During the Ubuntu install, in the disk partitioning section I did:
- create a single 1 Tb primary partition on each disk and set it to "be used in a RAID"
- created 1 mirrored partition to be used by LVM that uses the 2 primary partitions
- created 1 volume group, vg01, that contains 1 mirrored partition
- in the volume group I have created these logical volumes:
- lvol1, 2Gb ext3, for /
- lvol2, 2Gb swap for swap
- lvol3, 2Gb ext3 for /boot
- lvol4, 2Gb ext3 for /opt
- lvol5, 2Gb ext3 for /var
- lvol6, 2Gb ext3 for /var/spool
- lvol7, 2Gb ext3 for /var/tmp
- lvol8, 2Gb ext3 for /tmp
- lvol9, 2Gb ext3 for /home (which will probably be extended, and extended, ...)
It seems to work fine (except, that after initial boot the system appeared to be sync-ing the mirror for a very long time, but I guess that must have been to synchonize the two 1 Tb partitions).
Did I do wrong? Does my set up impose certain risks? I'm not sure, and any feedback would be appreciated.
Cheers,
Henk
I want to set up my PC (VIA PC3500G board, with 2 Gb RAM, 2 x 1Tb WD10EADS, and a Pure Power BQT L7 300W PSU) as a reliable and energy efficient home server (running dns, samba, scalix, mysql, apache, moinmoin wiki, and what not).
Dedicated Ubuntu server, no dual booting, no other operating systems.
I wasn't sure how to set up my disk and there is too much (inconsistent) information out there to determine what's best.
I have done this:
- In the BIOS I've switched the SATA mode from RAID to IDE, so I will not use the on-board RAID features.
- During the Ubuntu install, in the disk partitioning section I did:
- create a single 1 Tb primary partition on each disk and set it to "be used in a RAID"
- created 1 mirrored partition to be used by LVM that uses the 2 primary partitions
- created 1 volume group, vg01, that contains 1 mirrored partition
- in the volume group I have created these logical volumes:
- lvol1, 2Gb ext3, for /
- lvol2, 2Gb swap for swap
- lvol3, 2Gb ext3 for /boot
- lvol4, 2Gb ext3 for /opt
- lvol5, 2Gb ext3 for /var
- lvol6, 2Gb ext3 for /var/spool
- lvol7, 2Gb ext3 for /var/tmp
- lvol8, 2Gb ext3 for /tmp
- lvol9, 2Gb ext3 for /home (which will probably be extended, and extended, ...)
It seems to work fine (except, that after initial boot the system appeared to be sync-ing the mirror for a very long time, but I guess that must have been to synchonize the two 1 Tb partitions).
Did I do wrong? Does my set up impose certain risks? I'm not sure, and any feedback would be appreciated.
Cheers,
Henk