ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Q: rootfs в /proc/mounts в новых ядрах.
@ 2011-08-30 11:26 Sergey
  2011-08-30 11:40 ` Alexey Gladkov
  0 siblings, 1 reply; 5+ messages in thread
From: Sergey @ 2011-08-30 11:26 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

Приветствую.

А что это за новое веяние ? Не то, чтобы сильно мешало, но как-то
странно видеть

$ df|grep "/$"
rootfs          4.0G  772M  3.0G  21% /
/dev/sda5       4.0G  772M  3.0G  21% /

Зачем там rootfs появляется ?

-- 
С уважением, Сергей
a_s_y@sama.ru


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [sisyphus] Q: rootfs в /proc/mounts в новых ядрах.
  2011-08-30 11:26 [sisyphus] Q: rootfs в /proc/mounts в новых ядрах Sergey
@ 2011-08-30 11:40 ` Alexey Gladkov
  2011-08-30 12:47   ` Sergey
  2011-09-24 10:01   ` Sergey
  0 siblings, 2 replies; 5+ messages in thread
From: Alexey Gladkov @ 2011-08-30 11:40 UTC (permalink / raw)
  To: sisyphus

30.08.2011 15:26, Sergey wrote:
> Приветствую.
> 
> А что это за новое веяние ? Не то, чтобы сильно мешало, но как-то
> странно видеть
> 
> $ df|grep "/$"
> rootfs          4.0G  772M  3.0G  21% /
> /dev/sda5       4.0G  772M  3.0G  21% /
> 
> Зачем там rootfs появляется ?

Это нормально.

What is rootfs?
---------------

