Mount disk arrays in Linux

Source: Internet
Author: User

3. Mount the disk array to the Linux System

[Root @ database1 ~] # Fdisk-l

Disk/dev/SDA: 146.9 GB, 146999869440 bytes
255 heads, 63 sectors/track, 17871 Cylinders
Units = cylinders of 16065*512 = 8225280 bytes

Device boot start end blocks ID system
/Dev/sda1*1 13 104391 83 Linux
/Dev/sda2 14 2053 16386300 82 Linux swap/Solaris
/Dev/sda3 2054 17714 125796982 + 83 Linux
/Dev/sda4 17715 17871 1261102 + 5 extended
/Dev/sda5 17715 17871 1261071 8e Linux LVM

Disk/dev/SDB: 2186.1 GB, 2186127343616 bytes
255 heads, 63 sectors/track, 265781 Cylinders
Units = cylinders of 16065*512 = 8225280 bytes

Disk/dev/SDB doesn' t contain a valid Partition Table

Disk/dev/SDC: 20 mb, 20971520 bytes
1 heads, 40 sectors/track, 1024 Cylinders
Units = cylinders of 40*512 = 20480 bytes

Disk/dev/SDC doesn' t contain a valid Partition Table

Disk/dev/SDE: 20 mb, 20971520 bytes
1 heads, 40 sectors/track, 1024 Cylinders
Units = cylinders of 40*512 = 20480 bytes

Disk/dev/SDE doesn't contain a valid Partition Table

 

Above Disk/dev/SDB: 2186.1 GB, 2186127343616 bytes
It is the 2 TB space allocated to the disk array of Linux.
Perform the following operations:
1) fdisk/dev/SDB
Input m
Command (M for help): m
Write Partition Table
2) Command (M for help): p 5, 6
3) Add a new partition with the Partition Number 1
Command (M for help): W 7
4) Next, select the ext3 File System to load the file system.
[Root @ localhost ~] # Mkfs. ext3/dev/SDA 8
5) create a folder
Mkdir/PZ
6) mount the file system to Linux
Mount/dev/sdb/PZ
7) confirm the mounting is successful.
[Root @ database1/] # DF-m
File System 1 m-block used available % mount point
/Dev/sda3 119001 3184 109675 3%/
/Dev/sda1 99 12 83 13%/boot
Tmpfs 3988 0 3988 0%/dev/SHM
/Dev/SDB 2052141 199 1947700 1%/PZ

 

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.