arls1481's picture


Can someone help me out with some basics on snfsdefrag?
I've read through a ton of info out there on usage of cvfsck -f to identify the amount of files with fragmentation but how do I correlate that in to snfsdfrag in order to "clean-up" the fragmentation?

dchadd's picture

XSAN Panic

My two MDC's are constantly panicing back and fourth with each other. When both of our XSAN volumes are stopped it doesn't do it.

I ran cvfsck -j -wv and -nv on both volumes

still having the same issue. Please help.


Interval Since Last Panic Report: 10800479 sec
Panics Since Last Report: 3
Anonymous UUID: 213DA0DD-F5BC-4381-95EF-28DCF9D34CC8

Fri Aug 9 00:35:29 2013
panic(cpu 1 caller 0x244b0b): "zalloc: \"kalloc.8192\" (296 elements) retry fail 3, kfree_nop_count: 0"@/SourceCache/xnu/xnu-1699.32.7/osfmk/kern/zalloc.c:1766
Backtrace (CPU 1), Frame : Return Address (4 potential args on stack)
0x10e3dc8 : 0x2203de (0x6b08cc 0x10e3de8 0x229fb0 0x0)
0x10e3df8 : 0x244b0b (0x6b2fd0 0x6b157a 0x128 0x3)
0x10e3e78 : 0x22629a (0x44911fc 0x1 0x17ecdc 0x3010001)
0x10e3ea8 : 0x2263e9 (0x1698 0x1 0x10e3ed8 0x2115e7)
0x10e3eb8 : 0x2115e7 (0x1698 0x3 0x10e3f28 0x213758)
0x10e3ed8 : 0x222d01 (0x10f8 0x10e3f14 0x10e3f0c 0x2c3f24)
0x10e3f08 : 0x214063 (0x15eaae00 0x5f7f690 0x5a5ddc0 0x15eaae00)
0x10e3f48 : 0x21b25b (0x15eaae00 0x0 0x0 0x0)
0x10e3f98 : 0x2b7bb7 (0x5efef94 0x1 0x5efefc4 0x8)
0x10e3fc8 : 0x2e60c7 (0x5efef90 0x1 0x10 0x15e6c610)

BSD process name corresponding to current thread: hwmond
Boot args: srv=1 serverperfmode=1

Mac OS version:

Kernel version:
Darwin Kernel Version 11.4.2: Thu Aug 23 16:26:45 PDT 2012; root:xnu-1699.32.7~1/RELEASE_I386
Kernel UUID: 859B45FB-14BB-35ED-B823-08393C63E13B
System model name: Xserve1,1 (Mac-F4208AC8)

System uptime in nanoseconds: 422541669703
vm objects:12685920
vm object hash entri:1517760
vm pages:22670868
HFS node:6372352
HFS fork:2381456
ubc_info zone:3027360
vnode pager structur:1513680
Kernel Stacks:3555328

Backtrace suspected of leaking: (outstanding bytes: 308096)
Kernel Extensions in backtrace:[410E70E4-4FDD-44BD-BF7D-5C83B874E699]@0x1a9d000->0x1bf0fff

last loaded kext at 357666649348: 9.8.1 (addr 0x17bf000, size 376832)
last unloaded kext at 207159313667: 2.0.8 (addr 0x1128000, size 45056)
loaded kexts:
com.logmein.driver.LogMeInSoundDriver 1.0.2 9.8.1 6.0.1 1.7.2 3.0 1.9.5d0 3.5.9 1.0.33 7.3.2 1.0.0d1 4.0.8f17 2.0.2 1.1.9 7.0.0 1.2.3 3.1.33 5.0.0d8 7.0.4 1.6.0 3.0 1.5.0 4.0.6 404 3.2.1 1.0.0d1 1.0.0d1 33 2.1.3b1 5.1.0 4.9.0 2.5.1 3.0.5 1.6.1 5.1.0 5.1.0 1.5 1.5 1.7 1.9 1.5 1.6 195.0.0 3.2.30 1.4 8 195.0.0 1.0 457.8 1.0 457.8 1.0.10d0 2.2.5 80.0.2 1.8.6fc18 1.3 3.1.33 3.1.3d10 5.0.0d8 2.3.4 5.1.1d6 3.0 10.0.5 7.3.2 7.3.2 2.3.4 3.2.1 3.0.3 5.0.0 3.2.1 1.7 1.7.1 1.7.1 3.0.0 2.1 5.0.0 4.4.8 2.5.1 2.5.1 3.2.1 5.1.0 1.6.1 1.0.5f4 1.7.1 1.1 177.9 1.0.0d1 331.7 1.7.2 28.18 1.5 2.7 1.4
Model: Xserve1,1, BootROM XS11.0080.B01, 4 processors, Dual-Core Intel Xeon, 2 GHz, 2 GB, SMC 1.11f5
Graphics: ATI Radeon X1300, ATY,RadeonX1300, PCIe, 64 MB
Memory Module: BRANCH 0 CHANNEL 0/DIMM 1, 512 MB, DDR2 FB-DIMM, 667 MHz, 0x80CE, 0x4D3339355436353533435A342D4345363120
Memory Module: BRANCH 0 CHANNEL 1/DIMM 2, 512 MB, DDR2 FB-DIMM, 667 MHz, 0x80CE, 0x4D3339355436353533435A342D4345363120
Memory Module: BRANCH 1 CHANNEL 0/DIMM 3, 512 MB, DDR2 FB-DIMM, 667 MHz, 0x80CE, 0x4D3339355436353533435A342D4345363120
Memory Module: BRANCH 1 CHANNEL 1/DIMM 4, 512 MB, DDR2 FB-DIMM, 667 MHz, 0x80CE, 0x4D3339355436353533435A342D4345363120
Network Service: Cashman LAN, Ethernet, en0
Network Service: Metadata LAN, Ethernet, en1
PCI Card: ATY,RadeonX1300, sppci_displaycontroller, Mezzanine
PCI Card: Apple 2 Port 4Gbps Fibre Channel Card, sppci_fibrechannel, Slot-1
PCI Card: Apple 2 Port 4Gbps Fibre Channel Card, sppci_fibrechannel, Slot-1
Parallel ATA Device: MATSHITACD-RW CW-8124
Fibre Channel Device: SCSI Target Device @ 0
Fibre Channel Device: SCSI Target Device @ 1
Fibre Channel Device: SCSI Target Device @ 2
Fibre Channel Device: SCSI Target Device @ 3
USB Device: USB to ATA/ATAPI Bridge, 0x152d (JMicron Technology Corp.), 0x2352, 0xfd100000 / 2
USB Device: Frontpanel Controller, apple_vendor_id, 0x8261, 0x3d100000 / 2
FireWire Device: built-in_hub, 800mbit_speed

