Featured »

April 16, 2013 – 12:39 pm |

Imagine you have an HPC cluster with a hundred compute nodes named node001-node100. The two commands below will help you generate a list of node names – either all name on one line or one name per …

Read the full story »
Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Archive by Category

Articles in Filesystems

Filesystem Performance Testing Using dd

February 5, 2013 – 3:35 pm | 5 Comments

Below is a simple script to test filesystem read/write performance using dd with varying blocksize parameter. This can be useful for testing local filesystems as well as network-mounted filesystems. The end result will be a …

Quick BTRFS Test on OpenSuse 12.2

December 13, 2012 – 11:08 am | 6 Comments

The recent announcement from Suse Enterprise Linux that Btrfs was production-ready raised some suspicions. The last time I tested btrfs (not very long ago) the primary issues were excessive CPU utilization and filesystem space that seemed to disappear into nowhere. So, as a quick test, I put together an OpenSuse 12.2 (3.4.6-2.10-desktop, OpenSuse 12.2) 64-bit VM (ESX) with one dual-core vCPUs, 4GB RAM, the OS disk and a 6GB striped LVM filesystem consisting of 4 4-GB virtual disks.

Searching Large Network-Mounted Filesystems

October 16, 2012 – 4:14 pm | 6 Comments
Searching Large Network-Mounted Filesystems

Recently I ran into a small problem: I needed to find recently-modified files in a very large NFS filesystem. One of the high-level folders contained dozens of sub-folders with thousands of files in each. There is a significant performance penalty associated with placing such directory structures on network-mounted filesystems. Running the “find” command at the top of the filesystem would have taken over an hour and the problem here was not available bandwidth, but the time it takes for the “find” to request and receive attribute information for each folder and file.

Show Allocated / Used Filesystem Space Summary

April 17, 2012 – 9:31 pm | 6 Comments
Show Allocated / Used Filesystem Space Summary

On servers with many filesystems calculating filesystem space utilization summary can get very tedious. Below is a simple script that will summarize all filesystems and provide you will the totals for allocated and used space in GB.

Linux LVM: Reduce Filesystem and Logical Volume

March 14, 2012 – 5:07 pm | 7 Comments
Linux LVM: Reduce Filesystem and Logical Volume

The following example shows how to reduce the size of a filesystem mounted on an LVM logical volume. The instructions below are only for non-root filesystems. No reboot is required, but the filesystem will need to be unmounted. So, if there are any user applications using this filesystem, they will need to be stopped and the users will need to log out.

NFS “Not Owner” Error

August 30, 2010 – 11:34 pm | 3 Comments
NFS “Not Owner” Error

The “not owner” error is displayed on the client system (usually Solaris) when attempting to mount an NFS share from a server. This error may appear even though the share is correctly exported and the client system has full access. If you are getting a “permission denied” error, then this article is not for you and you should check here instead.

Forcing Linux to Reboot

January 29, 2010 – 3:21 pm | 11 Comments
Forcing Linux to Reboot

Until I branched out a few years ago from supporting Unix server to working with Linux clusters, I never really encountered this issue: you type “reboot”, “init 0″, or “shutdown” as root and… nothing happens. Or the system starts going down but then hangs on unmounting a filesystem or unloading a module. I think this happened once to a colleague of mine who was rebooting a Solaris server, but this is a common problem with Linux.

Testing Filesystem Performance with Bonnie++

July 10, 2009 – 4:33 pm | 18 Comments
Testing Filesystem Performance with Bonnie++

Bonnie++ is a benchmark utility designed to test performance of hard drives and filesystems by simulating various types of disk I/O. Bonnie++ may be used to test local disks as well as network-mounted filesystems. It …

Dealing with ReiserFS bad blocks

March 24, 2008 – 6:42 pm | One Comment
Dealing with ReiserFS bad blocks

The following is a procedure for recovering a ReiserFS filesystem with bad blocks. If this is a system FS and cannot be unmounted, the box needs to be booted from the latest version of Knoppix …

Mountpoint permission problem in Solaris

May 4, 2006 – 6:45 pm | 2 Comments
Mountpoint permission problem in Solaris

The following condition was originally discovered in OpenSolaris 11 (Bug ID: 4697677). This problem occurs when you do mkdir -m 700 on a mountpoint before mounting it. This superceeds whatever permissions you might give …

Creating large AIX JFS filesystems

April 21, 2006 – 12:01 pm | 3 Comments
Creating large AIX JFS filesystems

A quick note on creating large JFS filesystems on AIX: if the filesystem is 64Gb or might be expanded to over 64Gb any time in the future, make sure the NBPI (Number of Bytes Per …

Monitoring Veritas VM problems on Solaris

April 20, 2006 – 4:41 pm | 6 Comments
Monitoring Veritas VM problems on Solaris

Several Veritas VM and system logs can be used to monitor and diagnose problems with the Volume Manager. An automated script can be used to grab the last few lines from these logs whenever a …

NFS-mount “Permission denied” error

February 16, 2006 – 11:27 am | 7 Comments
NFS-mount “Permission denied” error

NFS is a relatively uncomplicated functionality of any Unix system. However, from time to time you are bound to run in the “permission denied” error while trying to NFS-mount a filesystem. Everything seems to be …

Moving filesystems with ufsdump

November 19, 2005 – 11:22 pm | 3 Comments
Moving filesystems with ufsdump

to move /opt on new partition (disk or file system)
1) from system prompt: format –> partition –> label
2) newfs -v /dev/dsk/c0t1d0s1 (target location)
3) mkdir /new_dir
4) mount /dev/dsk/c0t1d0s1 /new_dir
5) cd /new_dir
6) ufsdump 0f – /opt | …

Create and mount ISO image under Solaris

November 19, 2005 – 10:33 pm | 7 Comments
Create and mount ISO image under Solaris

Here’s an example of creating and mount a CS ISO image under Solaris.