Using XFS on Oracle Linux

Install xfs packages on Oracle Linux 6.6 via Oracle Public Yum

[root@matthew ~]# yum install xfsprogs
Loaded plugins: refresh-packagekit
Setting up Install Process
public_ol6_UEKR3_latest | 1.2 kB 00:00
public_ol6_UEK_latest | 1.2 kB 00:00
public_ol6_UEK_latest/primary | 19 MB 00:02
public_ol6_UEK_latest 407/407
public_ol6_addons | 1.2 kB 00:00
public_ol6_addons/primary | 77 kB 00:00
public_ol6_addons 269/269
public_ol6_latest | 1.4 kB 00:00
public_ol6_latest/primary | 46 MB 00:05
public_ol6_latest 29302/29302
http://public-yum.oracle.com/beta/repo/OracleLinux/OL6/uek3/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Resolving Dependencies
--> Running transaction check
---> Package xfsprogs.x86_64 0:3.1.11-1.0.5.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================================================
Package Arch Version Repository Size
=========================================================================================================================
Installing:
xfsprogs x86_64 3.1.11-1.0.5.el6 public_ol6_latest 808 k
Transaction Summary
=========================================================================================================================
Install 1 Package(s)
Total download size: 808 k
Installed size: 3.6 M
Is this ok [y/N]: y
Downloading Packages:
xfsprogs-3.1.11-1.0.5.el6.x86_64.rpm | 808 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : xfsprogs-3.1.11-1.0.5.el6.x86_64 1/1
Verifying : xfsprogs-3.1.11-1.0.5.el6.x86_64 1/1
Installed:
xfsprogs.x86_64 0:3.1.11-1.0.5.el6
Complete!

Create XFS filesystem on an existing partition or logical volume.
NOTE: Overwriting an existing partition will cause all data to be deleted. If this is not desired then create a new parition using fdisk or parted before proceeding.

[root@matthew ~]# mkfs.xfs /dev/vg_ora/lv_ora1
meta-data=/dev/vg_ora/lv_ora1 isize=256 agcount=4, agsize=3244032 blks
= sectsz=512 attr=2, projid32bit=1
= crc=0
data = bsize=4096 blocks=12976128, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=6336, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0

Mount filesystem
[root@matthew /]# mount -t xfs /dev/vg_ora/lv_ora1 /u01
To grow the filesystem issue the xfs_growfs command

xfs_growfs -d /dev/vg_ora/lv_ora1
meta-data=/dev/mapper/vg_ora-lv_ora1 isize=256 agcount=4, agsize=3244032 blks
= sectsz=512 attr=2, projid32bit=1
= crc=0
data = bsize=4096 blocks=12976128, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal bsize=4096 blocks=6336, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
data size unchanged, skipping

Comments

Popular posts from this blog

How to Get More Time to Play Golf or Faster Data Delivery with Delphix

Virtualbox 4.1 Shared folders on Oracle Linux UEK

Oracle Home Cloning: Tools and Techniques