Split can be used to split files into multiple files, making them easier to email or transfer. To split a file with the name of krypted into 100MB files, use the following command: split -b100m ~/Desktop/krypted krypted The files will then be called krypteda, kryptedb, kryptedc. To put Humpty Dumpty back together again use the cat command and > them into one file: cat krypteda kryptedb kryptedc > krypted
-
-
Replacing Xsan Metadata LUNs
Recently I’ve been noticing a trend where organizations with Xsan (and sometimes StorNext) are replacing older metadata LUNs with newer faster LUNs. This often involves replacing an Xserve RAID that sometimes has tens of thousands of hours of spin time on them with a Promise E-class or an ActiveRAID. The trend isn’t just with people I interact with though, as Duncan McCracken mentioned this at MacSysAdmin 2010 and Kuppusamy Ravindran (aka ravi) mentioned it back in 2008 in a post at Xsanity (he actually went way further and looked at actually splitting Metadata and Journaling, a post that is definitely worth a read). But as the pace seems to quicken…
-
chmod -x chmod
And here I thought I had some zingers… chmod -x chmod View more presentations from José Castro. Thanks Naveen@UUASC!
-
bdb and netatalk
I’ve been finding recently that practically every netatalk implementation is using bdb instead of cdb (the default), due to the fact that cdb seems to be more susceptable to corruption. To make this change, you open the netatalk configuration file at /etc/default/netatalk. Here you will see the following options: ATALKD_RUN=no PAPD_RUN=no CNID_METAD_RUN=no AFPD_RUN=yes TIMELORD_RUN=no A2BOOT_RUN=no To switch from cdb to the dbd scheme change CNID_METAD_RUN = no to CNID_METAD_RUN = yes. Save the netatalk file and then restart using the ‘netatalk restart’ command (with sudo or as root): /etc/init.d/netatalk restart No further changes need to be made in AppleVolumes.default or afpd.conf, but do be sure to check that the users…
-
Managing SyncPlans from the PresSTORE CLI
PresSTORE has a Synchronize module, that can be used to copy data from one location to another. This is done by the use of synchronization plans, or sync plans for short. Each plan is given a name and has a number of attributes associated with it, such as whether it is enabled or disabled. PresSTORE has a command line interface called nsdchat that is available at /usr/local/asw. To run it in interactive mode you can run the following command: /usr/local/asw/nsdchat From here, you can use the SyncPlan command to interface with the plans that you have created. To see a list of plans you will use the SyncPlan command from…
-
Setting up CHAP on LeftHand w/ CLI
LeftHand Storage uses the cliq command line for configuring their devices. cliq isn’t necessarily interactive and so we end up needing to specify the username, password and IP of the device with each command (although you can setup a key as well if you’re going to be doing automated tasks). One task that I’ve found to be pretty common is to use cliq to enable Chap authentication for volumes. To do so you’ll use the assignVolumeChap verb. Along with the assignVolumeChap verb you will need a number of options, each with an = for the payload of the option and delimited with a space between them. When using the assignVolumeChap…
-
Resetting a WordPress Password
Sometimes you can bite yourself a little when you experiment around with things. I installed a security plug-in and the next thing you know I couldn’t log into my own website. Ouch. Not a huge deal as it actually led to experimentation with the MySQL tables for WordPress, which oddly enough, I’ve typically just left well enough alone. But this I figured was gonna’ need to be updated eventually (although I relished the opportunity to get caught up on some stuff in the meantime). So first up, SSH into your box. Then fire up mysql: mysql -u root -p Turns out there’s a wp_users table in there. For my user…
-
Goodbye OpenSolaris/OpenStorage, Hello OpenFiler/OpenDedup
I’ve read a number of reports over the past couple of days that indicate the demise of Project Wonderland and Open Solaris. As it is open source I would not be surprised to see the project continue, even if forked and retitled in some way. Oracle will continue selling Solaris, but “nothing is for free” is about to take on a whole new meaning. For now it seems that any plans around packaging services around the FOSS stack surrounding former Sun products should be put on hold until further official announcements are made. “So now, less than five years later, you can go up on a steep hill in Las…
-
SCALE 8
The 8th annual Southern California Linux Expo (SCALE) is being held at the Westin by LAX in Los Angeles this weekend. It starts today (so I should have posted this sooner) and sports sessions on open source topics ranging from Zenoss to Sugar to Fedora. For more on the schedule check out the conference schedule at http://www.socallinuxexpo.org/scale8x/conference-schedule-feb-19-2010. This is one of those conferences that I’ve had to miss the last couple of years. But prior to that I was at the first few. The topics were mostly technical in nature, other than me the speakers/conference faculty were all top notch and the organization of the show is impressive. Given all…
-
Uniq Logs
Recently I’ve been looking at a lot of log files. And sorting through them can be a bit of a pain. However, there are some tools out there to help make this process a bit easier. The first of these is sort. If I have a log that has 1,000 lines, while I like to initially see any lines that are repeated numerous times so that I can see when servers are throwing a lot of errors, combing through them can get tedious. Sort will help to reduce the volume and organize them in a manner that makes sense. For example, to sort the logs and remove duplicate line entries…