ZFS挂载时directory is not empty问题

7月 22nd, 2010 | Posted by | Filed under 操作系统

本文内容遵从CC版权协议, 可以随意转载, 但必须以超链接形式标明文章原始出处和作者信息及版权声明
网址: http://www.penglixun.com/tech/system/zfs_cannot_mount.html

今天重启一台数据库主机(Solaris系统),结果在重启时报出了错误:

cannot mount ‘/export/home/alt’: directory is not empty

SA折腾许久不能解决,查看ZFS Administration Guide,发现一条这样的描述:

By default, ZFS does not allow mounting on top of a non-empty directory. To force a mount on top of a non-empty directory, the -O option must be used.

原来是默认不允许挂载在一个非空目录的顶部,文档也给出了方案,-O参数。

zfs mount -O data/mysqldata

这样就可以强制挂载上去了。

不过据说mount -F zfs data/mysqldata这样旧的方式挂载也是OK的。

有时候,很多答案都在文档里了,只是我们不Care。

标签: ,
  1. sky000
    7月 22nd, 201011:05

    “有时候,很多答案都在文档里了,只是我们不Care。”
    确实如此,所以我不到万不得已是不会从网上Google来寻找问题答案的,第一时间都是从官方文档中寻找答案。

    [回复]