Rootfs is a special instance of ramfs (or tmpfs, if that's enabled), which is
always present in 2.6 systems.  You can't unmount rootfs for approximately the
same reason you can't kill the init process; rather than having special code
to check for and handle an empty list, it's smaller and simpler for the kernel
to just make sure certain lists can't become empty.

Most systems just mount another filesystem over rootfs and ignore it.  The
amount of space an empty instance of ramfs takes up is tiny.

-- 
Rgrds, legion



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [sisyphus] Q: rootfs в /proc/mounts в новых ядрах.
  2011-08-30 11:40 ` Alexey Gladkov
@ 2011-08-30 12:47   ` Sergey
  2011-08-30 13:30     ` Dubrovskiy Viacheslav
  2011-09-24 10:01   ` Sergey
  1 sibling, 1 reply; 5+ messages in thread
From: Sergey @ 2011-08-30 12:47 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

On Tuesday, August 30, 2011, Alexey Gladkov wrote:

> > Зачем там rootfs появляется ?
> 
> Это нормально.
> 
> What is rootfs?
> ---------------
> 
> Rootfs is a special instance of ramfs (or tmpfs, if that's enabled),
> which is always present in 2.6 systems.

Так раньше-то не показывалось. Зачем её видеть-то ?

> Most systems just mount another filesystem over rootfs and ignore it.
> The amount of space an empty instance of ramfs takes up is tiny.

Тут смущает одинаковость цифр. ТАкое впечатление, что эта rootfs - копия.

-- 
С уважением, Сергей
a_s_y@sama.ru


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [sisyphus] Q: rootfs в /proc/mounts в новых ядрах.
  2011-08-30 12:47   ` Sergey
@ 2011-08-30 13:30     ` Dubrovskiy Viacheslav
  0 siblings, 0 replies; 5+ messages in thread
From: Dubrovskiy Viacheslav @ 2011-08-30 13:30 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

[-- Attachment #1: Type: text/plain, Size: 4936 bytes --]

30.08.2011 08:47, Sergey пишет:
> On Tuesday, August 30, 2011, Alexey Gladkov wrote:
>
>>> Зачем там rootfs появляется ?
>> Это нормально.
>>
>> What is rootfs?
>> ---------------
>>
>> Rootfs is a special instance of ramfs (or tmpfs, if that's enabled),
>> which is always present in 2.6 systems.
> Так раньше-то не показывалось. Зачем её видеть-то ?
Присоединяюсь к вопросу.
И для openvz тоже отображаются все примонтированые корни VPS и все
остальное что смонтировано внутри. Очень не удобно.
Вот например:
# mount
udevfs on /dev type tmpfs (rw,relatime,size=5120k,mode=755)
/dev/md1 on / type ext4 (rw,relatime,barrier=1,data=ordered)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
shmfs on /dev/shm type tmpfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,relatime)
/dev/mapper/main-vz on /var/lib/vz type ext4
(rw,nosuid,nodev,noexec,relatime,barrier=1,data=ordered)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
/dev/mapper/main-images on /mnt/images type ext4
(rw,nosuid,nodev,noexec,relatime,barrier=1,data=ordered)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime)
/mnt/images/cdu_1.4_core_277_A00.iso on /mnt/Dell_Server_Updates type
iso9660 (ro,relatime)
/mnt/images/Dell_DVD_ISO_-_Dell_Server_Updates_640.iso on /mnt/Dell type
iso9660 (ro,relatime)
/mnt/images/Platform6-1.1.7-20110616-server-light-x86_64-ru-in* on
/mnt/iso_light type iso9660 (ro,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/vz/private/3124 on /var/lib/vz/root/3124 type simfs
(rw,relatime,usrquota,grpquota)
proc on /var/lib/vz/root/3124/proc type proc (rw,relatime)
sysfs on /var/lib/vz/root/3124/sys type sysfs (rw,relatime)
devpts on /var/lib/vz/root/3124/dev/pts type devpts
(rw,nosuid,noexec,relatime,gid=5,mode=620)
/vz/private/3129 on /var/lib/vz/root/3129 type simfs (rw,relatime)
proc on /var/lib/vz/root/3129/proc type proc (rw,relatime)
sysfs on /var/lib/vz/root/3129/sys type sysfs (rw,relatime)
none on /var/lib/vz/root/3129/dev type tmpfs
(rw,relatime,size=262144k,nr_inodes=65536,mode=755)
none on /var/lib/vz/root/3129/dev/pts type devpts (rw,relatime,mode=600)
/vz/private/3140 on /var/lib/vz/root/3140 type simfs (rw,relatime)
proc on /var/lib/vz/root/3140/proc type proc (rw,relatime)
sysfs on /var/lib/vz/root/3140/sys type sysfs (rw,relatime)
none on /var/lib/vz/root/3140/dev type tmpfs
(rw,relatime,size=262144k,nr_inodes=65536,mode=755)
none on /var/lib/vz/root/3140/dev/pts type devpts (rw,relatime,mode=600)
/vz/private/3143 on /var/lib/vz/root/3143 type simfs (rw,relatime)
proc on /var/lib/vz/root/3143/proc type proc (rw,relatime)
sysfs on /var/lib/vz/root/3143/sys type sysfs (rw,relatime)
none on /var/lib/vz/root/3143/dev type tmpfs
(rw,relatime,size=204800k,nr_inodes=51200,mode=755)
none on /var/lib/vz/root/3143/dev/pts type devpts (rw,relatime,mode=600)
/vz/private/3102 on /var/lib/vz/root/3102 type simfs
(rw,relatime,usrquota,grpquota)
proc on /var/lib/vz/root/3102/proc type proc (rw,relatime)
sysfs on /var/lib/vz/root/3102/sys type sysfs (rw,relatime)
none on /var/lib/vz/root/3102/dev type tmpfs (rw,relatime,mode=755)
none on /var/lib/vz/root/3102/dev/pts type devpts (rw,relatime,mode=600)
/mnt/images/RFRemix-15-i386-netinst.iso on /mnt/russianfedora type
iso9660 (ro,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/vz/private/3146 on /var/lib/vz/root/3146 type simfs
(rw,relatime,usrquota,grpquota)
proc on /var/lib/vz/root/3146/proc type proc (rw,relatime)
sysfs on /var/lib/vz/root/3146/sys type sysfs (rw,relatime)
none on /var/lib/vz/root/3146/dev type tmpfs
(rw,relatime,size=327680k,nr_inodes=81920,mode=755)
none on /var/lib/vz/root/3146/dev/pts type devpts (rw,relatime,mode=600)
/vz/private/3150 on /var/lib/vz/root/3150 type simfs (rw,relatime)
proc on /var/lib/vz/root/3150/proc type proc (rw,relatime)
sysfs on /var/lib/vz/root/3150/sys type sysfs (rw,relatime)
none on /var/lib/vz/root/3150/dev type tmpfs
(rw,relatime,size=33392k,nr_inodes=8348,mode=755)
none on /var/lib/vz/root/3150/dev/pts type devpts (rw,relatime,mode=600)
/dev/mapper/main-vz on /var_snapshot type ext4
(ro,nosuid,nodev,noexec,relatime,barrier=1,data=ordered)
/vz/private/3103 on /var/lib/vz/root/3103 type simfs
(rw,relatime,usrquota,grpquota)
sysfs on /var/lib/vz/root/3103/sys type sysfs (rw,relatime)
/proc on /var/lib/vz/root/3103/proc type proc (rw,relatime)
none on /var/lib/vz/root/3103/dev type tmpfs (rw,relatime,mode=755)
none on /var/lib/vz/root/3103/dev/pts type devpts (rw,relatime,mode=600)

-- 
WBR,
Dubrovskiy Viacheslav



[-- Attachment #2: Криптографическая подпись S/MIME --]
[-- Type: application/pkcs7-signature, Size: 4903 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [sisyphus] Q: rootfs в /proc/mounts в новых ядрах.
  2011-08-30 11:40 ` Alexey Gladkov
  2011-08-30 12:47   ` Sergey
@ 2011-09-24 10:01   ` Sergey
  1 sibling, 0 replies; 5+ messages in thread
From: Sergey @ 2011-09-24 10:01 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

On Tuesday 30 August 2011, Alexey Gladkov wrote:

> > $ df|grep "/$"
> > rootfs          4.0G  772M  3.0G  21% /
> > /dev/sda5       4.0G  772M  3.0G  21% /
> > 
> > Зачем там rootfs появляется ?
> 
> Это нормально.
 
А вот другой вариант:

Filesystem                                              Size  Used Avail Use% Mounted on
/dev/disk/by-uuid/c257f469-e7ee-4afe-a46a-64bc823453a2  3.9G  549M  3.2G  15% /
udevfs                                                  5.0M  100K  5.0M   2% /dev
shmfs                                                  1012M     0 1012M   0% /dev/shm
tmpfs                                                  1012M     0 1012M   0% /tmp
/dev/sda3                                               4.0G  1.8G  2.0G  48% /home
/dev/sda5                                               3.9G  456M  3.2G  13% /usr
/dev/sda6                                               3.9G  514M  3.2G  14% /var
/dev/sda7                                               116G   45G   65G  41% /var/lib/vz

Почему-то тут / со ссылкой на disk/by-uuid. Это, вообще, кто 
формирует ? Потому как, похоже, не ядро: кажется, я это на
данном сервере не видел, пока на нём бранч 5.1 был. А это ядро
от 6.0 на нём давно. Попробую при очередном обновлении чего-нибудь
винимание обратить...

-- 
С уважением, Сергей
a_s_y@sama.ru


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-09-24 10:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-30 11:26 [sisyphus] Q: rootfs в /proc/mounts в новых ядрах Sergey
2011-08-30 11:40 ` Alexey Gladkov
2011-08-30 12:47   ` Sergey
2011-08-30 13:30     ` Dubrovskiy Viacheslav
2011-09-24 10:01   ` Sergey

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git