Requirements: The virtual machine needs to expand the hard disk capacity, through the Vcenter Edit resource settings, the original 50G expansion to 100G. But not immediately. The following actions are available:650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/83/B1/wKioL1d6mWuCIUL8AAA4Dt_3u9w879.png "title=" Qq20160705011341.png "alt=" Wkiol1d6mwuciul8aaa4dt_3u9w879.png "/>After the modified 100G, log in to the virtual machine to view the following:[Email protected]_test etc]# df-hFile
If the machine has data, you must be very careful when operating. The internal samba server cannot be accessed, and there is nothing in/share. No data is found. Later, I checked it carefully and found that the machine had five hard disks, which seemed to be a soft raid.
1. Run the fdisk-l command to view and find
/Dev/sde1 1 60801 488384001 fd Linux raid autodete
2. cat/proc/mdstat, md0, and md1 are all inactive.
3. I 've taken it all offline for a long time. I am afraid to perform too many oper
The construction of enterprise-level application systems usually stores systems and data separately, and creates raid. The newly installed centos6.5 requires a data disk to be mounted and can be automatically mounted at system startup.
1. Manually mount the disk
View the disk partition information and run the fdisk command.
[[Email protected] TSP] # fdisk-l
Disk/dev/SDB: 1476.5 GB, 1476529225728 bytes255 heads, 63 sectors/track, 179511 CylindersUnits = cylinders of 16065*
Learning from linux-disk management and learning from linux
1: df is used to view the capacity information of mounted disks.
-I. View inodes usage
-H is displayed in proper units
-K-m is displayed in k M units.
2: view the space occupied by a file or directory by du [-abckmsh] [file name and directory name]
The du + directory only lists the sizes of directories and Their subdirectories.
The du-a + directory lists the subdirectories and file sizes.
Commonly used du-sh + directory representation t
When you are young, remember these simple commands and make a small record. Let's take a look at them when you can't remember them.
Environment: Oracle linux 6.3I. View the current partition and File System
[Root @ OEL63 ~] # Df-hFilesystem Size Used Avail Use % Mounted on/Dev/mapper/vg_oel63-lv_root18 GB 11G 5.9G 65%/Tmpfs 496 M 375 M 121 M 76%/dev/shm/Dev/sda1 485 M 55 M 405 M 12%/boot[Root @ OEL63 ~] # Fdisk-lDisk/dev/sda: 21.5 GB, 21474836480 bytes255 heads, 63 sectors/track, 2610 cylindersU
In this experiment, we need to add two new 30 GB hard disks.
[[Email protected] ~] # Uname-
Linux zzsrv1.localdomain 3.10.0-123. el7.x86 _ 64 #1 SMP mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
We can display the disk without restarting it.
[[Email protected] ~] # Echo "---">/sys/class/scsi_host/host0/scan
[[Email protected] ~] # Echo "---">/sys/class/scsi_host/host1/scan
[[Email protected] ~] # Echo "---">/sys/class/scsi_host/host2/scan
View Disks
[[Email protected] ~] # Fdisk-
Requirements: The virtual machine needs to expand the hard disk capacity, through the Vcenter Edit resource settings, the original 50G expansion to 100G. But not immediately. The following actions are available:650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/83/B1/wKioL1d6mWuCIUL8AAA4Dt_3u9w879.png "title=" Qq20160705011341.png "alt=" Wkiol1d6mwuciul8aaa4dt_3u9w879.png "/>After the modified 100G, log in to the virtual machine to view the following:[Email protected]_test etc]# df-hFile
Tags: CTO. com format com min using res border extended partition1. Add 10G HDD. Hot swap is actually supported on the server2. Fdisk-l View[[emailprotected] ~]# fdisk-l #如果识别不到新插的硬盘, to view the disk, the virtual machine requires a reboot to load the new disk properly. disk/dev/sda:53.7 GB, 53687091200 bytes, 104857600 sectorsunits = sectors of 1 * = bytessector size (logic al/physical): bytes/512 bytesi/o size (minimum/optimal): bytes/
tool for viewing all the partition tables in your system, including all USB devices, using root privileges to execute the following commands:[[emailprotected] ~]# fdisk-ldisk/dev/sda:21.5 GB, 21474836480 bytes, 41943040 sectorsunits = sectors of 1 * 512 = Bytessector Size (logical/physical): bytes/512 bytesi/o size (minimum/optimal): bytes/512 bytesdisk Labe L t
4.8G 37M 4.6G 1%/home
Note The df-h command sees only the partitions and capacities that have been mounted, the hard disk that is not mounted, and the capacity that is not allocated on the existing hard disk, and you can use Fdisk-l to view the physical hard drive.
[root@localhost ~]# fdisk-l disk/dev/sda:214.7 GB, 214748364800 bytes, 419.4304 million sectors Units = Sector of 1 *-The bytes sector size ( Logical/Physical): 512 By
-ldisk/dev/vda:37.6 GB, 37580963840 bytesHeads, Sectors/track, 72817 cylindersUnits = Cylinders of 1008 * 516096 bytesSector size (logical/physical): bytes/512 bytesI/O size (minimum/optimal): bytes/512 bytesDisk identifier:0x0004583cDevice Boot Start End Blocks Id System/DEV/VDA1 * 3 1018 512000 LinuxPartition 1 does not end on cylinder boundary./dev/vda2 1018 62416 30944256 8e Linux LVMPartition 2 does no
Disk mounting in Linux
The company's hard disk is not enough. A new storage needs to be mounted to the current system. I won't talk about the previous steps. O M is all done. It is nothing more than a set of hardware and networks. Here I will only talk about how to mount it in Linux after it is assigned to me.
The procedure is as follows:
1. Check whether the resource has been allocated.
[Root @ localhost home] # fdisk-l
Disk/dev/sda: 64.4 GB, 64424509440 bytes, 125829120 sectorsUnits = sector
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.