1 2 3 4 5 6 7 8 9 10 11 | [root@localhost ~]# hot_add Starting new devices re-scan... scan mptsas HBA host /sys/class/scsi_host/host1... found 1:0:0:1 found 1:0:1:1 scan mptsas HBA host /sys/class/scsi_host/host0... no new device found run /usr/sbin/mppUtil -s busscan... scan mpp virtual host /sys/class/scsi_host/host3... found 3:0:0:1->/dev/sdb /usr/sbin/hot_add is completed. |
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 | [root@localhost ~]# fdisk /dev/sdb Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. The number of cylinders for this disk is set to 51200. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-51200, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-51200, default 51200): Using default value 51200 Command (m for help): t Selected partition 1 Hex code (type L to list codes): 8e Changed system type of partition 1 to 8e (Linux LVM) Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. |
1 2 3 4 5 6 7 8 9 10 11 | [root@localhost ~]# vgdisplay -s "VolGroupBoot" 49.88 GB [49.88 GB used / 0 free] [root@localhost ~]# pvcreate /dev/sdb1 Physical volume "/dev/sdb1" successfully created [root@localhost ~]# vgextend VolGroupBoot /dev/sdb1 Volume group "VolGroupBoot" successfully extended [root@localhost ~]# vgdisplay -s "VolGroupBoot" 49.88 GB [49.88 GB used / 49.97 free] |
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 | [root@localhost ~]# lvdisplay /dev/VolGroupBoot/LogVolSlash --- Logical volume --- LV Name /dev/VolGroupBoot/LogVolSlash VG Name VolGroupBoot LV UUID dIanEg-J6Mf-60Ec-eUKb-rgoJ-dOM0-QmjQ3Q LV Write Access read/write LV Status available # open 1 LV Size 47.94 GB Current LE 1534 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0 [root@localhost ~]# lvextend -l +100%FREE /dev/VolGroupBoot/LogVolSlash /dev/sdb1 Extending logical volume LogVolSlash to 97.91 GB Logical volume LogVolSlash successfully resized [root@localhost ~]# lvdisplay /dev/VolGroupBoot/LogVolSlash --- Logical volume --- LV Name /dev/VolGroupBoot/LogVolSlash VG Name VolGroupBoot LV UUID dIanEg-J6Mf-60Ec-eUKb-rgoJ-dOM0-QmjQ3Q LV Write Access read/write LV Status available # open 1 LV Size 97.91 GB Current LE 3133 Segments 2 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | [root@localhost ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroupBoot-LogVolSlash 47G 2.3G 42G 6% / [root@localhost ~]# resize2fs -p /dev/VolGroupBoot/LogVolSlash resize2fs 1.39 (29-May-2006) Filesystem at /dev/VolGroupBoot/LogVolSlash is mounted on /; on-line resizing required Performing an on-line resize of /dev/VolGroupBoot/LogVolSlash to 25665536 (4k) blocks. The filesystem on /dev/VolGroupBoot/LogVolSlash is now 25665536 blocks long. [root@localhost ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroupBoot-LogVolSlash 95G 2.3G 88G 3% / |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |