Example link and other information. open
http://intranet.sci.com/blog.php?u=3&b=775
Step software raid 5.
1. Install Ubunt 10.04 server 32bit
2. Install time server
- apt-get install ntp
- nano /etc/ntp.conf
change server to 192.168.2.252 << NTP Server IP
3.Set proxy for Update
พิมพ์ Acquire::http { Proxy "http://192.168.2.252:9999"; }; finish save file and update and upgrade.
4.
- Install apt-get install mdadm lvm2
5. Shutdown ubuntu and add hdd in setting storage tree drive.
6. Start Ubuntu
7. Check disk
Create partition
8. Create partition:
- mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sdb1 /dev/sdc2 /dev/sdd3
9. Check :
10. Save file in config for use startup next time.
- mdadm -Es | grep md >>/etc/mdadm/mdadm.conf
11. Test remove hdd on partition and start ubuntu.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Step software LVM. use ubuntu old in software raid 5.
1. Create partition Physical Volume.
2. Create Volume Group.
- vgcreate vg1 /dev/md0
- vgdisplay
3. Create Logical Volume (xxxxx is mean Total PE number in number 5 example 4094 )
- lvcreate -l xxxxx -n lv1 vg1 /dev/md0
- lvdisplay
4. Format to ext4 or other type partition.
5. Create directory and mount. by edit file /etc/fstab and add.
- /dev/vg1/lv1 /DATA ext4 defaults 0 0
6. Command mount partition.
7. Check partition.
Finish step software LVM.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Step software LVM is not set raid. use ubuntu old in software raid 5.
1. Add hdd in virtualbox 3.
2. Start ubuntu and fdisk -l see disk. Example sde , sdf , sdg
3. Create disk by use commad
And create disk in step by step.
4. Fdisk -l for see disk. Example sde1 , sdf2 , sdf3.
5. Create Physical Volume :
6. Create Volume Group :
And test display
7. Add disk to Volume Group by use command :
And
And test display :
8. Create Logical Volume (xxxxx is mean Total PE in number 7.)
- lvcreate -l xxxxx -n lv1 lvm
- lvdisplay
9. Format to ext4 or other type partition.
10. Create directory and mount. by edit file /etc/fstab and add.
- /dev/lvm/lv1 /DATALVM ext4 defaults 0 0
11. Command mount partition.
12. Check partition.
Finish step software LVM formate hdd is not set raid.