LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 10-05-2015, 12:14 PM   #1
usao
Member
 
Registered: Dec 2011
Location: Chandler, AZ
Posts: 286

Rep: Reputation: Disabled
How to mount XFS filesystem?


# cat /etc/centos-release
CentOS release 6.7 (Final)

# sudo yum install xfsprogs
Package xfsprogs-3.1.1-16.el6.x86_64 already installed and latest version
Nothing to do

# lvs /dev/pool_vg/pool_lv
LV VG Attr LSize Pool Origin Data Meta% Move Log Cpy%Sync Convert
pool_lv pool_vg -wi-a----- 65.00t

# mkfs.xfs -b size=64k /dev/pool_vg/pool_lv
meta-data=/dev/pool_vg/pool_lv isize=256 agcount=65, agsize=16777215 blks
= sectsz=512 attr=2, projid32bit=0
data = bsize=65536 blocks=1090514880, imaxpct=1
= sunit=0 swidth=0 blks
naming =version 2 bsize=65536 ascii-ci=0
log =internal log bsize=65536 blocks=32608, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=65536 blocks=0, rtextents=0

# mount -t xfs /dev/pool_vg/pool_lv /pool
mount: Function not implemented

Last edited by usao; 10-05-2015 at 12:15 PM.
 
Old 10-05-2015, 01:19 PM   #2
usao
Member
 
Registered: Dec 2011
Location: Chandler, AZ
Posts: 286

Original Poster
Rep: Reputation: Disabled
Ok, I think the cause is the block size being set to 64k. For unknown reasons, this seems to foul-up the mount command abilities.
When I rebuild the FS using default block size, it does mount.

# mkfs.xfs -f /dev/pool_vg/pool_lv
meta-data=/dev/pool_vg/pool_lv isize=256 agcount=65, agsize=268435455 blks
= sectsz=512 attr=2, projid32bit=0
data = bsize=4096 blocks=17448238080, imaxpct=1
= sunit=1 swidth=256 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=521728, version=2
= sectsz=512 sunit=1 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
# mount -t xfs /dev/pool_vg/pool_lv /pool
# df -h /pool
Filesystem Size Used Avail Use Mounted on
/dev/mapper/pool_vg-pool_lv
65T 35M 65T 1% /pool
 
Old 10-05-2015, 01:28 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,783

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
You are correct, in a nutshell the kernel page cache limits block size which is as far as I know 4K.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
XFS - can you pass "nobarriers" mount option to live filesystem? Thaidog Linux - Server 0 10-24-2011 05:07 PM
why is a new xfs filesystem fragmented? _bsd Linux - Server 0 10-17-2011 12:13 PM
What is the best filesystem? (mainly xfs vs ext3) calimer Linux - Software 16 03-02-2005 12:07 AM
How to mount UTF8 on XFS filesystem? samxiao Linux - Hardware 0 01-27-2004 06:38 PM
XFS Filesystem on RH 9.0 Necessary? GATTACA Red Hat 7 12-29-2003 04:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 05:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration