掛盤到有文件的目錄底下-创新互联
磁盘格式化,挂盘
[root@k10148008056 ~]#
fdisk -l
[root@k10148008071 ~]#
df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/vdb1 xfs 500G 33M 500G 1% /oradata
[root@k10148008056 ~]#
mkfs.xfs /dev/vdb
[root@k10138002151 u01]#
cd /mnt
[root@k10138002151 mnt]#
mkdir u01
[root@k10138002151 mnt]#
cd u01/
[root@k10138002151 u01]#
pwd
/mnt/u01
[root@k10138002151 u01]#
mount /dev/vdb /mnt/u01
[root@k10138002151 u01]#
df -h
/dev/mapper/ol-u01 27G 9.1G 18G 34% /u01
/dev/vdb 4.0T 33M 4.0T 1% /mnt/u01
[root@k10138002151 u01]#
cp -a /u01/* /mnt/u01/
[root@k10138002151 u01]#
rm -rf /u01/*
[root@k10138002151 u01]#
umount /dev/vdb
[root@k10138002151 u01]#
df -h
/dev/mapper/ol-u01 27G 347M 27G 2% /u01
tmpfs 797M 0 797M 0% /run/user/1001
[root@k10138002151 u01]#
vi /etc/fstab
#/dev/mapper/ol-u01 /u01 xfs defaults 0 0
/dev/vdb /u01 xfs defaults 0 0
[root@k10138002151 /]#
df -h
/dev/mapper/ol-u01 27G 347M 27G 2% /u01
tmpfs 797M 0 797M 0% /run/user/1001
[root@k10138002151 /]#
mount -a
[root@k10138002151 /]#
df -h
/dev/vdb 4.0T 9.1G 3.9T 1% /u01
tmpfs 797M 0 797M 0% /run/user/1001
[root@k10138002151 /]#
cd /u01
[root@k10138002151 u01]#
ll
total 4
drwxr-xr-x. 4 oracle oinstall 52 May 30 06:58 app
drwxr-xr-x. 3 oracle oinstall 4096 May 30 06:41 source
[root@k10138002151 u01]#
pwd
/u01
新闻名称:掛盤到有文件的目錄底下-创新互联
转载源于:http://scyanting.com/article/dsejdj.html