Under the virtual machine, the CentOS6.3 system uses the minimum installation by default. The default is divided into 3 zones, namely the root zone, the boot zone and the swap zone:
[root@localhost home]# df -h
File System Capacity Already Available %% Mount Point
/dev/mapper/VolGroup-lv_root
14G 13G 1G 92% /
tmpfs 246M 0 246M 0% /dev/shm
/dev/sda1 485M 52M 408M 12% /boot
Because this system is only used for testing, it only gives 15G space ( The total disk space is 30G). It took a long time to find that the disk space is almost full, so I plan to expand the disk.
Target: Because the system itself does not occupy much space, mainly in the /home directory, so plan to mount the original home directory to a new partition, the specific implementation is as follows:
Partition the remaining space of the disk:
[root@localhost ~]# fdisk /dev/sda
Press the {p} key to see the current partition status of the disk, press [m] You can view the help, we press [n] to create the partition and then press [e] to create the extended partition, enter the partition number and partition size and other parameters, then create the partition and then press [n], then press [l] to create the logical partition sda5
After returning, press [t] and enter the partition number [5], then enter 8e, and change the logical partition sda5 type just created to linux lvm
and press [w] to return.
Second, create pv
[root@localhost ~]# pvcreate /dev/sda5
Device /dev/sda5 not found (or ignored by filtering).
I can't find it. I have been confused for a long time. I don't know where the problem is. For this reason, I posted a question in the 51cto linux forum, but I didn't get it. Later I accidentally saw an introduction to the fdisk command. The article, said that after the partition to refresh the partition table, otherwise you can not see the partition, I quickly used ls to see the partition situation, I really can not see:
[root@localhost ~]# ls /dev /
diskless boot everyone should have heard of it, and now many Internet cafes and enterprises have use
CentOS modify IP address First turn off the firewall: service iptables stop# ifconfig eth0 192.168.1
for Windows 7 computers Microsoft will allow its computer OEMs and their system co-developers to d
The network is often dropped. Many technicians think that the router is unstable. The ac
Make:arm-linux- conmand not found error handling discussion
CenterOS 64-bit modified mysql5.5.25 default encoding
How Linux can modify the system's service start and stop
Detailed explanation of the meaning of ctime atime mtime for files and folders under Linux
Linux LAN slow transmission problems and private drivers of those broken things
Linux common tips: teach you the same network card configuration multiple IP
The shell script automatically modifies the IP information
Introduction to the ISO boot method of the hard disk under Linux system
Explain the major "jump menus" of Windows 7
How to solve Win8.1 computer management?
New Vista features improve program diagnostics
Solving the Win7 Recycle Bin icon does not display the problem properly
How to solve ActionScript error in Win7 system?
Linux installation using eCryptFS to encrypt files
WinXP control panel "switch classification view" is gone?