1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
| df -h yum install lvm2* part* fdisk -l fdisk /dev/sdb
mkfs.ext4 /dev/sdb1 partprobe pvcreate /dev/sdb1 pvscan pvdisplay vgscan vgdisplay vgextend VolGroup00 /dev/sdb1 lvscan lvdisplay lvextend -L +100G /dev/VolGroup00/lv_root resize2fs /dev/VolGroup00/lv_root df -h
fdisk -l fdisk /dev/sdb
mkfs.ext4 /dev/sdb1 mv /var/lib/redis /backup mkdir /var/lib/redis mount /dev/sdb1 /var/lib/redis mv /backup/redis/* /var/lib/redis echo "/dev/sdb1 /var/lib/redis ext4 defaults 0 0" >> /etc/fstab
|