Дисковые квоты

У OVH был взят выделенный сервер и на него установлен ISPmanager Lite 5, в «Возможности» попытались установить quote (Дисковые квоты), чтобы выделять пользователям четкое место на диске, но установка не удалась, получили ошибку:
Cannot stat() mounted device /dev/root: No such file or directory

apt-get install ispmanager-pkg-quota
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  ispmanager-pkg-quota
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3,544 B of archives.
After this operation, 48.1 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  ispmanager-pkg-quota
Install these packages without verification? [y/N] y
(Reading database ... 39449 files and directories currently installed.)
Preparing to unpack .../ispmanager-pkg-quota_5.39.0-jessie2_all.deb ...
quotaoff: Cannot stat() mounted device /dev/root: No such file or directory
quotaoff: Mountpoint (or device) / not found or has no quota enabled.
quotacheck: Cannot stat() mounted device /dev/root: No such file or directory
quotacheck: Mountpoint (or device) / not found or has no quota enabled.
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.
Can not check quota
dpkg: error processing archive /var/cache/apt/archives/ispmanager-pkg-quota_5.39.0-jessie2_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/ispmanager-pkg-quota_5.39.0-jessie2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Начали разбираться, mount показал следующее
# mount
/dev/md1 on / type ext4 (rw,relatime,discard,quota,usrquota,grpquota,errors=remount-ro,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=16406992k,nr_inodes=4101748,mode=755)
sysfs on /sys type sysfs (rw,relatime)
proc on /proc type proc (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)


и еще посмотрим есть ли он:
# ls -la /dev/root
ls: cannot access /dev/root: No such file or directory


/dev/root тут не видно, но есть /dev/md1 поэтому решение данной проблемы было таким:
ln -s /dev/md1 /dev/root

0 комментариев

Оставить комментарий