安装nfs 客户端后,nfs-common 服务状态显示inactive,启动显示服务is masked
背景:
master1主机安装了nfs-common客户端,过了一段时间后发现nfs-common.service 变为了inactive,
root@master1:~#sudo systemctl enable nfs-common.service
Failed to start nfs-common.service: Unit nfs-common.service is masked.
使用unmask命令也不起作用
root@master1:~# sudo systemctl unmask nfs-common.service
root@master1:~# sudo systemctl start nfs-common.service
Failed to start nfs-common.service: Unit nfs-common.service is masked.
root@master1:~# systemctl status nfs-common.service
○ nfs-common.service
Loaded: masked (Reason: Unit nfs-common.service is masked.)
Active: inactive (dead)
root@master1:~# sudo systemctl enable nfs-common.service
Synchronizing state of nfs-common.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable nfs-common
Failed to enable unit: Unit file /usr/lib/systemd/system/nfs-common.service is masked.
使用file 命令查看 失败的路径
root@master1:~# file /usr/lib/systemd/system/nfs-common.service
/usr/lib/systemd/system/nfs-common.service: symbolic link to /dev/null
删除符号链接
root@master1:~# sudo rm /usr/lib/systemd/system/nfs-common.service
重新加载systemd位置
root@master1:~# sudo systemctl daemon-reload
启动服务
root@master1:~# sudo systemctl start nfs-common.service
设置开机自启
root@master1:~# sudo systemctl enable nfs-common.service
nfs-common.service is not a native service, redirecting to systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable nfs-common
查看状态,成功解决!!!
root@master1:~# sudo systemctl status nfs-common.service
● nfs-common.service - LSB: NFS support files common to client and server
Loaded: loaded (/etc/init.d/nfs-common; generated)
Active: active (running) since Thu 2025-06-19 10:03:54 CST; 32s ago
Docs: man:systemd-sysv-generator(8)
Tasks: 2 (limit: 2237)
Memory: 5.0M (peak: 6.4M)
CPU: 100ms
CGroup: /system.slice/nfs-common.service
├─1228569 /usr/sbin/rpc.statd
└─1228594 /usr/sbin/rpc.idmapd
Jun 19 10:03:53 master1 systemd[1]: Starting nfs-common.service - LSB: NFS support files common to client and server...
Jun 19 10:03:53 master1 nfs-common[1228561]: * Starting NFS common utilities
Jun 19 10:03:53 master1 rpc.statd[1228569]: Version 2.6.4 starting
Jun 19 10:03:53 master1 rpc.statd[1228569]: Failed to read /var/lib/nfs/state: Success
Jun 19 10:03:53 master1 rpc.statd[1228569]: Initializing NSM state
Jun 19 10:03:54 master1 rpc.idmapd[1228594]: Setting log level to 0
Jun 19 10:03:54 master1 rpc.idmapd[1228594]: libnfsidmap: Unable to determine the NFSv4 domain; Using 'localdomain' as the NFSv4 domain which means UIDs will be mapped to the 'Nobody-User' user defined in /etc/idmapd.conf
Jun 19 10:03:54 master1 nfs-common[1228561]: ...done.
Jun 19 10:03:54 master1 systemd[1]: Started nfs-common.service - LSB: NFS support files common to client and server.
root@master1:~#
安装nfs 客户端后,nfs-common 服务状态显示inactive,启动显示服务is masked的更多相关文章
- 在Mac和win7上分别安装了docker后,发现原来的vagrant都启动不了了
在Mac和win7上分别安装了docker后,发现原来的vagrant都启动不了了 liugx@liugx vagrant$ vagrant up /opt/vagrant/embedded/gems ...
- 安装oracle客户端后,怎样设置电脑的环境变量?
安装配置参考: http://www.haodaima.net/art/2854001 设置环境变量(修改PATH和TNS_ADMIN环境变量): 对于NLS_LANG环境变量, 最好设置成和数据库端 ...
- 安装svn客户端后,代码不能提交
转载:https://jingyan.baidu.com/article/e8cdb32b3312f637052badde.html
- 【记录一个问题】thinkpad x1笔记本,安装ubuntu 16后,拔掉U盘,总是启动到windows,无法启动到ubuntu
如题 昨天使用ubuntu 18没有这个问题 ============================= 12:38 1.安装完成出现重启后,一定要拔掉U盘 2.BIOS里面的security boo ...
- ABP微服务系列学习-使用Tye启动微服务
Tye是微软开源的一款开发人员工具, 能够用于简化微服务以及分布式应用程序的开发.测试以及部署过程.Tye 的首要目标是简化微服务的开发,具体方式包括仅用一行命令执行多项服务.在容器中使用依赖项目,以 ...
- exportfs命令 NFS客户端问题 FTP介绍 使用vsftpd搭建ftp
exportfs命令 • 常用选项 • -a 全部挂载或者全部卸载 • -r 重新挂载 • -u 卸载某一个目录 • -v 显示共享目录 • 以下操作在服务端上 • vim /etc/exports ...
- Linux centosVMware NFS exportfs命令、NFS客户端问题、FTP介绍、使用vsftpd搭建ftp
一.exportfs命令 常用选项 -a 全部挂载或者全部卸载 -r 重新挂载 -u 卸载某一个目录 -v 显示共享目录 以下操作在服务端上 vim /etc/exports //增加 /tmp/ 1 ...
- nfs下的exportfs命令和nfs客户端重新挂载
工作中,如果使用了nfs服务器,会遇到修改nfs服务器配置的情况,如果想重新让客户端加载上修改后的配置,但是又不能重启rpcbind服务,我们需要使用export命令了 exportfs命令 常用选项 ...
- C#代码安装Windows服务(控制台应用集成Windows服务)
最近在为一款C/S架构的科研软件开发云计算版,需要用到WCF,考虑到不需要什么界面以及稳定性,无人值守性,准备用Windows Service作为宿主,无奈Windows Service的安装太为繁复 ...
- 【亲测有效】Centos安装完成docker后启动docker报错docker: unrecognized service的两种解决方案
今天在学习Docker的时候 使用yum install docker安装完后启动不了,报错如下: [root@Sakura ~]# service docker start docker: unre ...
随机推荐
- 深入理解Nginx-模块开发与架构解析(第2版)第二章
Nginx的配置 运行中Nginx进程间的关系 # 为什么产品环境下安装master-worker方式配置同时启动多个进程? - master进程不会对用户提供服务,只用于管理真正提供服务的worke ...
- 快速上手python的坑
快速上手python的坑 这篇文章是乱写的 零 使用的软件及其版本 python 3.6 PyCharm Community Edition 2016.2.3 一 输入输出 输出 (在python 3 ...
- python基础—内置函数
1.数学运算类 (1).abs(x) 求绝对值,参数x可以是整形,也可也是复数,如果是复数,则返回复数的模 abs(-1) >> 1 (2).divmod(x,y) 返回两个数值的商和余数 ...
- gitlabrunner之executor配置拉取镜像的账户密码
docker executor $ cat config.toml ...... [[runners]] environment = ["DOCKER_AUTH_CONFIG={\" ...
- 树结构Tree
树结构 平衡顺序二叉树 通过平衡顺序二叉树查数据的时候,也就等同于二分查找的操作 Binary Search 2,3树 二三树 二三树有 node2 和 node3 两种节点,树的规则如图 2-3-4 ...
- 使用apache amoro + trino+minio搭建iceberg数据湖架构
使用apache amoro + trino+minio搭建iceberg数据湖架构 以下是基于 Apache Amoro + Trino + MinIO 搭建 Iceberg 数据湖架构的核心步骤和 ...
- 上线啦丨FlinkX1.12 Beta版正式在Github开源
万众期待的FlinkX1.12的Beta版今天正式在Github社区开源上线啦!这是FlinkX技术团队潜心打造的新版本的FlinkX,设计文档和使用文档已在社区中推送,大家可以随时下载查阅,喜欢的同 ...
- Vertx 接入Mysql数据库 (六)
项目github地址:https://github.com/fotocj007/VertxWebApi 前面的项目实现了一个httpserver,上传返回的消息都是json格式.现在开始实现mysql ...
- ET6.0运行Demo和工具使用
环境:Mac + Rider + ET6.0 一:运行Demo 1:下载ET6.0,get:https://github.com/egametang/ET 2:下载.net core 5.0.ET6. ...
- 以数据驱动PCB制造革新:盘古信息引领行业领军企业数字化范式跃迁
智能车间内,机械臂正以高精度程序设定完成钻孔作业:每台设备上方的电子看板实时跳动生产数据--订单交付周期.工艺参数偏差值.设备OEE效率指标清晰可见:物料配送AGV小车穿梭于货架间,通过RFID标签自 ...