In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Background
The company added a new server, mounted a 2 T hard disk, ssh login found that not mounted, deal with it.
(do not want to go to Baidu every time how to mount, or sort it out)
View statu
# check the disk status and find a new disk / dev/vdbfdisk-lDisk / dev/vda: 42.9 GB, 42949672960 bytes255 heads, 63 sectors/track, 5221 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x0006b766 Device Boot Start End Blocks Id System/dev/vda1 * 1 5222 41942016 83 LinuxDisk / dev/vdb: 2147.5 GB, 2147483648000 bytes16 heads, 63 sectors/track 4161015 cylindersUnits = cylinders of 1008 * 512 = 516096 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0xb9876eee# uses lsblk to view [root@ecs-9054 tmp] # lsblkNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTvda 252VR 0 040G 0 disk └─ vda1 252RV 1 040G 0 part / vdb 252cylinders of 16 02T 0 disk# View format [root@ecs-9054 tmp] # lsblk-fNAME FSTYPE LABEL UUID MOUNTPOINTvda └─ vda1 ext4 e10f3c70-e806-4633-a7cb-3d5aa3d9df5e / vdb
Partitioning and formatting
# for the data disk partition, enter n, p, 1, enter twice according to the prompt, enter n to add a new partition # enter p to create a new main partition # specify the partition number, enter 1 to specify the starting sector, by default, it is not recommended to change # to specify the end sector, which represents the partition size. You can specify the partition size using KMagazine G. Default allocation of all fdisk / dev/vdb# at this time found to add / dev/vdb1fdisk-l # format the specified partition mkfs.ext4 / dev/vdb1
Mounting
# temporary mount partition, invalid after reboot # mount mount / dev/vdb1 / data# under / data directory # unmount / data# permanent mount: write new partition information # the first partition to be mounted, such as / dev/sdb1# second partition mount point, such as mount to / root/RepositoryDisk # third partition format, consistent with the format specified when you format the partition # the fourth direct defaults Consistent with the system # the fifth is consistent with the system, enter 0 to be consistent with the system, enter 0 to be consistent with the system, and enter 0 to add the following text echo / dev/vdb1 / data ext4 defaults,noatime 00 > > / etc/fstab to the / etc/fstab file
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.