[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: [dm-devel] [EVMS][XFS][DM] We cannot create XFS file system on theevms volume larger than 1TB



HI

Can anyone help me with this ?

mkfs.xfs uses the BLKGETSIZE64 ioctl to get the device size;

        error = ioctl(fd, BLKGETSIZE64, &size);

returns "size" in bytes.

 

This looks like a devicemapper bug, in dm_blk_ioctl() they're assigning a full unsigned 32 bits of device size to a signed 32 bit size, and start running into trouble with sign extension when they cast it up.

http://oss.sgi.com/bugzilla/show_bug.cgi?id=646

 

--

Best regards, Michael Yao

 

 


From: dm-devel-bounces redhat com [mailto:dm-devel-bounces redhat com] On Behalf Of Michael Yao -姚志臻
Sent: Thursday, April 13, 2006 5:06 PM
To: dm-devel redhat com
Cc: Chia Chao -
趙嘉強; Alex Cheng -鄭智仁
Subject: [dm-devel] [EVMS][XFS][DM] We cannot create XFS file system on theevms volume larger than 1TB

 

 

Hi, I have FOUR 500GB SATA hard disks.

I created a 1.4TB evms volume, and it failed when I want to make XFS filesystem on it.

These are the snapshots:

root 2TB:~# mkfs.xfs -f -L volume1 /dev/evms/volume1

meta-data="" isize=256    agcount=4294967134, agsize=1048576 blks

         =                       sectsz=512

data     =                       bsize=4096   blocks=4503599456772095, imaxpct=25

         =                       sunit=0      swidth=0 blks, unwritten=1

naming   =version 2              bsize=4096

log      =internal log           bsize=4096   blocks=32768, version=1

         =                       sectsz=512   sunit=0 blks

realtime =none                   extsz=65536  blocks=0, rtextents=0

mkfs.xfs: pwrite64 failed: Invalid argument

root 2TB:~# mkfs.xfs -f -L volume1 -d size=100m /dev/evms/volume1

meta-data="" isize=256    agcount=6, agsize=4267 blks

         =                       sectsz=512

data     =                       bsize=4096   blocks=25600, imaxpct=25

         =                       sunit=0      swidth=0 blks, unwritten=1

naming   =version 2              bsize=4096

log      =internal log           bsize=4096   blocks=1200, version=1

         =                       sectsz=512   sunit=0 blks

realtime =none                   extsz=65536  blocks=0, rtextents=0

mkfs.xfs: pwrite64 failed: Invalid argument

 

4503599456772095 probably isn't correct, it should be 357687.

It seems to have a disconnection between what evms is reporting for the size of the partition and what mkfs is getting.

And it won’t happen in non-EVMS/DM devices.

As described in http://oss.sgi.com/bugzilla/show_bug.cgi?id=267

 

Setup: device-mapper 1.01.05/Driver version 4.1.1, evms2.5.5, linux 2.4.31

 

And these are the evms commands:

asm:DosSegMgr={}, sda

asm:DosSegMgr={}, sdb

asm:DosSegMgr={}, sdc

asm:DosSegMgr={}, sdd

create: Segment, sda_freespace1, primary=false

create: Segment, sdb_freespace1, primary=false

create: Segment, sdc_freespace1, primary=false

create: Segment, sdd_freespace1, primary=false

create: Region, MDRaid5RegMgr={}, sda5, sdb5, sdc5, sdd5

create: Container, LvmRegMgr={name="Con_volume1", pe_size=32MB}, md/md0

create: Region, LvmRegMgr={name="Reg_volume1", size=1.4TB}, "lvm/Con_volume1/Freespace"

create: Volume, "lvm/Con_volume1/Reg_volume1", Name="volume1“

mkfs: XFS={vollabel=volume1}, /dev/evms/volume1

 

--

Best regards, Michael Yao

 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]