青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

隨筆 - 298  文章 - 377  trackbacks - 0
<2016年6月>
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789

常用鏈接

留言簿(34)

隨筆分類

隨筆檔案

文章檔案

相冊

收藏夾

搜索

  •  

最新評論

閱讀排行榜

評論排行榜

mke2fs -O 64bit,has_journal,extents,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize -i 4194304 /dev/iscsi/test 

mke2fs -O 64bit,has_journal,extents,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize -i 4194304 /dev/md0

==============================================================================

根據”維基百科“和“kernel.org”:

Ext4 adds 48-bit block addressing, so it will have 1EiB of maximum file system size and 16 TiB of maximum file size

意思就是說,ext4支持最大1EiB(1EiB=1024PiB ,1PiB=1024TiB ,1TiB=1024GiB)的文件系統和16TiB的文件。

 

http://en.wikipedia.org/wiki/File_system_comparison#Limits

https://ext4.wiki.kernel.org/index.php/Ext4_Howto#Bigger_File_System_and_File_Sizes

 

今天在格式化一個20T的Raid空間時候,發生了這個錯誤:

mkfs.ext4: Size of device /dev/md0 too big to be expressed in 32 bits

using a blocksize of 4096. 

 

有人說:

雖然 ext4 的 feature list 有支援 > 16TB, 不過.... 那目前來看就只是設計目標, 因為 e2fsprogs 不支援 > 16TB.....

https://ext4.wiki.kernel.org/index.php/Ext4_Howto#Creating_ext4_filesystems

NOTE: Although very large fileystems are on ext4's feature list, current e2fsprogs currently still limits the filesystem size to 2^32 blocks (16TiB for a 4KiB block filesystem). Allowing filesystems larger than 16T is one of the very next high-priority features to complete for ext4.

 

很多人用mkfs.ext4嘗試不通之后,就改用xfs了。

而實際上,這個問題早有人解決了,解決方法起始也比較簡單。

http://blog.ronnyegner-consulting.de/2011/08/18/ext4-and-the-16-tb-limit-now-solved/

http://rritw.com/a/JAVAbiancheng/ANT/20101003/43604.html

 

原來EXT4是真的支持1EiB的文件系統的,只是mkfs無法支持大于16T的文件系統,所以只需要升級一下格式化工具即可。

關于為什么mkfs.ext4不能格式化大于16T的Ext4文件系統以及其解決方法,原文解釋如下:

To be specific: Even with the most recent e2fsprogs 1.41.14 there is no way to create file systems larger than 16 TB.

But: According to this post it should work since June:

It’s taken way too long, but I’ve finally finished integrating the 64-bit patches into e2fsprogs’s mainline repository. All of the necessary patches should now be in the master branch for e2fsprogs. The big change from before is that I replaced Val’s changes for fixing up how mke2fs picked the correct fs-type profile from mke2fs.conf with something that I think works much better and leaves the code much cleaner. With this change you need to add the following to your /etc/mke2fs.conf file if you want to enable the 64-bit feature flag automatically for a big disk:

[fs_types] ext4 = {
features = has_journal,extent,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize
auto_64-bit_support = 1 # <—- add this line
inode_size = 256
}

Alternatively you can change the features line to include the feature “64bit”; this will force the use of the 64-bit fields, and double the size of the block group descriptors, even for smaller file systems that don’t require the 64-bit support. (This was one of my problems with Val’s implementation; it forced the mke2fs.conf file to always enable the 64-bit feature flag, which would cause backwards compatibility issues.) This might be a good thing to do for debugging purposes, though, so this is an option which I left open, but the better way of doing things is to use the auto_64-bit-support flag.

 

 

所以,只需要升級下工具即可,升級方式如下:

git clone git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git

cd e2fsprogs

./configure

make && make install

 

完畢之后還是不能用mkfs.ext4來格式化,而要用“mke2fs”進行格式化,命令參考如下:

mke2fs -O 64bit,has_journal,extents,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize -i 4194304 /dev/md0

 

需要注意的是,這是一個還在開發中的工具,使用請個人承擔風險:

This are *development* tools – use at your OWN RISK

 

格式化完畢后就掛載了,來看看你的超大EXT4文件系統吧:

mount -t ext4 /dev/md0 /mnt

 

mount|grep md0

 /dev/md0 on /cache/data type ext4 (rw)

 

df -h

/dev/md0               19T  229M   18T   1% /mnt

 

最后,E文作者總結了這么幾點,Conclusion:

With the most recent e2fstools (1.42-WIP) it is possible to create ext4 file system larger than 16 TB.

If you do so remember the following:

  • the tool is still in development – use at your own risk!

  • tune the values for autocheck (after x mounts / after y days)

  • adjust the “-i” switch which defines the bytes/inode ratio; in the example above one inode is created for every 8 MB

  • the more inodes you create the longer fsck takes and the more memory it needs

  • Resizing the file system (growing / shrinking) is NOT possible at the moment


==============================================================================

mke2fs  建立Linux系統使用的ext2或ext3

必要參數

