1,942 reputation
615
bio website bitsofnix.wordpress.com
location
age
visits member for 2 years
seen 2 days ago

Working mainly with Solaris and Linux.

System administration!


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?
Aug
20
answered What is a good way of layering zfs filsystems to manage unpredictable future workload that doesn't severely compromise performance?
Aug
16
answered Install kernel-devel of specific version in fedora 19
Aug
13
comment Removing lines based on tags for different files and merging into single file
take a look at grep -v and then redirect the output to a destination file. Use ">>" for incremental append.
Aug
12
comment How to figure out what is performing scheduled server reboots?
What have you tried to do? Does it reboot at the same time always? Did you check crontab for shutdown? did you analyze the maintenance scripts to see what is indeed doing? What do you see in the servers logs before boot up?
Aug
8
comment Solaris 11: Accessing a pool on disk from live DVD?
@BaardKopperud in Solaris the format command shows you the disks available. It does not actually format unless you say so. if you want to feel more secure echo | format will only display disks and exit. And as Michael stated those two guides will help you a lot.
Aug
8
comment Solaris 11: Accessing a pool on disk from live DVD?
if you do format you can see the disk from live dvd? What is the output of zfs import? could you paste both here?
Aug
7
comment How do I install Solaris 10 on a Sunblade 150 machine using external DVD drive?
what have you tried to do??? as far as I remember from external DVD drive it will be extremely slow to install Solaris. I believe your drive will be usb, if so it is at most usb 1.1. Be prepared to leave it overnight.
Aug
5
answered How do I get systemd to start my ZFS mount script before doing anything else?
Aug
1
comment How do I get systemd to start my ZFS mount script before doing anything else?
untested but I believe you need to update your multi-user.target to be dependent on your service, assuming that your other services start after multi-user.