Chinaunix

标题: 为什么fdisk看到的比pvs看到的数据量大呢?.txt [打印本页]

作者: woshiyiziyu    时间: 2011-06-14 18:38
标题: 为什么fdisk看到的比pvs看到的数据量大呢?.txt
本帖最后由 woshiyiziyu 于 2011-06-14 18:39 编辑

操作系统是suse 10 sp3,存储是hp eva 8400,在存储上划分了420G的空间给主机

dcebnew-bk:/eb_db1/oracle/oradata/ebai/data1 # multipath -ll
36006016019921e006a3f9440d706de11 dm-5 DGC,RAID 10
[size=330G][features=1 queue_if_no_path][hwhandler=1 emc]
\_ round-robin 0 [prio=1][active]
\_ 0:0:0:0 sda        8:0    [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 0:0:1:0 sdb        8:16   [active][ready]
3600508b100104a395355343033380006 dm-6 HP,LOGICAL VOLUME
[size=137G][features=1 queue_if_no_path][hwhandler=0]
\_ round-robin 0 [prio=1][active]
\_ 0:0:1:0 cciss!c0d1 104:16 [active][ready]
36001438005dec7b20000700000050000 dm-2 HP,HSV450
[size=420G][features=0][hwhandler=0]
\_ round-robin 0 [prio=1][active]
\_ 1:0:1:1 sdd        8:48   [active][ready]
\_ round-robin 0 [prio=1][enabled]
\_ 1:0:0:1 sdc        8:32   [active][ready]

dcebnew-bk:/eb_db1/oracle/oradata/ebai/data1 # fdisk -l /dev/dm-2

Disk /dev/dm-2: 450.9 GB, 450971566080 bytes
255 heads, 63 sectors/track, 54827 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
  /dev/dm-2p1               1       54827   440397846   8e  Linux LVM

dcebnew-bk:/eb_db1/oracle/oradata/ebai/data1 # pvs
  Found duplicate PV 5uNMpEfst2IE8mVsy1bue8xfB2HOkg2n: using /dev/emcpowera not /dev/sda
  PV                VG        Fmt  Attr PSize   PFree
  /dev/cciss/c0d0p2 system    lvm2 a-   136.62G 20.00M
  /dev/dm-2         ebdb1vg_n lvm2 a-   420.00G 96.00M
  /dev/dm-5         ebdb1vg   lvm2 a-   330.00G 96.00M
  /dev/dm-6         data1vg   lvm2 a-   136.70G 96.00M
作者: tanyangxf    时间: 2011-06-14 18:43
应该是算法不同吧,可能fdisk采用的是1024=1M,pvs采用的1000=1M,这个还真没具体研究过,只要大概想等就没问题了
作者: woshiyiziyuma    时间: 2011-06-14 19:39
看来是正常现象,谢谢tanyangxf。
http://faq.1and1.com/dedicated_s ... er/linux_dcs/2.html
Type pvs one last time and press ENTER. The PSize value should now be slightly less that the fdisk output size, but not by more than 100GB. You are now finished!




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2