#启动多路径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