1,934 reputation
515
bio website bitsofnix.wordpress.com
location
age
visits member for 2 years
seen 1 hour ago

Working mainly with Solaris and Linux.

System administration!


Sep
12
answered Using tcpdump to extract NFS RPC contents
Sep
12
comment Using tcpdump to extract NFS RPC contents
and for NFSv3 I see file contents but no filename :S
Sep
12
comment Using tcpdump to extract NFS RPC contents
What operation are you trying to do on the file? For instance, if I do vi filename, I can see a NFS call Open DH: hex value <filename>. NFSv4 after the GETATTR
Sep
12
comment Using tcpdump to extract NFS RPC contents
Not sure if it will help but from the RPC specification forthe NFSv3: ietf.org/rfc/rfc1813.txt it says " object The file handle of an object whose attributes are to be retrieved." SO I guess you will need to map the file handle from the tcpdump to the OS.
Sep
12
comment Is it possible to change the sector size of a partition for zfs raidz pool in linux?
running out of ideas here, but can you partition be unaligned? You can check with fdisk /dev/sdd. The start should be multiple of 8. If not, I'm afraid that you will need to backup, destroy, create a new pool (maybe specifying ashift=12 would be a good idea to force it) and restore !!!
Sep
12
comment Is it possible to change the sector size of a partition for zfs raidz pool in linux?
Could you put your current zpool status zfs_raid output, to see the raid layout?
Sep
12
comment Is it possible to change the sector size of a partition for zfs raidz pool in linux?
Not adding a spare or add new disk, doing zpool attach pool old_device new_device, this will mirror the old_device to the new_device, then you detach the old_device from your mirror after resilver: docs.oracle.com/cd/E26502_01/html/E29007/gayrd.html#scrolltoc <- info about attach/detach and the differences between add and attach.
Sep
11
comment Is it possible to change the sector size of a partition for zfs raidz pool in linux?
Can't you do instead zfs attach zfs_raid <file> <device> and after sync zfs detach zfs_raid <file>
Sep
9
comment Error building Oracle client 11g R2 on RHEL 5.5
Have you check the log file? INFO: /bin/sh: line 2: /usr/bin/gcc: No such file or directory. where is the gcc binary?
Sep
9
answered My at command failed to reschedule. How can I debug this?
Sep
4
revised How do I run the same linux command in more than one tab/shell simultaneously?
deleted 5 characters in body
Sep
4
comment How do I run the same linux command in more than one tab/shell simultaneously?
@Arpith the screen spawn several terminals in a single one. If you want to see all of them in "real time" then you can use screen. Although personally I would go with logfiles, you can set up your prog to send a message or actually have your own prog writing a logfile for each instance (ex: myprog.pid.log)
Sep
4
answered How do I run the same linux command in more than one tab/shell simultaneously?
Aug
30
comment Linux: I need to create installer for my own application using shell script
you can also take a simple approach. How do you do in command line? save all the steps and they implement them in the script. $? eq 0 is a condition to evaluate if the output of the previous command executed properly.
Aug
30
revised What does mdadm's “spare” number mean?
added 671 characters in body
Aug
29
revised What does mdadm's “spare” number mean?
added 175 characters in body
Aug
29
answered What does mdadm's “spare” number mean?
Aug
28
comment Backing up a large file
and by logrotation I mean, when you start logging if there is already a file then do something like this, mv logfile.orig; touch logfile. You can improve this by adding a counter and have instead logfile, logfile.1, logfile.2, etc
Aug
28
revised Backing up a large file
added 4 characters in body
Aug
28
comment Backing up a large file
copying takes time and from what I understood the file could be re-written while being copied. the move is just faster since it only changes the inode that has the file location on disk. updated the code as well to rm file1.bck