Skip to content

Instantly share code, notes, and snippets.

@erikson1970
Last active November 25, 2017 22:43
Show Gist options
  • Save erikson1970/f8a7315f6d5c03f56c275d4e931ae430 to your computer and use it in GitHub Desktop.
Save erikson1970/f8a7315f6d5c03f56c275d4e931ae430 to your computer and use it in GitHub Desktop.
#
# https://www.centos.org/docs/5/html/Cluster_Logical_Volume_Manager/LV_create.html
# https://www.ibm.com/support/knowledgecenter/en/SSNW54_1.1.1/com.ibm.kvm.v111.admin/RAIDlogicalvolumeslva.htm
#
sudo vgdisplay
#
#Create Physical Volumes
#
# add three partitions to the unallocated assets under LVM management
sudo pvcreate /dev/sdd1 /dev/sdd2 /dev/sde1 /dev/sde2
#
# List available Volume Groups and their sizes
#
sudo vgs -o +lv_size,lv_name
# VG #PV #LV #SN Attr VSize VFree LSize LV
# mint-vg 1 2 0 wz--n- 148.81g 0 147.06g root
# mint-vg 1 2 0 wz--n- 148.81g 0 1.75g swap_1
# raidy5 3 1 0 wz--n- 2.73t 94.51g 1.76t myRAID5
#
#Create RAID:
#
sudo lvcreate --type raid5 -L 1800G -i 2 -I 64 -n myRAID5 raidy5
#
# Manage LV Raid
#
sudo system-config-lvm
#
#
sudo mount /mnt/BigUSBDisk
cd /mnt/BigUSBDisk
sudo mkdir Public Pictures Music Documents Videos Downloads
chmod 777 Public Pictures Music Documents Videos Downloads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment