当前位置:论坛首页 > Linux面板 > 求助

自动挂载磁盘出问题了,,,管理员救命啊

发表在 Linux面板2017-10-19 13:48 [复制链接] 7 3684

使用了良哥那个自动挂载磁盘的就这样了,控制面板也进不去了,也没法重启,网站也进不去
  1. Do you want to try to mount the data disk to the /www directory?(y/n): y
  2. Usage: grep [OPTION]... PATTERN [FILE]...
  3. Try 'grep --help' for more information.
  4. auto_disk.sh: line 235: [: : integer expression expected
  5. Stopping Bt-Tasks... done
  6. Stopping Bt-Panel... done
  7. stop apache...  done
  8. Shutting down MySQL.... SUCCESS!
  9. Gracefully shutting down php-fpm . done
  10. Gracefully shutting down php-fpm . done
  11. move disk...
  12. 迁移数据中...
  13. cp: target ‘/www’ is not a directory
  14. /etc/init.d/bt: line 15: cd: /www/server/panel: No such file or directory
  15. Starting Bt-Panel... cat: data/port.pl: No such file or directory
  16. failed
  17. ------------------------------------------------------
  18. python: can't open file 'main.pyc': [Errno 2] No such file or directory
  19. ------------------------------------------------------
  20. Error: BT-Panel service startup failed.
  21. start apache... /etc/init.d/httpd: line 45: /www/server/apache/bin/httpd: No such file or directory
  22. failed
  23. /etc/init.d/mysqld: line 239: my_print_defaults: command not found
  24. /etc/init.d/mysqld: line 259: cd: /www/server/mysql: No such file or directory
  25. Starting MySQL ERROR! Couldn't find MySQL server (/www/server/mysql/bin/mysqld_safe)
  26. Starting php-fpm /etc/init.d/php-fpm-56: line 57: /www/server/php/56/sbin/php-fpm: No such file or directory
  27. failed
  28. Starting php-fpm /etc/init.d/php-fpm-70: line 57: /www/server/php/70/sbin/php-fpm: No such file or directory
  29. failed
  30. auto_disk.sh: line 218: /www/server/panel/data/502Task.pl: No such file or directory
  31. done
  32. 迁移完成
  33. [root@VM_27_11_centos ~]#
复制代码


使用道具 举报 只看该作者 回复
发表于 2017-10-19 13:54:28 | 显示全部楼层
来人救命啊,,,
使用道具 举报 回复 支持 反对
发表于 2017-10-19 14:29:05 | 显示全部楼层
论坛私信我ssh信息 私信完回复一下
使用道具 举报 回复 支持 反对
发表于 2017-10-19 14:32:46 | 显示全部楼层
河妖 发表于 2017-10-19 14:29
论坛私信我ssh信息 私信完回复一下

不用了,我已经解决了,吧备份的文件夹改成www就好了,挂载磁盘下次再弄吧
使用道具 举报 回复 支持 反对
发表于 2017-10-19 14:38:14 | 显示全部楼层
那你输入fdisk -l这条命令看看
使用道具 举报 回复 支持 反对
发表于 2017-10-19 15:08:47 | 显示全部楼层
河妖 发表于 2017-10-19 14:38
那你输入fdisk -l这条命令看看

我才发现原来我只有一个磁盘
  1. Disk /dev/vda: 21.5 GB, 21474836480 bytes, 41943040 sectors
  2. Units = sectors of 1 * 512 = 512 bytes
  3. Sector size (logical/physical): 512 bytes / 512 bytes
  4. I/O size (minimum/optimal): 512 bytes / 512 bytes
  5. Disk label type: dos
  6. Disk identifier: 0x000c7a75

  7.    Device Boot      Start         End      Blocks   Id  System
  8. /dev/vda1   *        2048    41943039    20970496   83  Linux
复制代码
使用道具 举报 回复 支持 反对
发表于 2017-10-19 15:14:00 | 显示全部楼层
.。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
使用道具 举报 回复
发表于 2017-10-19 15:15:50 | 显示全部楼层
河妖 发表于 2017-10-19 15:14
.。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 ...

抱歉了,我记错了服务器了,不过正好也说明这个代码有bug,应该先检测是否有第二块磁盘
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表