mdsh.com/wiki


RecentChanges

TextFormattingRules
AllWikiTopics
OrphanedWikiTopics
ToDoWikiTopics
WikiLockList
RSS
Export2HTML

WikiSearch

SetUsername

StartingPoints
Home
XFS on for Swift

As a test environment I will add 4 USB disks and use them as data drives for Swift.

$ sudo /sbin/hdparm -tT /dev/sdf

/dev/sdf:
 Timing cached reads:	1842 MB in  2.00 seconds = 920.38 MB/sec
 Timing buffered disk reads:  82 MB in  3.02 seconds =  27.11 MB/sec


The disks come partitioned and formatted, we'll change that.

I do not need partitions on the data disks, so I will force mkfs.xfs to ignore the partition table and format the raw disk insead:

$ sudo /sbin/mkfs.xfs -f \
  -l internal=1,lazy-count=1 -d agcount=4 \
  -b size=4096 -L data1 /dev/sdf

meta-data = /dev/sdf isize=256 agcount=4, agsize=183139584 blks
	  = sectsz=4096 attr=2, projid32bit=0
data	  = bsize=4096 blocks=732558336, imaxpct=5
	  = sunit=0 swidth=0 blks
naming	  = version 2 bsize=4096 ascii-ci=0
log	  = internal log bsize=4096 blocks=357694, version=2
	  =  sectsz=4096 sunit=1 blks, lazy-count=1
realtime  = none extsz=4096 blocks=0, rtextents=0


Mount the filesystem somewhere (temporarily)
$ sudo mount -t xfs -o noatime,nodiratime,nodev,logbufs=8 -L data1 /mnt/sdf


XFS on for Swift is mentioned on: Linux


VeryQuickWiki Version 2.8.1 | Admin

All contents copyright mdsh.com (C) 2011-2023.