????????????????????????????
????????
????mkfs -t ext3 /dev/sda3
????????
????mkfs.ext3 /dev/sda3
????????mkfs.ext3 /dev/sdb3????“Could not stat /dev/sdb3”?????????????????????????? fdisk ????????????????????
????????
????partprobe
?????????mkfs.ext3 /dev/sdb4 ????????
???????????????????????????????????????????? ext3 ?????????????????????????mkfs ???????
????????????????????????????/dev/sda3?????????????????????????????????μ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
??????????????????????LVM?????????????????????????Щ???????????????????????????????????????????
????????????????????
????????????vgextend ??????lvm??????????????2?????
[root@CNGI-SIP6-BUPT ~]# lvs
LV       VG         Attr   LSize Origin Snap% Move Log Copy% Convert
LogVol00 VolGroup00 -wi-ao 3.97G
LogVol01 VolGroup00 -wi-ao 3.91G
[root@CNGI-SIP6-BUPT ~]# pvcreate /dev/sda3
Physical volume "/dev/sda3" successfully created
[root@CNGI-SIP6-BUPT ~]# vgextend VolGroup00 /dev/sda3 ??????????????????lvm?????????????df -h?????????????? /dev/mapper/VolGroup00-LogVol00??
Volume group "VolGroup00" successfully extended
You have new mail in /var/spool/mail/root
[root@CNGI-SIP6-BUPT ~]# vgdisplay
--- Volume group ---
VG Name               VolGroup00
System ID
Format                lvm2
Metadata Areas        2
Metadata Sequence No 4
VG Access             read/write
VG Status             resizable
MAX LV                0
Cur LV                2
Open LV               2
Max PV                0
Cur PV                2
Act PV                2
VG Size               15.84 GB
PE Size               32.00 MB
Total PE              507
Alloc PE / Size       252 / 7.88 GB
Free PE / Size       255 / 7.97 GB
VG UUID               3vSeag-Q74D-Gn1b-OHEq-zyH1-YgSO-ThhBCp
[root@CNGI-SIP6-BUPT ~]#
?????????Free PE / Size       255 / 7.97 GB???????????????7.97G????????
????????????????????
[root@CNGI-SIP6-BUPT ~]# lvextend -L +7.96G /dev/VolGroup00/LogVol00 /dev/sda3
Rounding up size to full physical extent 7.97 GB
Extending logical volume LogVol00 to 11.94 GB
Logical volume LogVol00 successfully resized
[root@CNGI-SIP6-BUPT ~]#
[root@CNGI-SIP6-BUPT ~]# vim /etc/fstab
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts gid=5??mode=620 0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
~
???????????????????ext3??????????????????????????????ж???ok??
?????????fsck????????????e2fsck -f /dev/VolGroup00/LogVol00
???????????????????С?е?????????????????????
[root@CNGI-SIP6-BUPT ~]# resize2fs /dev/VolGroup00/LogVol00
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/VolGroup00/LogVol00 is mounted on /; on-line resizing required
Performing an on-line resize of /dev/VolGroup00/LogVol00 to 3129344 (4k) blocks.
The filesystem on /dev/VolGroup00/LogVol00 is now 3129344 blocks long.
???????????в??????????df -h?????????????С????????????????????????к???~~