Xsan: Ensuring that files or folders go to the intended affinities (Apple KB)

In order to force a file to relocate to the storage pool(s) specified by a folder's affinity, the file must be physically copied or re-written, not copied via the Finder or via a mv command.

Read more:



Sorry to spam the forums with new threads (my other one [url=]here/url), but does anyone know anything about Active Storage ActiveRAIDs and MPIO support? I'm curious if maybe my LUNs are configured wrong. I'm trying to get as much bandwidth through to one client as possible, but I'm hitting a limit somewhere. In the activeadmin command line tool, there's a multipath command that allows you to set the multipathing to "device" or "lun."

Device level multipathing uses a Fibre Channel World Wide Node Name strategy of "identical", a Fibre Channel connection mode of "fabric" and a per-controller LUN affinity. Device level multipathing is required by Mac OS X.

LUN level multipathing uses a Fibre Channel World Wide Node Name strategy of "distinct", a Fibre Channel connection mode of "fabric" and requires symmetric LUN mappings./quote

Is the bit about device level multipathing being required by OS X still valid since Lion?

Shaggy's picture

NEED HELP XSAN Volume won't start!


we are having a major issue with our XSAN.
Here what we are using two Promise VTRak E-Class and a Mac Pro that functions as the XSAN controller. The Mac Pro has Mountain Lion installed.

After a shut down (for maintenance) the Volume (which are both RAIDS combined) will not start. There are error markers under the Volume and under the LUN tab there the yellow ! markers. But I can not find any information why.

Now, not sure if this is crazy or not but a coworker thought it would be a good idea to reconfigure another Mac Pro as a XSAN controller and added the Promise Raids. (I would think this is not good choice)
Good news is the Volume works but now data! :( So he did Data Recover scan and said that the "data" is there. But we know how well that goes right?

After finding this out this was done, I reattached the Raids to the the original Mac Pro. After doing this I logged into the VTrak and looked if I can see any issue here what I noticed that the originally assigned LUN mapping was missing.

So what can I do to the original controller see the Volumes with out loosing data?

I really appreciate any help, thank you!

Xsan: How to repair the filesystem (Apple KB)

Learn how to repair Xsan filesystems using cvfsck.

Read more:

JSamuel's picture

Multipathing 101


Has anyone written a guide or blurb about this they can share to save writing something?

In essence, you have 2+ ports on a FC HBA (ATTO or Apple etc) in the inits and go into a QLogic, and have then 2+ ports on the target controllers. Best practice for gaining performance/redundancy via multipath zoning - all ports in same zone, or split into an A-A zone and B-B zone etc.

I saw pgsengstock's thread [url=]here/url and it jogged my memory about having to write some docs up and worst of all, create the omnigraphs :(

multipathing and bandwidth


Sorry to rehash an old question here, but I'm panicking a bit.

I've done the math, and our SAN should be capable of pushing out 2000MB/s+, easy. I have a Mac Pro Server with an Apple quad port fibre channel card installed. My Qlogic switch ports are all set correctly per the recommended Xsan/Qlogic settings from Apple. I'm barely breaking 500MB/s through this one server, though. I'm seeing all the LUNs on every FC port, so I don't understand why this is an issue. It seems to me like I've either misconfigured something or I've greatly underestimated the capabilities of this card.

Here's a summary of the fiber paths:
I've got 4x 16TB ActiveRAIDs, each configured with two 7-drive RAID5 LUNs. Each RAID controller is spanned across two switches. There are five Qlogic switches in total, and all the 10Gb stacking ports are connected for maximum redundancy. The RAID controllers populate most of switches 1 and 2. The Mac Pro Server with the quad FC card is connected to switches 1-4.

I'd gladly take any recommendations for config changes or hardware upgrades. Perhaps we just need a different FC card?



Xsan 2.2: How to set Spotlight search levels (Apple KB)

With Xsan 2.2, Spotlight supports two different levels of searching: File system search and Indexed search.

File system search (FsSearch) - Searches against file system attributes are enabled but no indexed searching of content is performed.
Indexed search (ReadWrite) - Full file system and indexed content is enabled; the index will be updated as file system content changes.

By default, Indexed search is enabled when Spotlight is activated for an Xsan volume in Xsan 2.0 or later.
The FsSearch option requires Mac OS X v10.6 metadata controllers using Xsan 2.2.

Read more:

Moe's picture

NT Security Index inode is bad.

Have this issue in an Xsan installation

The volume stopped working, running cvfsck -nv gives

[code]*Fatal*: The file system NT Security Index inode is bad.

  • Fatal*: Please run this program in interactive mode to repair this error/code

After I run in interactive mode, it still gives the same error

I've tried varies cvfsck flags, still no use

Any help is appreciated


Subscribe to Xsanity RSS