您好,登录后才能下订单哦!
磁盘格式化,挂盘
[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
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。