<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆 - 175  文章 - 202  trackbacks - 0
    <2011年12月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    第一個Blog,記錄哈哈的生活

    常用鏈接

    留言簿(16)

    隨筆分類

    隨筆檔案

    文章分類

    文章檔案

    收藏夾

    Java links

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    本次操作環境:

    Ubuntu Server 10.10  

    SCSI Harddisk:/dev/sda       500GB

    U盤:/dev/sdb    8GB(模擬成USB Harddisk,安裝OS)

     

    介紹2種分區表:
    MBR分區表:(MBR含義:主引導記錄)
    所支持的最大卷:2T (T; terabytes,1TB=1024GB)
    對分區的設限:最多4個主分區或3個主分區加一個擴展分區。

    GPT分區表:(GPT含義:GUID分區表)
    支持最大卷:18EB,(E:exabytes,1EB=1024TB)
    每個磁盤最多支持128個分區

     

    所以如果要大于2TB的卷或分區就必須得用GPT分區表。

     

    Linux下fdisk工具不支持GPT,得使用另一個GNU發布的強大分區工具parted。

    fdisk工具用的話,會有下面的警告信息:

    WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.

    下面是用parted工具對/dev/sda做GPT分區的過程:

    root@node01:/mnt# parted /dev/sda
    GNU Parted 2.3
    Using /dev/sda
    Welcome to GNU Parted! Type 'help' to view a list of commands.

     

    (parted) mklabel gpt                                                      
    Warning: The existing disk label on /dev/sda will be destroyed and all data on this disk
    will be lost. Do you want to continue?
    Yes/No? yes         

       

    (parted) print                                                            
    Model: DELL PERC 6/i Adapter (scsi)
    Disk /dev/sda: 500GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt

    Number  Start  End  Size  File system  Name  Flags

     

    (parted)mkpart primary 0KB 500GB
    Warning: You requested a partition from 0.00B to 500GB.                   
    The closest location we can manage is 17.4kB to 500GB.
    Is this still acceptable to you?
    Yes/No? yes                                                               
    Warning: The resulting partition is not properly aligned for best performance.
    Ignore/Cancel? Ignore                          

     

    (parted) print                                                            
    Model: DELL PERC 6/i Adapter (scsi)
    Disk /dev/sda: 500GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt

    Number  Start   End    Size   File system  Name     Flags
     1      17.4kB  500GB  500GB               primary

     

    (parted)quit                                                             
    Information: You may need to update /etc/fstab.                           

    root@node01:/#fdisk -l

    WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


    Disk /dev/sda: 499.6 GB, 499558383616 bytes
    255 heads, 63 sectors/track, 60734 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000

       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1       60735   487849983+  ee  GPT

    root@node01:/#mkfs.ext4 /dev/sda1
    mke2fs 1.41.12 (17-May-2010)
    文件系統標簽=
    操作系統:Linux
    塊大小=4096 (log=2)
    分塊大小=4096 (log=2)
    Stride=0 blocks, Stripe width=0 blocks
    30490624 inodes, 121962487 blocks
    6098124 blocks (5.00%) reserved for the super user
    第一個數據塊=0
    Maximum filesystem blocks=4294967296
    3722 block groups
    32768 blocks per group, 32768 fragments per group
    8192 inodes per group
    Superblock backups stored on blocks: 
            32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
            4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
            102400000

    正在寫入inode表: 完成                            
    Creating journal (32768 blocks): 完成
    Writing superblocks and filesystem accounting information: 完成

    This filesystem will be automatically checked every 24 mounts or
    180 days, whichever comes first.  Use tune2fs -c or -i to override.

     

    root@node01:/#mount /dev/sda1 /export/glusterfs01/


    root@node01:/# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/mapper/node01-root
                          6.8G  987M  5.5G  16% /
    none                  7.9G  208K  7.9G   1% /dev
    none                  7.9G     0  7.9G   0% /dev/shm
    none                  7.9G   32K  7.9G   1% /var/run
    none                  7.9G     0  7.9G   0% /var/lock
    /dev/sdb1             228M   21M  196M  10% /boot
    /dev/sda1             458G  198M  435G   1% /export/glusterfs01

     

    root@node01:/#vi /etc/fstab

    # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    /dev/mapper/node01-root /               ext4    errors=remount-ro 0       1
    # /boot was on /dev/sdb1 during installation
    UUID=c21707ff-ba0f-43ee-819a-8e72fa0f8500 /boot           ext2    defaults        0       2
    /dev/mapper/node01-swap_1 none            swap    sw              0       0
    /dev/sda1       /export/glusterfs01     ext4    defaults        0       2

     

    重啟就可以自動掛載了!至此完成。

    @import url(http://m.tkk7.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);
    posted on 2011-12-21 15:56 哈哈的日子 閱讀(16458) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 亚洲不卡中文字幕| 人人狠狠综合久久亚洲88| 亚洲人成网站18禁止久久影院| 久久久久久影院久久久久免费精品国产小说| 亚洲精品成人区在线观看| 春意影院午夜爽爽爽免费| 狠狠综合久久综合88亚洲| 99视频在线免费观看| 亚洲国产精品福利片在线观看| 无码少妇精品一区二区免费动态| 亚洲国产综合91精品麻豆| 亚洲香蕉免费有线视频| 亚洲五月综合网色九月色| 韩国免费三片在线视频| 理论片在线观看免费| 亚洲国产三级在线观看| 美女视频黄a视频全免费网站色窝| 久久久久无码精品亚洲日韩 | 日日操夜夜操免费视频| 美女裸体无遮挡免费视频网站| 亚洲精品国产精品乱码不卞| 99精品视频在线观看免费| 久久亚洲AV成人无码电影| 999国内精品永久免费观看| 亚洲精品又粗又大又爽A片| 亚洲国产一区视频| 永久免费不卡在线观看黄网站| 亚洲av福利无码无一区二区| AV大片在线无码永久免费| 无码一区二区三区亚洲人妻| 国外亚洲成AV人片在线观看| 久久久免费精品re6| 亚洲AV成人无码网站| 国产精品亚洲аv无码播放| 免费专区丝袜脚调教视频| 偷自拍亚洲视频在线观看| 久久亚洲中文字幕精品有坂深雪| 好爽…又高潮了免费毛片| 三级网站免费观看| 亚洲精品理论电影在线观看| 久久久久噜噜噜亚洲熟女综合|