arls1481's picture

Defragging

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.

David

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:
11G63

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
pv_list:1569792
kalloc.16:3698688
kalloc.64:17186816
kalloc.128:368746496
kalloc.256:1056768
kalloc.1024:71114752
kalloc.2048:10928128
kalloc.8192:2424832
vm pages:22670868
threads:1304544
vnodes:13325180
namecache:3863760
HFS node:6372352
HFS fork:2381456
buf.8192:4587520
ubc_info zone:3027360
vnode pager structur:1513680
Kernel Stacks:3555328
PageTables:20250624
Kalloc.Large:3506744

Backtrace suspected of leaking: (outstanding bytes: 308096)
0x22629a
0x22647e
0x1b49ab4
0x1b41bbe
0x1b0a8be
0x1b0c23b
0x1b0cd5d
0x1acd6dd
0x1ab1a74
0x32cf8c
0x322ac9
0x31aea0
0x31b4ad
0x5f3c2a
Kernel Extensions in backtrace:
com.apple.filesystems.acfs(457.8)[410E70E4-4FDD-44BD-BF7D-5C83B874E699]@0x1a9d000->0x1bf0fff
dependency: com.apple.iokit.IOStorageFamily(1.7.2)[9164AEE7-BA92-45A2-BA9C-638B980193F1]@0xa28000

last loaded kext at 357666649348: com.apple.filesystems.afpfs 9.8.1 (addr 0x17bf000, size 376832)
last unloaded kext at 207159313667: com.apple.iokit.IOAHCIFamily 2.0.8 (addr 0x1128000, size 45056)
loaded kexts:
com.logmein.driver.LogMeInSoundDriver 1.0.2
com.apple.filesystems.afpfs 9.8.1
com.apple.nke.asp_tcp 6.0.1
com.apple.filesystems.smbfs 1.7.2
com.apple.filesystems.autofs 3.0
com.apple.driver.AppleHWSensor 1.9.5d0
com.apple.driver.AppleUpstreamUserClient 3.5.9
com.apple.driver.AppleMCCSControl 1.0.33
com.apple.kext.ATIFramebuffer 7.3.2
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.iokit.IOBluetoothSerialManager 4.0.8f17
com.apple.driver.AppleBMC 2.0.2
com.apple.driver.AppleMCEDriver 1.1.9
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AudioIPCDriver 1.2.3
com.apple.driver.ApplePolicyControl 3.1.33
com.apple.driver.ACPI_SMC_PlatformPlugin 5.0.0d8
com.apple.ATIRadeonX1000 7.0.4
com.apple.driver.AppleLPC 1.6.0
com.apple.driver.Apple16X50ACPI 3.0
com.apple.driver.AppleSEP 1.5.0
com.apple.driver.AppleRAID 4.0.6
com.apple.driver.XsanFilter 404
com.apple.iokit.SCSITaskUserClient 3.2.1
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 33
com.apple.driver.AppleIntel8254XEthernet 2.1.3b1
com.apple.driver.AppleUSBHub 5.1.0
com.apple.driver.AppleFWOHCI 4.9.0
com.apple.driver.AppleIntelPIIXATA 2.5.1
com.apple.driver.AppleLSIFusionMPT 3.0.5
com.apple.driver.AppleEFINVRAM 1.6.1
com.apple.driver.AppleUSBEHCI 5.1.0
com.apple.driver.AppleUSBUHCI 5.1.0
com.apple.driver.AppleACPIButtons 1.5
com.apple.driver.AppleRTC 1.5
com.apple.driver.AppleHPET 1.7
com.apple.driver.AppleSMBIOS 1.9
com.apple.driver.AppleACPIEC 1.5
com.apple.driver.AppleAPIC 1.6
com.apple.driver.AppleIntelCPUPowerManagementClient 195.0.0
com.apple.nke.applicationfirewall 3.2.30
com.apple.security.quarantine 1.4
com.apple.security.TMSafetyNet 8
com.apple.driver.AppleIntelCPUPowerManagement 195.0.0
com.apple.security.SecureRemotePassword 1.0
com.apple.filesystems.acfsctl 457.8
com.apple.kext.triggers 1.0
com.apple.filesystems.acfs 457.8
com.apple.driver.AppleSMBusController 1.0.10d0
com.apple.iokit.IOFireWireIP 2.2.5
com.apple.iokit.IOSurface 80.0.2
com.apple.iokit.IOAudioFamily 1.8.6fc18
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.AppleGraphicsControl 3.1.33
com.apple.driver.AppleSMC 3.1.3d10
com.apple.driver.IOPlatformPluginLegacy 5.0.0d8
com.apple.iokit.IONDRVSupport 2.3.4
com.apple.driver.IOPlatformPluginFamily 5.1.1d6
com.apple.driver.Apple16X50Serial 3.0
com.apple.iokit.IOSerialFamily 10.0.5
com.apple.kext.ATI1300Controller 7.3.2
com.apple.kext.ATISupport 7.3.2
com.apple.iokit.IOGraphicsFamily 2.3.4
com.apple.iokit.IOSCSIBlockCommandsDevice 3.2.1
com.apple.iokit.IOUSBMassStorageClass 3.0.3
com.apple.driver.AppleUSBComposite 5.0.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.2.1
com.apple.iokit.IOBDStorageFamily 1.7
com.apple.iokit.IODVDStorageFamily 1.7.1
com.apple.iokit.IOCDStorageFamily 1.7.1
com.apple.iokit.IOATAPIProtocolTransport 3.0.0
com.apple.iokit.IONetworkingFamily 2.1
com.apple.iokit.IOUSBUserClient 5.0.0
com.apple.iokit.IOFireWireFamily 4.4.8
com.apple.iokit.IOATAFamily 2.5.1
com.apple.iokit.IOSCSIParallelFamily 2.5.1
com.apple.iokit.IOSCSIArchitectureModelFamily 3.2.1
com.apple.iokit.IOUSBFamily 5.1.0
com.apple.driver.AppleEFIRuntime 1.6.1
com.apple.driver.AppleKeyswitch 1.0.5f4
com.apple.iokit.IOHIDFamily 1.7.1
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 177.9
com.apple.kext.AppleMatch 1.0.0d1
com.apple.driver.DiskImages 331.7
com.apple.iokit.IOStorageFamily 1.7.2
com.apple.driver.AppleKeyStore 28.18
com.apple.driver.AppleACPIPlatform 1.5
com.apple.iokit.IOPCIFamily 2.7
com.apple.iokit.IOACPIFamily 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: http://support.apple.com/kb/HT4143

ActiveRAID MPIO?

Forums: 

Sorry to spam the forums with new threads (my other one [url=http://www.xsanity.com/forum/viewtopic.php?t=19417]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."

Quote:
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!

Hi,

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: http://support.apple.com/kb/HT1081

JSamuel's picture

Multipathing 101

Forums: 

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=http://www.xsanity.com/forum/viewtopic.php?t=19417]here/url and it jogged my memory about having to write some docs up and worst of all, create the omnigraphs :(

multipathing and bandwidth

Forums: 

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?

Thanks!

Pete

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: http://support.apple.com/kb/HT3749

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

Pages

Subscribe to Xsanity RSS