ºìÁªLinuxÃÅ»§
Linux°ïÖú

´¦ÀífreebsdÏ´óÔ¼2TµÄÓ²Å̿ռä

·¢²¼Ê±¼ä:2008-08-20 00:05:25À´Ô´:ºìÁª×÷Õß:Hiteure
Õ⼸Ìì´¦Àíһ̨ÅÌÕó£¨750Gx16¿éÓ²ÅÌ£©£¬×öÁË2¸öRAID5,ÿ¸öÓÐ4.2T×óÓҵĿռ䡣ÐèÒª¹ÒÔØµ½Ò»Ì¨serverÉÏ£¬serverµÄϵͳÊÇfreebsd6.2¡£
ÎÒ½øÐÐÈçϲÙ×÷£º
gpt create -f /dev/da2
gpt create -f /dev/da3
gpt show -l /dev/da2
²é³ö·ÖÇøµÄ¿é´óСÊÇ£º8606187453
×¼±¸·ÖËÄÆ¬£¬ËùÒÔÿƬÊÇ£º2151546863
È»ºóÖ´ÐÐÏÂÃæÃüÁ-sÊÇÖ¸¶¨·ÖÇø´óС£º
gpt add -s 2151546863 -t ufs /dev/da2 £¨½«²úÉú/dev/da2p1£©
gpt add -s 2151546863 -t ufs /dev/da2 (½«²úÉú/dev/da2p2)
gpt add -s 2151546863 -t ufs /dev/da2 (½«²úÉú/dev/da2p3)
gpt add -t ufs /dev/da2 (°ÑÊ£ÓàµÄÈ«×öΪ×îºóÒ»¸ö·ÖÇø)
ÏÂÃæÖØÐ¸ñʽ»¯Îļþϵͳ£º
newfs -m 0 /dev/da2p1
newfs -m 0 /dev/da2p2
newfs -m 0 /dev/da2p3
newfs -m 0 /dev/da2p4
¹ÒÔØ·ÖÇø£º
mount /dev/da2p1 /mnt/da2p1
mount /dev/da2p2 /mnt/da2p2
mount /dev/da2p3 /mnt/da2p3
mount /dev/da2p4 /mnt/da2p4
²é¿´ÊÇ·ñ¹ÒÔØÕýÈ·£º
df -h
/dev/da2p1 994G 4.0K 994G 0% /mnt/da2s1d
/dev/da2p2 994G 4.0K 994G 0% /mnt/da2s1e
/dev/da2p3 994G 4.0K 994G 0% /mnt/da2s1f
/dev/da2p4 994G 4.0K 994G 0% /mnt/da2s1g
/dev/da3p1 994G 4.0K 994G 0% /mnt/da3s1d
/dev/da3p2 994G 4.0K 994G 0% /mnt/da3s1e
/dev/da3p3 994G 4.0K 994G 0% /mnt/da3s1f
/dev/da3p4 994G 4.0K 994G 0% /mnt/da3s1g
Acronym for GUID Partition Table
GPT was introduced for iA64 systems, to get around a fixed 32 bit issue (2 to the power of 32 is 4 billion times a 512 byte block equals 2 Terabytes) in the PC-BIOS Partition table. Partitions larger than 2 TB require using a GPT disklabel, which differs from the PC-BIOS Partition table in a number of ways:
* Is easily extensible.
* Can contain up to 128 primary partitions, as opposed to 4, so there¡¯s no need for extended partitions.
* Allows Partitions larger than 2 TB.
* Identifies Partitions with a GUID so you can reference that Partition even if disks are moved around.
* Identifies Partition type with a GUID, thus avoiding the type conflicts that plague the PC-BIOS Partition table format.
* Provides a 46(?) character UTF-16 partition label to identify Partitions.
* Has a "fake" MBR for backwards compatibility.
* Includes a CRC32 to detect corrupt Partition tables.
* Stores a backup Partition table at the end of the disk.
Most partitioning tools under Linux will fail to do anything sensible with a > 2 TB Partition. As of this writing, parted(8) is the only one that understands them and will let you set the GPT label on the disk.
There is a lot of information stating that you cannot boot off a GPT enabled device. Most of the claims imply that the fault is with LILO or GRUB not understanding GPT devices. We¡¯ve not tested this, but GPT and traditional MBRs will coexist.
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