1,834 reputation
214
bio website bitsofnix.wordpress.com
location
age
visits member for 1 year, 9 months
seen yesterday

Working mainly with Solaris and Linux.

System administration!


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
Aug
27
answered Backing up a large file
Aug
22
comment What is a good way of layering zfs filsystems to manage unpredictable future workload that doesn't severely compromise performance?
@jlliagre you are right, my mistake. But from what I understand ZFS will "order" a write or a read than after that needs to be "translated" for ext4 to get the correct positions. maybe I'll try to setup a similar env to check it out.
Aug
20
comment What is a good way of layering zfs filsystems to manage unpredictable future workload that doesn't severely compromise performance?
the redundancy is on pool level. The datasets are more for performance I would say. For example for normal root fs we leave the default, but if we are putting datafiles for a oracle db the filesystem would have a block size of 4Mb if I'm not mistaken.
Aug
20
answered How to build my own kernel ? Where should I start?