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
- nano /etc/apt/apt.conf
4.
- Install apt-get install mdadm lvm2
5. Shutdown ubuntu and add hdd in setting storage tree drive.
6. Start Ubuntu
7. Check disk
- fdisk -l
- fdisk /dev/sdb
8. Create partition:
- mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sdb1 /dev/sdc2 /dev/sdd3
- mdadm --detail /dev/md0
- mdadm -Es | grep md >>/etc/mdadm/mdadm.conf
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Step software LVM. use ubuntu old in software raid 5.
1. Create partition Physical Volume.
- pvcreate /dev/md0
- vgcreate vg1 /dev/md0
- vgdisplay
- lvcreate -l xxxxx -n lv1 vg1 /dev/md0
- lvdisplay
- mkfs.ext4 /dev/vg1/lv1
- /dev/vg1/lv1 /DATA ext4 defaults 0 0
- mkdir /DATA
- mount -a
- df -h /DATA
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
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
- fdisk /dev/sdb
4. Fdisk -l for see disk. Example sde1 , sdf2 , sdf3.
5. Create Physical Volume :
- pvcreate /dev/sde1
- vgcreate lvm /dev/sde1
- vgdisplay
- vgextend lvm /dev/sdf2
- vgextend lvm /dev/sdg3
- vgdisplay
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.
- mkfs.ext4 /dev/lvm/lv1
10. Create directory and mount. by edit file /etc/fstab and add.
- /dev/lvm/lv1 /DATALVM ext4 defaults 0 0
11. Command mount partition.
- mkdir /DATALVM
- mount -a
12. Check partition.
- df -h /DATALVM
No comments:
Post a Comment