Przeglądaj źródła

Version 2.1.1

[Version 2.1.1]
Update Tools

1. Update LVM DISK Auto Partition Tools.
(Add xvda disk type support)
2. Fixed an issue where the version number needs to be updated.
MeowLove 6 lat temu
rodzic
commit
55f6865ce6
1 zmienionych plików z 33 dodań i 2 usunięć
  1. 33 2
      CoreShell/LVM_DISK_Auto_Partition_Tools.sh

+ 33 - 2
CoreShell/LVM_DISK_Auto_Partition_Tools.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 echo "------------------------------------------------------------------------------------------------------------------------------------------------------"
-echo -e "\033[33m LVM DISK Auto Partition Tools Version: 1.0.1 (20190622) \033[0m |  Technical support provided by [ https://cxthhhhh.com ] "
+echo -e "\033[33m LVM DISK Auto Partition Tools Version: 1.0.2 (20190622) \033[0m |  Technical support provided by [ https://cxthhhhh.com ] "
 echo "------------------------------------------------------------------------------------------------------------------------------------------------------"
 echo -e "\033[33m 8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 \033[0m"
 echo -e "\033[33m 8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 \033[0m"
@@ -23,7 +23,7 @@ echo -e "\033[33m 888   888888    88    888    8888   8888   88888   88888888
 echo -e "\033[33m 88    8888888   888          8888     888         888888888   888888888          888   8888888     88   88888     88   8888         8888   8888   88 \033[0m"
 echo -e "\033[33m 8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888 \033[0m"
 echo "------------------------------------------------------------------------------------------------------------------------------------------------------"
-echo -e "\033[33m LVM DISK Auto Partition Tools Version: 1.0.1 (20190622) \033[0m |  Technical support provided by [ https://cxthhhhh.com ] "
+echo -e "\033[33m LVM DISK Auto Partition Tools Version: 1.0.2 (20190622) \033[0m |  Technical support provided by [ https://cxthhhhh.com ] "
 echo "------------------------------------------------------------------------------------------------------------------------------------------------------"
 echo "Analyze Disk type (Virtual/Physical)......"
 sleep 5
@@ -58,6 +58,37 @@ sleep 11s
 echo "In the partition (5/5), waiting for the disk response will take more than 10 seconds."
 resize2fs -p /dev/mapper/centos-root
 sleep 6s
+elif [ -b /dev/xvda1 ]; then
+echo "Disk type: Virtual Disk"
+echo "Recognition completed, waiting for disk response."
+echo "Automatic partitioning will take more than 2 minutes to complete."
+sleep 3s
+echo "n
+p
+3
+
+
+t
+3
+8e
+w
+" | fdisk /dev/xvda
+sleep 10s
+echo "In the partition (1/5), waiting for the disk response will take more than 30 seconds."
+partprobe
+sleep 20s
+echo "In the partition (2/5), waiting for the disk response will take more than 15 seconds."
+pvcreate /dev/vda3
+sleep 11s
+echo "In the partition (3/5), waiting for the disk response will take more than 15 seconds."
+vgextend centos /dev/vda3
+sleep 11s
+echo "In the partition (4/5), waiting for the disk response will take more than 15 seconds."
+lvextend -l +100%FREE /dev/mapper/centos-root
+sleep 11s
+echo "In the partition (5/5), waiting for the disk response will take more than 10 seconds."
+resize2fs -p /dev/mapper/centos-root
+sleep 6s
 else
 echo "Disk type: Physical Disk"
 echo "Recognition completed, waiting for disk response."