Files
geedge-jira/md/OMPUB-405.md
2025-09-14 21:52:36 +00:00

50 lines
1.1 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 修改服务器磁盘挂载路径
| ID | Creation Date | Assignee | Status |
|----|----------------|----------|--------|
| OMPUB-405 | 2022-03-08T11:37:59.000+0800 | 程思源 | 完成 |
---
因192.168.40.222和192.168.40.223服务器磁盘挂载路径与其他服务器差异较大,不便于后续部署测试等使用;预在不影响原有数据的情况下,将其统一修改为 */home*
服务器现挂载路径如下:
||服务器||挂载路径||
|192.168.40.222|/home/data|
|192.168.40.223|/home/bigdata|
**chengsiyuan** commented on *2022-03-09T13:07:16.541+0800*:
因修改磁盘挂载路径会隐藏/home下原本文件
如果想要更换挂载目录后,保留原本/home下的内容可使用下面方法但存在风险
mkdir /new ##创建一个过渡目录
umount /home/data ##解除原本挂载
mount /dev/sdb /new ##将磁盘挂载到过渡目录
cp -R /home/* /new ##将/home原本内容移动到/new
rm -rf /home/* ##为了腾出空间
umount /new ##解除挂载
rm -rf /new ##删除临时目录
mount /dev/sdb /home ##挂载/home
已通知戚岱杰确认
 
---
## Attachments