Tags:

Anatomy of a .cfg file: 3

**** Work in Progress ****

The volumename.cfg file holds all the settings that tie all those LUNs together into a volume as we know it.  It resides in the config folder of your metadata controller (/Library/Filesystems/Xsan/config/) and is definitely something you should back up!

Below is a .cfg file copied into the wiki, I will go through and explain what each line means and what role it plays.


# ****************************************************************************
# A global section for defining file system-wide parameters.
# ****************************************************************************
FileLocksYes
GlobalSuperUserYes
QuotasYes
WindowsSecurityYes
ForceStripeAlignmentYes
UnixIdFabricationOnWindowsYes
EnforceACLsYes
Debug0
AllocationStrategyRound
InodeExpandMin8
InodeExpandInc32
InodeExpandMax2048
BufferCacheSize32M
JournalSize16M
FsBlockSize128K
InodeCacheSize8K
MaxConnections75
MaxLogSize10M
ThreadPoolSize128
UnixNobodyUidOnWindows-2
UnixNobodyGidOnWindows-2


# ****************************************************************************
# A disktype section for defining disk hardware parameters.
# ****************************************************************************

[DiskType metaType]
Sectors 976608427
SectorSize 512

[DiskType video1Type]
Sectors 5860595679
SectorSize 512

[DiskType video3Type]
Sectors 5860595679
SectorSize 512

[DiskType video5Type]
Sectors 5860595679
SectorSize 512

[DiskType video4Type]
Sectors 5860595679
SectorSize 512

[DiskType video2Type]
Sectors 5860595679
SectorSize 512


# ****************************************************************************
# A disk section for defining disks in the hardware configuration.
# ****************************************************************************

[Disk meta]
Status Up
Type metaType

[Disk video1]
Status Up
Type video1Type

[Disk video3]
Status Up
Type video3Type

[Disk video5]
Status Up
Type video5Type

[Disk video4]
Status Up
Type video4Type

[Disk video2]
Status Up
Type video2Type


# ****************************************************************************
# A stripe section for defining stripe groups.
# ****************************************************************************

[StripeGroup Meta]
Status Up
Exclusive Yes
Metadata Yes
Journal Yes
Read Enabled
Write Enabled
MultiPathMethod Rotate
StripeBreadth 16
Node meta 0

[StripeGroup Video]
Status Up
Exclusive No
Metadata No
Journal No
Affinity Video
Read Enabled
Write Enabled
MultiPathMethod Rotate
StripeBreadth 16
Node video1 0
Node video3 1
Node video5 2
Node video4 3
Node video2 4