In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Guide to hard disk formatting, partitioning and mounting
The newly added blank hard disk (assuming it can be identified, if you can't identify the need for online array, you can install MegaCli to do the array), you need to partition, format, and mount.
1. How to make an array online
1. Install MegaCli
Http://www.lsi.com/support/Pages/Download-Results.aspx?keyword=MegaCli
Select the appropriate version of the installation package
Decompress after download
Unzip CSA1.5-MegaCli_REL80571.zip
Cd MegaCLI/MegaCli_Linux
Rpm-ivh MegaCli-8.05.71-1.noarch.rpm
Installation completed
Ln-s / opt/MegaRAID/MegaCli/MegaCli64 / usr/bin/
Install it under / opt by default and establish a soft link to / usr/bin
2. MegaCli-PDList-aAll [displays all physical information] to find the newly added drive letter
Raid0:
/ opt/MegaRAID/MegaCli/MegaCli64-CfgLdAdd-R0 [32:2] WB ADRA Direct NoCachedBadBBU-a0
Raid1:
/ opt/MegaRAID/MegaCli/MegaCli64-CfgLdAdd-R1 [32 WB ADRA Direct NoCachedBadBBU 2 and 3] WB ADRA Direct NoCachedBadBBU-a0
Description
R0: it means to do raid 0
R1: it means raid1.
[32:2] New hard drive number
32 means Enclosure Device ID:32.
2 refers to the SLOT Number:2 slot
(view all physical hard disk status / opt/MegaRAID/MegaCli/MegaCli64-PDList-a0)
-a0-0 is the array card number Adapter # 0
Wb ADRA direct Nocachedbadbbu refers to the following parameters
[WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU]
2. In this way, you can recognize the disk
The following drive letters (sdb) are examples. The drive letters of the new hard disk are determined by viewing parted-l.
A small hard drive (less than 2T)
Zoning
Fdisk / dev/sdb
Formatting
Mkfs.ext4 / dev/sdb1
Mounting
Mount / dev/sdb1 / data1
Uid=blkid / dev/sdb1 | awk'{print $2}'| awk-F'"'{print $2}'`
Echo "UUID=$uid / data1 ext4 defaults 0" > > / etc/fstab
Two large hard drives (greater than or equal to 2T)
Use parted to mount a hard disk exceeding 2T by modifying the partition format to GPT, and quickly format it with xfs. If you exceed 6T, you must use xfs format)
Zoning
Parted-s / dev/sdb mklabel gpt
Parted-s / dev/sdb mkpart primary "0-1"
Formatting
Yum install kmod-xfs xfsprogs-y
Modprobe xfs
Mkfs.xfs / dev/sdb1
Mounting
Mount / dev/sdb1 / data1
Uid=blkid / dev/sdb1 | awk'{print $2}'| awk-F'"'{print $2}'`
Echo "UUID=$uid / data1 xfs defaults 0" > > / etc/fstab
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.