血泪教训呀? netbsd pkgsrc 磁盘需求
发表于 : 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)
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)