NetApp – Kill CIFS Sessions Per Volume

During volume migrations it’s handy to be able to terminate CIFS sessions on a per volume basis.  Here’s how to clear cifs sessions on a per volume basis.

filer>cifs terminate -t <time in seconds> -v <volume name>

Advertisements

NetApp – Calculate Maximum Number of inodes per Volume

NetApp volumes allow for inodes to be dynamically allocated/increased on volumes which are provisioned on an array.  This begs the question, what is the maximum inode count supported by a volume and how is the maximum number calculated?

inodes = files

“The maximum number of inodes is limited to one inode per one block in the filesystem. (which is 1 inode per every 4KB).  It is generally recommended to NOT go that low.”

TB (Volume) GB MB KB
1.2 1,228.8 1,258,291 1,288,490,189

1,288,490,189KB / 4KB Blocks = 322,122,547 supported files / inodes per 1.2TB volume.

Credit where credit is due… https://communities.netapp.com/thread/2176

NetApp – Rename SnapMirror Volumes

The goal of this post is to outline how to cleanly update the volume name of both the source and the destination volume of a NetApp snapmirror relationship.  These steps allow for  no loss of initialized snapmirror relationships and existing snapshots.

  1. Confirm the status of the snapmirror relationship is “idle” by running snapmirror status
  2. Rename the source and destination volume names
  3. Break the snapmirror relationship (Note: use the new destination volume name)
  4. Resync the snapmirror relationship using the new volume names

Example Step Output:
nap002> snapmirror initialize -S nap001:source_test nap002:dest_test
nap002> snapmirror status
Snapmirror is on.
Source Destination State Lag Status
nap001:source_test nap002:dest_test Snapmirrored 00:00:07 Idle

nap001> vol rename source_test source_new
nap002> vol rename dest_test dest_new

nap002> snapmirror status (Note: the source is now missing)
Snapmirror is on.
Source Destination State Lag Status
– nap002:dest_new Snapmirrored 00:01:49 Idle

nap002> snapmirror break dest_new
nap002> snapmirror resync -S nap001:source_new nap002:dest_new
The resync base snapshot will be: nap002(4055372815)_dest_test.1
Are you sure you want to resync the volume? yes

nap002> snapmirror status
Snapmirror is on.
Source Destination State Lag Status
nap001:source_test nap002:dest_new Snapmirrored 00:00:05 Transferring (84 KB done)

Windows – Mute Shortcut

I listen to music a lot while I’m working.  This leads to situations where I need to quickly mute my music or pause it while either focusing on a problem or taking a call.  Since I’m lazy I went the mute shortcut route.

Mute Shortcut Creation (Windows XP)

1. Download nircmd
2. Extract it to a folder ex: c:\tools\nircmd
3. Create a new shortcut on your desktop
Target: C:\tools\nircmd.exe mutesysvolume 2

4. Update the icon and set it to %SystemRoot%\system32\sndrec32.exe

mute vol

For a complete list of commands which nircmd can interpret go here.

Expand NTFS Partitions

Expansion of non-dynamic NTFS partitions can be accomplished by using the Microsoft Utility called DiskPart.exe.  DiskPart allows examination of disks, volumes, and partitions. Cloning of disk and also expansion on existing partitions.

CAUTION! Use at your own risk – Disk corruption can occur if an application is using the partition while expansion is in progress.

Link to Microsofts full description of DiskPart Util
Download DiskPart Util from Microsoft

  1. Launch a command window Start -> Run
  2. type in diskpart, you will be placed at a DISKPART> prompt
  3. list disk to view all visible disks
  4. select disk <number>
  5. select volume <number>  Note you cannot expand a volume if the volume does not have extra unused space.
  6. extend volume <number> size=<number in MBs>
  7. exit exits the program…