jueves, 3 de julio de 2008

Raid over VmWare

Product : Raid
Part Involved : Linux virtualization over VmWare
Summary: Management raid
Scenario : Testing & troubleshooting new features over linux
Company : National Institute of Cancer Sickness of Peru (INEN).
Reference Date : January 2008.

There are two videos that I have uploaded available taking this issue :
(1) Part 1 http://www.youtube.com/watch?v=gecy796j23o
(2) Part 2 http://www.youtube.com/watch?v=86n8rRyU29Y

and basically the command procedure follows the next steps :

> fdisk -l
> fdisk /dev/sdh
m (menu)
n (add new partition)
p (primary partition)
1
391 (cylinder 1-391)
p (print partition table)
L (list type of partitions available)
fd (Linux Raid Auto)
t (change system identification of partition)
L (List)
fd (Linux Raid Auto)
p (print partition table)
w (save & exist)
> fdisk /dev/sdi
> fdisk /dev/sdj
> ls /dev/md0 -l
> mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sdi1 /dev/sdj1
> mkfs.ext3 /dev/md1
> mkdir /oracle/
> mount /dev/md1 /oracle/
> df -lh
> cp /var/log/* /oracle/ -rf
> ls /oracle/
> vi /etc/fstab
** /dev/md1 /oracle ext3 defaults 0 0
:wq!

Power Off Computer
Erase disk7, disk9, disk10
Power On Computer

> df -lh
> mdadm --monitor /dev/md1
> ls /oracle/
> mkdir /oracle/hola/
> fdisk -l
** J does not have partition
> fdisk /dev/sdj
m (menu)
p (primary partition)
1-261
t (change system identification of partition)
fd (Linux Raid Auto)
p (print partition table)
w (save & exit)
> mdadm --manage /dev/md1 --add /dev/sdj1
> fdisk -l : less