Large file system oddities

From: Lukas Hejtmanek
Date: Thu Nov 03 2005 - 14:04:05 EST


Hello,

I use vanilla kernel 2.6.13.4 on Pentium 4 with EM64T extensions in x86_64 mode.

I have 3.5TB partition formated as XFS.

This is from dmesg:
scsi2 : Adaptec AIC79XX PCI-X SCSI HBA DRIVER, Rev 1.3.11
<Adaptec 39320A Ultra320 SCSI adapter>
aic7902: Ultra320 Wide Channel A, SCSI Id=7, PCI-X 101-133Mhz, 512 SCBs

(scsi2:A:0): 160.000MB/s transfers (80.000MHz DT, 16bit)
Vendor: SB-3163S Model: Volume Set # 00 Rev: R001
Type: Direct-Access ANSI SCSI revision: 03
scsi2:A:0:0: Tagged Queuing enabled. Depth 32
SCSI device sdc: 854676032 4096-byte hdwr sectors (3500753 MB)
SCSI device sdc: drive cache: write back
SCSI device sdc: 854676032 4096-byte hdwr sectors (3500753 MB)
SCSI device sdc: drive cache: write back
sdc: unknown partition table


Using fdisk I made one big partition accross whole disk:

fdisk /dev/sdc
Note: sector size is 4096 (not 512)

The number of cylinders for this disk is set to 53201.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdc: 3500.7 GB, 3500753027072 bytes
255 heads, 63 sectors/track, 53201 cylinders
Units = cylinders of 16065 * 4096 = 65802240 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 53201 3418696008 83 Linux

However, cat /proc/partitions produces:
# cat /proc/partitions
major minor #blocks name

8 0 244198584 sda
8 1 39062016 sda1
8 2 3903795 sda2
8 3 201230190 sda3
8 32 3418704128 sdc
8 33 1271212360 sdc1

I made XFS file system on it:
# mkfs.xfs -f -s size=4096 -d su=65536,sw=7 /dev/sdc1

mounted partition results in:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdc1 1.2T 332G 882G 28% /mnt/export1


So what's wrong? Or am I something missing?


--
Lukáš Hejtmánek
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/