<設備名稱> 與設備對應文件,例如/dev/hd1
-b<塊大小> 指定塊大小
-c 在創建文件系統之前檢查指定的設備
-g<塊組數量> 指定一個塊組中塊的數量

選擇參數

-E<擴展參數> 為要創建的文件系統指定一些參數
-f<不連續區段大小> 不知道連續區段的大小
-F 強制執行,即使指定設備沒有被掛載或者不是塊設備
-l<文件> 從指定文件中讀取壞的塊列表
-i<字節> 指定每個inode的字節數
-j 創建使用ext3卷號的文件系統
-J<擴展參數> 為使用ext3卷號的文件系統指定一些參數
-L 設置創建的文件系統的標簽
-N 指定iniode的數量
-q 執行時不顯示任何信息
-E<擴展選項> 為要創建的文件系統指定一些可選項
-f<不連續區段大小> 指定不連接區段的大小
-F 強制執行,即使指定設備沒有被掛載或者不是塊設備
-l<文件> 從指定的文件中讀取壞的塊列表
-i<字節> 指定每個inode的字節數
-j 創建使用ext3卷號的文件系統
-J<擴展選項> 為使用ext3卷號文件系統指定一些選項
-L 設置創建的文件系統的標簽
-N 指定inode的數量
-q 執行時不顯示任何信息
-V 顯示版本信息


==============================================================================
[root@OEL63 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_oel63-lv_root
18G 11G 5.9G 65% /
tmpfs 496M 375M 121M 76% /dev/shm
/dev/sda1 485M 55M 405M 12% /boot
[root@OEL63 ~]# fdisk -l

Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 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: 0x000cd5a1

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 1959 15215616 8e Linux LVM
/dev/sda3 1959 2610 5236185 8e Linux LVM

Disk /dev/sdb: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 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: 0x3d49ddef

Device Boot Start End Blocks Id System
/dev/sdb1 1 130 1044193+ 83 Linux

Disk /dev/sdc: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 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

Disk /dev/mapper/vg_oel63-lv_root: 18.9 GB, 18857590784 bytes
255 heads, 63 sectors/track, 2292 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

Disk /dev/mapper/vg_oel63-lv_swap: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 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

二。新建分區及文件

[root@OEL63 ~]# fdisk /dev/sdc
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xcb0d4a1a.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1305, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-1305, default 1305):
Using default value 1305

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root@OEL63 ~]# mkfs -t ext4 /dev/sdc1
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
655360 inodes, 2620595 blocks
131029 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2684354560
80 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

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 27 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
三。掛載到具體目錄

