Oracle Linux Mount Storage

Source: Internet
Author: User
Tags uuid

#启动多路径multipathd服务

Service MULTIPATHD Restart

#设置开机自动启动multipathd服务

Chkconfig MULTIPATHD on

#查看信息
Multipath-ll

The mounting method of storing the note size above 2TB
Parted
Parted/dev/mapper/mpath0
Mklabel GPT
Show print
Mkpart Primary 0% 100%
Show print
Quit

Format a storage partition file
Mkfs.ext3-f/DEV/MAPPER/MPATH0P1

Mount Storage
mount/dev/mapper/mpath1p1/caiwu/

Set the boot auto Mount method one
Vi/etc/fstab
/dev/mapper/mpath1p1/caiwu ext3 defaults 0 0


Set up auto-mount method two
Vi/etc/rc.local
Mount/dev/mapper/mpath1p1/caiwu


Configure storage capacity greater than 16TB
Start installing XFS
—————————————————————————————
Yum Install KMOD-XFS xfsprogs//install XFS file system module
Modprobe XFS//Loading XFS file system module
Lsmod |grep XFS//See if XFS modules are loaded

Format and Mount with XFS
—————————————————————————————
[Email protected] ~]$ mkfs.xfs/dev/mapper/date
mount/dev/mapper/datep1/data/

Add to Fstab let system start auto mount
—————————————————————————————————————-

Vi/etc/fstab//Open Fstab
Uuid=c3749d2d-08b5-45a3-9aa4-312b6161d471/data XFS Defaults 1 2//Add mount information Specify file system XFS (UUID obtained by BLKID/DEV/SDB1 command)

#创建物理卷
Pvcreate/dev/mapper/mpathnpvcreate/dev/mapper/mpatho #逻辑卷组

#创建VG
Vgcreate Vg_1/dev/mapper/mpathn/dev/mapper/mpatho #

#创建lv逻辑卷
Lvcreate-n lv_1-l 100T vg_1

#建立文件系统
MKFS.EXT4 vg_1-lv_1

#挂载文件系统
Mount-t ext4/dev/mapper/vg_1-lv_1/oradate

#添加rc. Local to enable automatic mount of the system
Vim/etc/rc.local

###################################################################

Add Mount command
Mount/dev/mapper/datep1/date

Create VG
[Email protected] mapper]# vgcreate data_backup/dev/mapper/date_backup1p1/dev/mapper/date_backup2p1/dev/mapper/ Date_backup3p1/dev/mapper/date_backup4p1

Activate VG
[Email protected] mapper]# vgchange-a y data_backup

Create LV
# lvcreate-l 105t-n lv_data_backup data_backup

Basin
# yum Install Kmod-xfs xfsprogs
# modprobe XFS
# Mkfs.xfs/dev/data_backup/lv_data_backup

Mount:
# Mount/dev/data_backup/lv_data_backup/data_backup

Other:
Delete VG
Lvremove/dev/data_backup/lv_data_backup

Oracle Linux Mount Storage

Related Article

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.