LinuxÎļþϵͳ֮Îļþ¡¢·ÖÇø´óСÏÞÖÆ
LinuxÎļþϵͳ֮Îļþ¡¢·ÖÇø´óСÏÞÖÆ
ÒÔÏÂΪºìñext3ÎļþϵͳËùÖ§³ÖµÄmax file sizeºÍmax filesystem size£º
¶ÔÎļþϵͳ
µÄÏÞÖÆÈçÏ£º
ext3 Îļþϵͳ£¬ºìñÆóÒµ°æ Linux 3 µÄÎļþϵͳ×î´óÊÇ 2TB£¨ÒÑÑéÖ¤£©£¬ºìñÆóÒµ°æ Linux 4 ºÍ 5 Ìá¸ßµ½ÁË
8TB£¨ÒÑÑéÖ¤£©£¬ºìñÆóÒµ°æ Linux 5 Ö§³ÖÎļþϵͳµÄÀíÂÛÖµÊÇ 16TB¡£
GFSÎļþϵͳ£¬ºìñÆóÒµ°æ Linux 3 µÄÎļþϵͳ×î´óÊÇ 2TB£¬ºìñÆóÒµ°æ Linux 4 ºÍ 5 Ìá¸ßµ½ÁË
16TB£¨ÒÑÑéÖ¤£©£¬ºìñÆóÒµ°æ Linux 4 ºÍ 5 Ö§³ÖÎļþϵͳµÄÀíÂÛÖµÊÇ 8EB¡£
¾ßÌåµÄ×î´óÖ§³ÖÎļþ´óСºÍÎļþϵͳ´óСÓÉblock size¾ö¶¨£º
¸÷ÖÖÎļþϵͳµÄÏÞÖÆ£º
NTFS£¨Windows£©£ºÖ§³Ö×î´ó·ÖÇø2TB£¬×î´óÎļþ2TB
FAT16£¨Windows£©£ºÖ§³Ö×î´ó·ÖÇø2GB£¬×î´óÎļþ2GB
FAT32£¨Windows£©£ºÖ§³Ö×î´ó·ÖÇø128GB(Èç¹ûʹÓôÅÅ̹ÜÀí½øÐзÖÇø£¬×î´óΪ
32GB)£¬×î´óÎļþ4GB
Ext2
×î´óÎļþ´óС: 1TB
×î´óÎļþ¼«ÏÞ: ½öÊÜÎļþϵͳ´óСÏÞÖÆ
×î´ó·ÖÇø/Îļþϵͳ´óС: 4TB
×î´óÎļþÃû³¤¶È: 255 ×Ö·û
ȱʡ×îС/×î´ó¿é´óС: 1024/4096 ×Ö½Ú
ȱʡinode·ÖÅä: ÿ4096×Ö½ÚΪ1
ÔÚÇ¿ÖÆFS¼ì²éÇ°µÄ×î´ó×°ÔØ: 20(¿ÉÅäÖÃ)
Ext3
×î´óÎļþ´óС: 2TB
×î´óÎļþ¼«ÏÞ: ½öÊÜÎļþϵͳ´óСÏÞÖÆ
×î´ó·ÖÇø/Îļþϵͳ´óС: 4TB
×î´óÎļþÃû³¤¶È: 255 ×Ö·û
ȱʡ×îС/×î´ó¿é´óС: 1024/4096 ×Ö½Ú
ȱʡinode·ÖÅä: ÿ4096×Ö½ÚΪ1
ÔÚÇ¿ÖÆFS¼ì²éÇ°µÄ×î´ó×°ÔØ: 20(¿ÉÅäÖÃ)
ReiserFS
×î´óÎļþ´óС: 1TB
×î´óÎļþ¼«ÏÞ: 32kĿ¼,42ÒÚÎļþ
×î´ó·ÖÇø/Îļþϵͳ´óС: 4TB
×î´óÎļþÃû³¤¶È: 255 ×Ö·û
JFS
×îСÎļþϵͳ´óС 16 MB
×î´óÎļþ´óС: ÊÜÌåϵ½á¹¹ÏÞÖÆ
×î´óÎļþ¼«ÏÞ: ÊÜÎļþϵͳ´óСÏÞÖÆ
ȱʡ×îС/×î´ó¿é´óС: 1024/4096 ×Ö½Ú
ȱʡinode·ÖÅä: ¶¯Ì¬
²Î¿¼Îĵµ£º
Red Hat Enterprize Linux Server
Version comparison£º
http://www.redhat.com/rhel/compare/
Ext3 Filesystem£º
http://en.wikipedia.org/wiki/Ext3
תÔØ×Ô£ºhttp://blog.chinaunix.net/u2/61187/showart_1889793.html
Ïà¹ØÎĵµ£º
¡¡¡¡REDHAT
´´½¨ÓÚ1993Ä꣬ÊÇ
Ä¿ÊÀ½çÉÏ×î×ÊÉîµÄLinuxºÍ¿ª·ÅÔ´´úÂëÌṩÉÌ£¬Í¬Ê±Ò²ÊÇ×î»ñÈϿɵÄLinux
Æ·ÅÆ¡£»ùÓÚ¿ª·ÅÔ´´úÂëģʽ£¬ºìñΪȫÇòÆóÒµÌṩרҵ¼¼ÊõºÍ·þÎñ¡£ºìñµÄ½â¾ö
·½°¸°üÀ¨ºìñÆóÒµLinux²Ù×÷ƽ̨£¬ÒÔ¼°ÆäËûÄÚÈݹ㷺µÄ·þÎñ£¬Èç:×Éѯ£¬24X7¼¼ÊõÖ§³ÖºÍºìñÍøÂç(RHN)¡£ºìñÒÔ¶©ÔĵÄÉÌҵģʽÏòÓû§Ìṩ²»¼ä¶Ï
µ ......
#include <unistd.h>
int daemon(int nochdir,int noclose)
ÔÚ´´½¨¾«Áé½ø³ÌµÄʱºò,ÍùÍùÐèÒª½«¾«Áé½ø³ÌµÄ¹¤×÷Ŀ¼ÐÞ¸ÄΪ"/"¸ùĿ¼
²¢ÇÒ½«±ê×¼ÊäÈë,Êä³öºÍ´íÎóÊä³öÖض¨Ïòµ½/dev/null
daemonµÄ×÷ÓþÍÊǵ±²ÎÊýnochdirΪ0ʱ,½«¸ùĿ¼ÐÞ¸ÄΪ¹¤×÷Ŀ¼
nocloseΪ0ʱ,×öÊäÈë,Êä³öÒÔ¼°´íÎóÊä³öÖض¨Ïòµ½/dev/null
Ö´ ......
±¾ÎÄÍøÖ·:http://bbs.bitscn.com/72875 ¸´ÖÆ
1. Linux ½Å±¾±àд»ù´¡
1.1 Óï·¨»ù±¾½éÉÜ
1.1.1 ¿ªÍ·
³ÌÐò±ØÐëÒÔÏÂÃæµÄÐпªÊ¼£¨±ØÐë·ÅÔÚÎļþµÄµÚÒ»ÐУ©£º
#!/bin/sh
¡¡ ·ûºÅ#!ÓÃÀ´¸æËßϵͳËüºóÃæµÄ²ÎÊýÊÇÓÃÀ´Ö´ÐÐ ......
Ìî¿Õ²¿·Ö
1
ÔÚlinux
ϵͳÖУ¬ÒÔÎļþ
µÄ·½Ê½·ÃÎÊÉ豸¡£
2 linux
ÄÚºËÒýµ¼Ê±£¬Í¨¹ý/etc/fstab
Îļþ¶ÁÈ¡Òª¼ÓÔصÄÎļþϵͳ
3 linux
ÎļþϵͳÖпÉÒÔÓÐÁ½ÖÖ·½Ê½±êʶÎļþÀàÐÍ£¬µÚÒ» ÖÖʹÓÃÑÕÉ«
À´±êʶ£¬°×É«±íʾһ°ãÐÔµÄÎļþ£¬ÈçÎı¾Îļþ¡¢ÅäÖÃÎļþ¡¢Ô´´úÂëÎļþµÈ£»Ç³ À¶É«µÄ±íʾÁ¬½ÓÎļþ£¬Ö»ÒªÊÇʹÓÃln
ÃüÁÁ¢µÄÎ ......
´´½¨Ð½ø³Ì£ºforkº¯Êý
1.1.1. forkº¯Êý¸Éʲô£¿
#include <sys/types.h>
#include <unistd.h>
pid_t fork(void);
‘fork()’º¯ÊýÓÃÓÚ´ÓÒÑ´æÔÚ½ø³ÌÖд´½¨Ò»¸öнø³Ì¡£Ð½ø³Ì³ÆΪ×Ó½ ......