[root@OEL63 ~]# mkdir /data01
[root@OEL63 ~]# mount /dev/sdc1 /data01
[root@OEL63 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_oel63-lv_root
18G 11G 5.9G 65% /
tmpfs 496M 375M 121M 76% /dev/shm
/dev/sda1 485M 55M 405M 12% /boot
/dev/sdc1 9.9G 151M 9.2G 2% /data01
[root@OEL63 ~]# vi /etc/fstab
#
# /etc/fstab
# Created by anaconda on Tue Aug 20 00:50:32 2013
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_oel63-lv_root / ext4 defaults 1 1
UUID=c7219271-21be-4f0c-bc21-0dce3d881129 /boot ext4 defaults 1 2
/dev/mapper/vg_oel63-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0

proc /proc proc defaults 0 0

/dev/sdc1 /data01 ext4 defaults 1 1
@import url(http://www.shnenglu.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);
posted on 2016-06-22 11:53 聶文龍 閱讀(5901) 評論(0)  編輯 收藏 引用 所屬分類: Linux
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            亚洲系列中文字幕| 国产日韩精品在线播放| 一区二区亚洲精品| 美女啪啪无遮挡免费久久网站| 亚洲免费黄色| 国产精品久久久久国产精品日日| 亚洲午夜免费视频| 午夜精品视频在线| 红桃视频国产精品| 亚洲美女av网站| 国产美女精品| 欧美成人精品激情在线观看| 欧美极品一区二区三区| 亚洲一区二区三区高清不卡| 午夜精品国产更新| 最新国产精品拍自在线播放| 亚洲美女福利视频网站| 国产亚洲人成网站在线观看| 欧美大学生性色视频| 欧美三级网页| 暖暖成人免费视频| 国产精品电影网站| 欧美激情片在线观看| 国产精品一区二区欧美| 欧美成人tv| 国产精品资源| 91久久精品美女高潮| 国产精品yjizz| 麻豆乱码国产一区二区三区| 国产精品成人免费精品自在线观看| 久久精品亚洲乱码伦伦中文| 欧美丰满高潮xxxx喷水动漫| 午夜视频在线观看一区二区| 欧美成年人在线观看| 欧美伊人久久大香线蕉综合69| 欧美激情综合在线| 蜜臀久久99精品久久久久久9| 国产精品www994| 亚洲精品网站在线播放gif| 一区二区在线不卡| 午夜视频在线观看一区二区| 一本色道久久综合亚洲精品不| 久久精品视频网| 午夜精品久久久久久久蜜桃app| 欧美激情国产日韩精品一区18| 久久久蜜桃一区二区人| 国产精品久久国产愉拍| 亚洲精品护士| 久久精品视频播放| 99精品热6080yy久久| 亚洲一区二区三区在线播放| 91久久线看在观草草青青| 欧美一区免费视频| 欧美一区二区三区四区夜夜大片| 欧美日韩亚洲一区二区三区在线观看| 玖玖综合伊人| 极品日韩久久| 久久精品国产综合精品| 久久久夜夜夜| 国产综合久久久久影院| 亚洲欧美成人网| 午夜伦理片一区| 国产精品私拍pans大尺度在线 | 国产乱码精品1区2区3区| 亚洲美女视频网| 夜夜爽av福利精品导航| 欧美激情 亚洲a∨综合| 最新国产成人av网站网址麻豆| 亚洲欧洲美洲综合色网| 欧美高清一区| 亚洲人成网站在线观看播放| 99这里有精品| 欧美午夜视频在线| 午夜一级在线看亚洲| 久久女同互慰一区二区三区| 亚洲大片在线| 欧美日韩精品系列| 亚洲一区日韩| 久久乐国产精品| 亚洲福利一区| 欧美日本精品| 午夜精品福利一区二区蜜股av| 久久人人97超碰人人澡爱香蕉| 一区二区亚洲精品| 欧美日韩高清免费| 午夜精品久久久久久久男人的天堂 | 媚黑女一区二区| 亚洲精品视频在线播放| 欧美日韩一区在线观看视频| 亚洲在线黄色| 欧美v亚洲v综合ⅴ国产v| 99这里只有精品| 国产亚洲女人久久久久毛片| 免费欧美在线| 亚洲一区二区三区高清不卡| 男人插女人欧美| 亚洲一区视频| 在线播放一区| 国产精品vip| 玖玖视频精品| 亚洲欧美国产精品va在线观看| 乱码第一页成人| 亚洲天堂av在线免费| 狠狠色丁香久久综合频道| 欧美日韩伦理在线| 久久深夜福利| 午夜精品免费视频| 亚洲激情欧美| 免费日韩成人| 午夜一区在线| 99av国产精品欲麻豆| 狠狠88综合久久久久综合网| 欧美色图五月天| 免费成人黄色片| 欧美一区二区三区四区夜夜大片| 亚洲国产三级在线| 另类专区欧美制服同性| 久久精品成人欧美大片古装| 一本综合久久| 亚洲精品在线看| 伊人久久综合| 国产亚洲一区在线播放| 欧美性事在线| 欧美日韩美女一区二区| 免费成人美女女| 久久精品一区二区三区不卡| 亚洲影院在线| 亚洲一区精品视频| 99视频有精品| 亚洲精品免费一二三区| 欧美激情1区| 欧美freesex交免费视频| 久久精视频免费在线久久完整在线看| 亚洲无毛电影| 亚洲视频综合| 亚洲小说欧美另类社区| 一区二区三区精品在线 | 国产日韩欧美二区| 国产精品男gay被猛男狂揉视频| 欧美午夜女人视频在线| 欧美视频一区| 国产精品成人在线| 国产精品久久久久久亚洲毛片| 欧美日韩国产区一| 欧美视频在线观看 亚洲欧| 欧美日本韩国一区| 欧美午夜剧场| 国产人成精品一区二区三| 国产视频一区三区| 激情一区二区| 亚洲激情网站免费观看| av成人激情| 亚洲在线视频免费观看| 欧美一区二区三区播放老司机| 小黄鸭精品密入口导航| 久久精品观看| 麻豆av一区二区三区久久| 欧美bbbxxxxx| 99在线|亚洲一区二区| 亚洲视频1区| 羞羞答答国产精品www一本| 久久国产乱子精品免费女| 久久视频精品在线| 欧美日韩精品免费观看视一区二区| 欧美日韩伦理在线免费| 国产视频欧美视频| 亚洲国产毛片完整版| 在线视频精品一| 久久国产欧美日韩精品| 欧美国产一区二区三区激情无套| 亚洲精品看片| 欧美一区二区三区久久精品| 免费短视频成人日韩| 国产精品高潮粉嫩av| 极品中文字幕一区| 一区二区三区高清| 久久人91精品久久久久久不卡| 最新中文字幕一区二区三区| 亚洲综合日韩在线| 欧美高清在线观看| 国产日韩欧美精品在线| 99视频精品全国免费| 久久精视频免费在线久久完整在线看| 亚洲高清一二三区| 亚洲欧美日韩综合| 欧美日韩一区二区精品| 悠悠资源网亚洲青| 亚洲自拍都市欧美小说| 欧美成人中文| 性久久久久久久| 欧美日韩高清在线| 亚洲国产成人久久综合| 欧美一区二区福利在线| 亚洲精品1区2区| 久久精品青青大伊人av| 久久这里只有精品视频首页| 亚洲精品孕妇| 欧美a级理论片| 黑人巨大精品欧美黑白配亚洲| 亚洲一区亚洲二区|