glg*_*lgl 10
由于您似乎对有用的卷组和卷名称不感兴趣(目前您的 vg 已命名,VolGroup00
而您的 lv LogVol01
),我将保持这些不变。
因此,唯一需要的是更改挂载点,因此您可以编辑/etc/fstab
相应行并将其更改pracle
为oracle
. 那是为了下次重新启动。
然后做
mkdir /u001/app/oracle # necessary before changes can take effect!
umount /u001/app/pracle # unmount the old one
mount /u001/app/oracle # mount it on the new place
rmdir /u001/app/pracle # and dispose of the garbage.
Run Code Online (Sandbox Code Playgroud)
用于清理和立即进行更改。
从长远来看,至少有有用的卷名可能会很有用:这就是lvrename
目的。你会这样做
lvrename VolGroup00/LogVol01 oracle
Run Code Online (Sandbox Code Playgroud)
之后需要再次编辑 fstab,因为设备位置从 更改/dev/VolGroup00/LogVol01
为/dev/VolGroup00/oracle
resp。从/dev/mapper/VolGroup00-LogVol01
到/dev/mapper/VolGroup00-oracle
。
归档时间: |
|
查看次数: |
23728 次 |
最近记录: |