Bringing up dart: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
Brian Wilson (talk | contribs)
Line 39: Line 39:
  lv_swap      SWAP
  lv_swap      SWAP


Neutron drive: Build a broken mirror, add second drive later
==== Neutron drive: Build a broken mirror, add second drive later ====


# Use MBR partition and put /boot on sda1
[See http://www.gagme.com/greg/linux/raid-lvm.php Managing RAID and LVM with Linux]
fdisk /dev/sda
For install onto RAID see also '''some''' of the steps here
  mkfs.ext4 /dev/sda1
[http://wiki.centos.org/HowTos/Install_On_Partitionable_RAID1 Install on partitionable RAID1]
  mdadm --create --force --verbose /dev/md0 --level=mirror --raid-devices=1 /dev/sda2
 
Here are the commands that I used.
 
  # Use the entire drive and put the partitions inside /dev/md_d0
  mdadm --create --metadata=0.90 --level=mirror --raid-devices=2 /dev/md_d0 /dev/sda missing
  # put RAID1 into LVM2
  # put RAID1 into LVM2
  pvcreate /dev/md0
  pvcreate /dev/md0
pvdisplay
  vgcreate vg_mirror /dev/md0
  vgcreate vg_mirror /dev/md0


  # later, set up second drive as the mirror
  # later, set up second drive as the mirror
fdisk /dev/sdb
mkfs.ext4 /dev/sdb1
  mdadm --add --verbose /dev/md0 /dev/sdb2
  mdadm --add --verbose /dev/md0 /dev/sdb2
  # the mirror should automatically be added to LVM since it's part of /dev/md0
  # the mirror should automatically be added to LVM since it's part of /dev/md0


Revo drive: completely managed under LVM2
==== Revo drive: completely managed under LVM2 ====


  pvcreate /dev/sdc1 /dev/sdd1
  pvcreate /dev/sdc1 /dev/sdd1
  vgcreate vg_workspace /dev/sdc1 /dev/sdd1
  vgcreate vg_workspace /dev/sdc1 /dev/sdd1
lvcreate -l ????? vg_workspace -n lv_workspace
mkfs.ext4 /dev/vg_workspace/lv_workspace


3Ware RAID5: completely managed under LVM2
After installing OS, /dev/vg_workspace/lv_workspace will be mounted at /workspace


pvcreate /dev/sd
==== 3Ware RAID5: completely managed under LVM2 ====
vgcreate vg_raid


Black drive: completely managed under LVM2
pvcreate /dev/sd?
vgcreate vg_raid /dev/sd?
lvcreate -l ????? vg_raid -n lv_var
mkfs.ext4 /dev/vg_raid/lv_var


After installing OS, /dev/vg_raid/lvm0 will be mounted at /var
==== Black drive: completely managed under LVM2 ====
Might also want some SWAP on here?
parted set up one LVM partitions
mark partition type as 8e = LVM
  pvcreate /dev/sdd
  pvcreate /dev/sdd
  vgcreate vg_bulk /dev/sdd
  vgcreate vg_bulk /dev/sdd
lvcreate -l ????? vg_bulk -n lv_home
lvcreate -l ????? vg_bulk -n lv_swap
mkfs.ext4 /dev/vg_bulk/lv_home
mkswap /dev/vg_bulk/lv_swap


  parted set up one LVM partitions
Will be mounted as /home and swap
  mark partition type as 8e = LVM
 
  pg /dev/sd??
==== Commands to view what we've done ====
 
For example:
  pvdisplay vg_bulk
  lvdisplay lv_home
  lvdisplay lv_swap


== CentOS install ==
== CentOS install ==

Revision as of 18:21, 3 December 2012

Hardware

  • SuperMicro SC742 4U server case
  • SuperMicro X9SRA motherboard
  • Intel Xeon E5-2650 Sandy Bridge-EP 2.0GHz (2.8GHz Turbo Boost) LGA 2011 95W 8-Core Server Processor
  • SUPERMICRO SNK-P0050AP4 Heatsink for Supermicro X9DR3-F Motherboard
  • 32GB ECC registered RAM (4 x 8GB)
  • Four 15K 150GB drives HITACHI HUS153014VL
  • Corsair Neutron Series GTX CSSD-N240GBGTX-BK 2.5" 240GB SATA III Internal Solid State Drive (SSD)
  • 3Ware 9690SA-4I SATA/SAS RAID controller

Drive Config

Hardware

Neutron SSD 240
Neutron SSD 240
Revo 60
Revo 60
3Ware 435 (4 x Hitachi 150GB in RAID 5)
WDC Black 1000
2 x Neutrons => partitioned for boot and md0 RAID 1 = operating system
2 x Revos => md1 RAID 0 = fast workspace
3ware RAID => /var and other fast data storage
Black = home, bulky data, swap

Volume groups

vg_mirror
vg_workspace
vg_raid
vg_bulk

Logical volumes

lv_root      /
lv_workspace /workspace
lv_var       /var
lv_home      /home
lv_swap      SWAP

Neutron drive: Build a broken mirror, add second drive later

[See http://www.gagme.com/greg/linux/raid-lvm.php Managing RAID and LVM with Linux] For install onto RAID see also some of the steps here Install on partitionable RAID1

Here are the commands that I used.

# Use the entire drive and put the partitions inside /dev/md_d0
mdadm --create --metadata=0.90 --level=mirror --raid-devices=2 /dev/md_d0 /dev/sda missing
# put RAID1 into LVM2
pvcreate /dev/md0
vgcreate vg_mirror /dev/md0
# later, set up second drive as the mirror
mdadm --add --verbose /dev/md0 /dev/sdb2
# the mirror should automatically be added to LVM since it's part of /dev/md0

Revo drive: completely managed under LVM2

pvcreate /dev/sdc1 /dev/sdd1
vgcreate vg_workspace /dev/sdc1 /dev/sdd1
lvcreate -l ????? vg_workspace -n lv_workspace
mkfs.ext4 /dev/vg_workspace/lv_workspace

After installing OS, /dev/vg_workspace/lv_workspace will be mounted at /workspace

3Ware RAID5: completely managed under LVM2

pvcreate /dev/sd?
vgcreate vg_raid /dev/sd?
lvcreate -l ????? vg_raid -n lv_var
mkfs.ext4 /dev/vg_raid/lv_var

After installing OS, /dev/vg_raid/lvm0 will be mounted at /var

Black drive: completely managed under LVM2

Might also want some SWAP on here?

parted set up one LVM partitions
mark partition type as 8e = LVM
pvcreate /dev/sdd
vgcreate vg_bulk /dev/sdd
lvcreate -l ????? vg_bulk -n lv_home
lvcreate -l ????? vg_bulk -n lv_swap
mkfs.ext4 /dev/vg_bulk/lv_home
mkswap /dev/vg_bulk/lv_swap

Will be mounted as /home and swap

Commands to view what we've done

For example:

pvdisplay vg_bulk
lvdisplay lv_home
lvdisplay lv_swap

CentOS install

Install minimal system from DVD
vi /etc/sysconfig/network-scripts/ifcfg-eth0
vi /etc/resolv.conf
service network restart
yum -y install emacs
yum -y install openssh-clients
yum -y install gcc unzip
yum -y install hdparm
yum -y install httpd
yum update
reboot

Basic software install

Install PostGIS 2.0

Install ArcGIS Server