Friday, 2 July 2010

Каким образом OpenVZ монтирует разделы VPS что они не видны в mount?

Понятия не имею :) Зато они видны так:


cat /proc/mounts | head -n 50
/dev/root / ext3 rw,noatime,data=ordered 0 0
/dev /dev tmpfs rw 0 0
/proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
/proc/bus/usb /proc/bus/usb usbfs rw 0 0
none /dev/pts devpts rw 0 0
/dev/md1 /boot ext3 rw,data=ordered 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/vz/private/2702 /vz/root/2702 simfs rw,noatime 0 0
tmpfs /vz/root/2702/lib/init/rw tmpfs rw,nosuid 0 0
proc /vz/root/2702/proc proc rw,nosuid,nodev,noexec 0 0
sysfs /vz/root/2702/sys sysfs rw,nosuid,nodev,noexec 0 0
tmpfs /vz/root/2702/dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /vz/root/2702/dev/pts devpts rw,nosuid,noexec 0 0
/vz/private/3300 /vz/root/3300 simfs rw,noatime 0 0
tmpfs /vz/root/3300/lib/init/rw tmpfs rw,nosuid 0 0
proc /vz/root/3300/proc proc rw,nosuid,nodev,noexec 0 0
sysfs /vz/root/3300/sys sysfs rw,nosuid,nodev,noexec 0 0
tmpfs /vz/root/3300/dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /vz/root/3300/dev/pts devpts rw,nosuid,noexec 0 0
/vz/private/2728 /vz/root/2728 simfs rw,noatime 0 0
/proc /vz/root/2728/proc proc rw 0 0
/sys /vz/root/2728/sys sysfs rw 0 0
none /vz/root/2728/dev tmpfs rw 0 0
none /vz/root/2728/dev/pts devpts rw 0 0
none /vz/root/2728/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/vz/private/2738 /vz/root/2738 simfs rw,noatime 0 0
tmpfs /vz/root/2738/lib/init/rw tmpfs rw,nosuid 0 0
proc /vz/root/2738/proc proc rw,nosuid,nodev,noexec 0 0
sysfs /vz/root/2738/sys sysfs rw,nosuid,nodev,noexec 0 0
tmpfs /vz/root/2738/dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /vz/root/2738/dev/pts devpts rw,nosuid,noexec 0 0
/vz/private/2737 /vz/root/2737 simfs rw,noatime 0 0
tmpfs /vz/root/2737/lib/init/rw tmpfs rw,nosuid 0 0
proc /vz/root/2737/proc proc rw,nosuid,nodev,noexec 0 0
sysfs /vz/root/2737/sys sysfs rw,nosuid,nodev,noexec 0 0
tmpfs /vz/root/2737/dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /vz/root/2737/dev/pts devpts rw,nosuid,noexec 0 0
/vz/private/2713 /vz/root/2713 simfs rw,noatime 0 0
tmpfs /vz/root/2713/lib/init/rw tmpfs rw,nosuid 0 0
proc /vz/root/2713/proc proc rw,nosuid,nodev,noexec 0 0
sysfs /vz/root/2713/sys sysfs rw,nosuid,nodev,noexec 0 0
varrun /vz/root/2713/var/run tmpfs rw,nosuid 0 0
varlock /vz/root/2713/var/lock tmpfs rw,nosuid,nodev,noexec 0 0
udev /vz/root/2713/dev tmpfs rw 0 0
tmpfs /vz/root/2713/dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /vz/root/2713/dev/pts devpts rw,nosuid,noexec 0 0
/vz/private/2707 /vz/root/2707 simfs rw,noatime 0 0
tmpfs /vz/root/2707/lib/init/rw tmpfs rw,nosuid 0 0
proc /vz/root/2707/proc proc rw,nosuid,nodev,noexec 0 0

2 comments:

  1. -n
    Mount without writing in /etc/mtab. This is necessary for example when /etc is on a read-only file system

    ReplyDelete
  2. Прикольно, не знал, спасибо.

    ReplyDelete

Note: only a member of this blog may post a comment.