awk print output to 1 line

awk ‘{printf(“%s “,$1) }’ <file name>

Posted in Linux | Leave a comment

Designsync dword

I have no result found from Google regarding Designsync dword and i think i should share it out after getting the info from Designsync support. Command: grep -H ServerMaintenanceMode=dword:1 /<path>/<port_number>/PortRegistry.reg dword:1 = Normal operation dword:2 = Set server to read-only mode dword:3 = block all read and write access to server

Posted in A-la-carte | Tagged , | 2 Comments

Simple Home NAS solution

I have been thinking on having my home NAS and i did survey for a few market product like QSNAP or SYNOLOGY will cost me near to 1000USD , if i were to get a RAID-5 + hot swap features. I struggled for a while and decided to use the simplest + cheap solution for home NAS to host my photo + movie + mp3. Step 1 – Identify OS: 1. Freenas – FreeBSD based , i like FreeBSD because … Continue reading

Posted in Linux | Tagged , , , | Leave a comment

How to check if there is packet drop in Netapp filer

Command: netstat -I e4a -d Output: Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Collis Drop e4a 9000 none none 2007724074 1 2991841358 0 0 0   0 is the one you are looking for.

Posted in NetApp | Leave a comment

Proper way to delete snapvault relationship

I have problem with my backup in Netapp Protection Manager, the backup using snapvault technology just hang and unable to run any backup at all. This is a bug according to them and will be fixed in 8.0.2(hopefully). I always wanted to know the proper way to remove snapvault relation shop and i am doing this today. Note: create case in Netapp to assist you in case you are uncertain of anything, this guideline is just for information sharing and … Continue reading

Posted in NetApp | Tagged , , | 2 Comments

python script for simple write and delete test

Have been interested for python script and finally i got a chance to play with it. So the mission for today is to create the write and delete test for my environment. Local machine  —-COPY—>  Mounted filesystem in NAS Why i am doing so? to get a baseline for my write and delete operation.I will make use of “time” command to get total runtime for the script to complete the operation. So here goes the simple script(Feel free to provide … Continue reading

Posted in Linux | Tagged , | Leave a comment

ndmpcopy duration

I have to migrate a volume from filerA to filerB , instead of using snapmirror, i will give ndmpcopy a chance. Like snapmirror it is a block level transfer(lot faster than rsync). The benefit for this would be the single file/directory that we are able to move. snapmirror transfer entire volume while ndmpcopy, we can copy a single directory within a volume, and yet still using block level. Below is just the example output i have for references: I am … Continue reading

Posted in NetApp | 1 Comment

What to do with old small capacity pendrive/thumbdrive – part 1

Every time when there  is new pendrive/thumbdrive with larger released in the market, you will buy it for your mp3, movie, porn, iso…..junk files.  It is fun to have small little tiny things with more capacity. End up you will have bunch of pendrive laying around your offices. I love to reuse the old devices for other purposes. I have few suggestion on for the old pendrive: Load Linux into pendrive and apply it as rescue disk. Suggest Backtrack 3 … Continue reading

Posted in A-la-carte | Tagged , , , , | 1 Comment

fsck in SunOS 5.1 i386 processor

Yesterday was not a good day, gnome-session was dead in my Linux core machine causes some failure to my apps. My perforce proxy server is upside down,  seems like the hardware is dying soon. As usual, unless the server has death certification, else we will continue to squeeze it…. Trying to google around for SUN OS single mode (without cd) boot up so i can run fsck on root volume. This is the finding i have for SunOS 5.1 i386 … Continue reading

Posted in etc | Tagged , , | Leave a comment

LVM extend in live mode!

Q: I have a LVM(logical volume) in my Linux, i need to extend the size without offline the logical volume. A: You will need to ensure you have spaces in volume group. Assuming the VG name is : VolGroup00. [root@linux1 data]# vgdisplay — Volume group — VG Name               VolGroup00 System ID Format                lvm2 Metadata Areas        1 Metadata Sequence No  10 VG Access             read/write VG Status             resizable MAX LV                0 Cur LV                8 Open LV               8 Max PV                0 Cur PV                … Continue reading

Posted in Linux | Tagged , , , , | Leave a comment