血泪教训呀? netbsd pkgsrc 磁盘需求

NetBSD的安装、升级、更新等日常问题请在这里讨论。

版主: lionux

回复
wkx9dragon
锌 Zn
帖子: 493
注册时间: 2010-02-02 18:00

血泪教训呀? netbsd pkgsrc 磁盘需求

帖子 wkx9dragon » 2010-03-19 22:10

血泪教训呀?
netbsd pkgsrc 磁盘需求,这是官方网站的建议。默认状态下,
/usr/pkgsrc/disktfiles 10g
/usr/pkg 10g
/usr/pkgsrc 400m (我的netbsd 5。02 是 600多m)
/var/db 5g
/var/log 5g
/var 5g

/tmp 5g

算算吧,如果默认就一个分区 / 怎么也得 40个以上,不然到时候哭都来不及。NetBSD的disklabel 超难使。

正常自己分区,一般都是 /,/usr,/var, /home, /swap, /tmp
我就是不注意 /usr 以为10g 就够了,完全不是那么回事。 算算。
/usr 如果不挂接的话,25g给pkgsrc ,(我推荐40g)
/var 如果不挂接的华,15g (如果工作机,长期不动的话,单独挂接/var/log的比较好,因为数据库等软件可是吃log很多的。)
/tmp 内存小于4g的话,建一个分区吧,大的话全都挂在内存里。

7.2. Requirements of a bulk build

A complete bulk build requires lots of disk space. Some of the disk space can be read-only, some other must be writable. Some can be on remote filesystems (such as NFS) and some should be local. Some can be temporary filesystems, others must survive a sudden reboot.

*

10 GB for the distfiles (read-write, remote, temporary)
*

10 GB for the binary packages (read-write, remote, permanent)
*

400 MB for the pkgsrc tree (read-only, remote, permanent)
*

5 GB for LOCALBASE (read-write, local, temporary for pbulk, permanent for old-bulk)
*

5 GB for the log files (read-write, remote, permanent)
*

5 GB for temporary files (read-write, local, temporary)

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

帖子 leo » 2010-03-19 23:19

一个/usr搞这么大?NETBSD要干什么?
在OpenBSD里/var/log分1G能使上一年多。
我的/, swap, /tmp 全是500M。

头像
lionux
锌 Zn
帖子: 457
注册时间: 2010-02-04 11:09

帖子 lionux » 2010-03-19 23:23

usr我分了10g够用

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

帖子 leo » 2010-03-19 23:31

呵呵,你们两个人是换位折腾。

wkx9dragon
锌 Zn
帖子: 493
注册时间: 2010-02-02 18:00

帖子 wkx9dragon » 2010-03-20 9:46

leo 写了:一个/usr搞这么大?NETBSD要干什么?
在OpenBSD里/var/log分1G能使上一年多。
我的/, swap, /tmp 全是500M。
主要是两件事,一个是pkgsrc 如果编译的话真的很占地方的,里面的小文件超多,今天/usr/pkgsrc 1g 告诉我inode 又不够了。 另一个 /usr/sys 里面小文件也是超多,也容易inode了。 ffs 文件格式是该升升级了,分区时固定inode 很麻烦的哦,一般谁去算它呀。

OpenBSD 一般每人自己编译pkgsrc,所以没这问题(全cvs哦)。它的/usr/src 比较小,因为NetBSD的交叉编译所以/usr/src 很大,小文件超多。

/var/log 我的感觉时要足够的大,因为apache,postgresql,安全记录呀都在里面,时间一长就超大了。我记得在网上又人问,8g的syslog 安全记录,怎么编程分析,吓人吧,也不知道那人拿来的那么大记录,我怀疑时某个国企。公开的秘密,国企好多上面很不重视计算机安全哦。都忙二生活去了。

头像
lionux
锌 Zn
帖子: 457
注册时间: 2010-02-04 11:09

帖子 lionux » 2010-03-25 21:47

wkx9dragon 写了:血泪教训呀?
netbsd pkgsrc 磁盘需求,这是官方网站的建议。默认状态下,
/usr/pkgsrc/disktfiles 10g
/usr/pkg 10g
/usr/pkgsrc 400m (我的netbsd 5。02 是 600多m)
/var/db 5g
/var/log 5g
/var 5g

/tmp 5g

算算吧,如果默认就一个分区 / 怎么也得 40个以上,不然到时候哭都来不及。NetBSD的disklabel 超难使。

正常自己分区,一般都是 /,/usr,/var, /home, /swap, /tmp
我就是不注意 /usr 以为10g 就够了,完全不是那么回事。 算算。
/usr 如果不挂接的话,25g给pkgsrc ,(我推荐40g)
/var 如果不挂接的华,15g (如果工作机,长期不动的话,单独挂接/var/log的比较好,因为数据库等软件可是吃log很多的。)
/tmp 内存小于4g的话,建一个分区吧,大的话全都挂在内存里。

7.2. Requirements of a bulk build

A complete bulk build requires lots of disk space. Some of the disk space can be read-only, some other must be writable. Some can be on remote filesystems (such as NFS) and some should be local. Some can be temporary filesystems, others must survive a sudden reboot.

*

10 GB for the distfiles (read-write, remote, temporary)
*

10 GB for the binary packages (read-write, remote, permanent)
*

400 MB for the pkgsrc tree (read-only, remote, permanent)
*

5 GB for LOCALBASE (read-write, local, temporary for pbulk, permanent for old-bulk)
*

5 GB for the log files (read-write, remote, permanent)
*

5 GB for temporary files (read-write, local, temporary)
官方说的是为每个pkgsrc创建packages需要的nfs空间,普通使用usr目录10G完全够用。

wkx9dragon
锌 Zn
帖子: 493
注册时间: 2010-02-02 18:00

帖子 wkx9dragon » 2010-03-26 7:51

知道错在那里了,pkgsrc ,和 src 目录,别按默认的位置装,编译的时候调整参数,跟改目录,就没有问题了,用完了把临时文件一删,就可以了。

回复

在线用户

正浏览此版面之用户: 没有注册用户 和 32 访客