Chinaunix首页 | 论坛 | 博客
  • 博客访问: 801935
  • 博文数量: 162
  • 博客积分: 5308
  • 博客等级: 大校
  • 技术积分: 2152
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-15 19:09
个人简介

DevOps让系统管理更轻松。

文章分类

全部博文(162)

文章存档

2014年(28)

2012年(10)

2011年(6)

2009年(60)

2008年(58)

我的朋友

分类: LINUX

2011-05-06 12:50:16

测试结果,RED HAT 4 AS UP DATA 7可以支持超过2T的文件系统分区,使用GPT+EXT3文件系统,使用parted命令进行分区,标签设置成gpt 。

 

ESX 4.0/4.1 里支持最大的LUN的大小是2TB-512B,对于超过2TB的LUN,则自动除于2,取余数,因此3TB,实际得到的是1点几个TB。

这个2TB的限制是由于磁盘分区格式MBR限制的,要想支持2TB+,则必须选用其他磁盘分区格式,如GPT。


下面是linux下解决过程:
在安装时,暂时不要划分大于2TB的文件分区,待安装完LINUX系统后,再参考以下操作步骤:


[root@db]# fdisk -l
Disk /dev/sda: 35.8 GB, 35862976512 bytes
255 heads, 63 sectors/track, 4360 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id System
/dev/sda1   *           1          13      104391   83 Linux
/dev/sda2              14         144     1052257+ 82 Linux swap
/dev/sda3             145        4360    33865020   83 Linux
Disk /dev/sdb: 37812 MB, 39648755712 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 77438976 bytes
Disk /dev/sdb doesn't contain a valid partition table


[root@db]# parted /dev/sdb
GNU Parted 1.7.2.6
Copyright (C) 1998 - 2007 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
使用 /dev/sdb


(parted) mklabel gpt
(parted) print
/dev/sdb 的磁盘几何结构:0.000-37812.000 兆字节
磁盘标签类型:gpt


Minor    起始点        终止点 文件系统    名称                  标志
(parted) mkpart primary 0 37812


(parted) print
/dev/sdb 的磁盘几何结构:0.000-37812.000 兆字节
磁盘标签类型:gpt


Minor    起始点        终止点 文件系统    名称                  标志
1          0.017   37812.97
(parted) quit
信息: 如果必要,不要忘记更新 /etc/fstab。


[root@as4 ~]# fdisk -l
Disk /dev/sda: 35.8 GB, 35862976512 bytes
255 heads, 63 sectors/track, 4360 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id System
/dev/sda1   *           1          13      104391   83 Linux
/dev/sda2              14         144     1052257+ 82 Linux swap
/dev/sda3             145        4360    33865020   83 Linux
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdb: 37812 MB, 39648755712 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id System
/dev/sdb1               1         262     8225280+ ee EFI GPT
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(0, 0, 1) logical=(0, 0, 2)
Partition 1 has different physical/logical endings:
     phys=(1023, 254, 63) logical=(261, 21, 16)


[root@as4 ~]# mkfs.ext3 /dev/sdb1
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
262144 inodes, 524279 blocks
26213 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=536870912
16 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 28 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

[root@db]# mount /dev/sdb1 /mnt
[root@db]# df -h
Filesystem            容量 已用 可用 已用% 挂载点
/dev/sda3              32G 2.6G   28G   9% /
/dev/sda1              99M   12M   82M 13% /boot
none                  252M     0 252M   0% /dev/shm
/dev/sdb1             3.6T   72M 3.6T   2% /mnt

阅读(3146) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2011-06-08 15:00:36

http://www.307liuyaosheng.com 股骨头坏死 http://www.ihuahui.cn 北京鲜花速递 http://cd.186jz.com 成都兼职网 http://www.kangbaili.com 雪蛤 http://www.famenb2b.com 阀门 http://www.elbowcn.com 合金管 http://99406.com 快播 http://www.txxwl.com 天津网站制作 http://sh.186jz.com 上海兼职网 http://bj.186jz.com 北京兼职网 http://www.90kf.com 中变无英雄传奇