Multipathd testing


  1. Format and mount the SAN LUN.
  2. Start a write to the mounted filesystem cat /dev/zero >> /pathto/mnt/testfile &
  3. Now connect to the multipath daemon in interactive mode multipathd -k
  4. View current paths with show maps topology

    multipathd> show maps topology reload: mpath5 (360060e801045249004f2a5f900000031) dm-7 HITACHI,DF600F [size=128G][features=0][hwhandler=0][rw] _ round-robin 0 [prio=1][active] _ 1:0:0:4 sdb 8:16 [active][ready] _ round-robin 0 [prio=0][enabled] _ 2:0:0:4 sdc 8:32 [active][ready]

  5. There are two paths shown as sdb and sdc. Delete one path. del path sdb

  6. Suspend with ctrl-z and check that the write is still happening. ls -l /pathto/mnt If testfile is still growing then the path sdc is working.
  7. Resume multipath with fg 2. Re-add the path. add path sdb
  8. Now remove the other path. del path sdc
  9. Again suspend iwth ctrl-z and check that the test file is growing. If so then resume multipath and re-add the path. add path sdc
  10. Testing complete. Exit with ctrl-c. Kill the write job with kill %1. Remove the test file.

GNU Screen cheatsheet


Change to other region ctrl-a tab
Change to other screen ctrl-a 0-9
Detach ctrl-a d
Help ctrl-a ?
Kill screen ctrl-a \
Kill region ctrl-a x
New screen ctrl-a c
Reattach screen -r
Serial connection screen /dev/ttyUSB0 9600
Split ctrl-a s

Subversion Cheatsheet


Add to working copy svn add
Backup to hot copy /opt/svn /opt/svn-backup
Change log view svn log file:///opt/svn/scripts/firewall/firewall-new
Checkout svn checkout file:///opt/svn/profile
Commit changes svn commit --message "Your log message"
Copy to working copy svn copy
Create respository svnadmin create --fs-type fsfs /opt/svn
Delete from working copy svn delete
Diff changes svn diff
Initial Import svn import . file:///opt/svn --message "Initial import"
Merging to current directory svn merge
Move file in working copy svn move
Remote Checkout svn checkout svn+ssh://@/opt/svn/
Revert all changes svn revert
Review changes svn status
Review commit log svn log
Update working copy svn update (may overwrite changes)
View file svn cat file:///opt/svn/profile/.profile
View repository tree svnlook tree /opt/svn