Solaris

Migrating a Zone to a Different Machine on Solaris 10

Zones are one of the best features in Solaris 10 -- they're so lightweight that you can use them at almost no cost in performance. Today, I ran across a situation where one of my zones needed more RAM, and the box it was on didn't have it. Read on for how to migrate a Solaris Zone to a different machine, and an important update to Solaris 10/08 that makes the process so much easier.

5
Your rating: None Average: 5 (1 vote)

Upgrading from Solaris 9 with a Root SVM Mirror to Solaris 10 with a Root ZFS Mirror with < 10 Minutes of Downtime

As sysadmins, many times the entire task laid out in front of us has no documentation. One of the biggest skill an admin can have is the ability to problem solve, breaking down a large task into smaller sub-tasks. Often times, you might be able to find documentation on some of those sub-tasks. A perfect example is upgrading a server from Solaris 9 with root in an SVM mirror to Solaris 10 with a ZFS mirror. Not only is this large task doable, but thanks to LiveUpgrade, it can be done with less than 10 minutes of downtime (3 reboots @ roughly 3 minutes each)!

0
Your rating: None

Use LiveUpgrade to Migrate from UFS to ZFS with Minimal Downtime

Continuing on from the article on how to use LiveUpgrade to upgrade from Solaris 9 to Solaris 10, we now migrate our Solaris 10 UFS file systems to ZFS. LiveUpgrade handles the migration of the critical filesystems, we'll manually migrate three other filesystems from UFS to ZFS using ufsdump and ufsrestore to minimize downtime.

0
Your rating: None

Transcript of OpenSolaris Chat on Slashdot This Morning

Dangit, I knew I forgot something today!!! Today was the day that some very "in-the-know" Sun engineers participated in an open chat about OpenSolaris on Slashdot. For those of you like me who were too busy fighting fires to participate, here is a link to the transcript. I wish I could make it to CommuntyOne West this year, but I found out about it too late. Anyone going?

0
Your rating: None

Using the Sun StorageTek A1000 under Solaris 10

We have an old Sun StorageTek A1000 sitting around that we use as scratch space for our Amanda backups. Sure, it's old and slow, but it works very well for what we use it for. After upgrading to Solaris 10, the mountpoints worked, but I was getting a lot of complaints when loading the rdriver module from the Raid Manager application.

0
Your rating: None

LiveUpgrade from Solaris 9 to Solaris 10

Here's how to leverage LiveUpgrade to safely upgrade from Solaris 9 to Solaris 10 using a spare disk. No data is ever deleted, and to roll back to Solaris 9, all you need is one command and a reboot.

5
Your rating: None Average: 5 (1 vote)

Unmirroring a RAID 1 Root Volume on Solaris

It happens fairly often that you need to create a software mirror using SVM on Solaris. A smaller percentage of the time, you need to create a SVM mirror of your root partition. It doesn't happen very often at all, but there are cases where you want to unmirror your root partition on Solaris. I'll get into the why later, follow the jump for the howto.

0
Your rating: None

Breaking Bad Habits - Don't Use seq in Your Shell Scripts

Like most, I learned shell scripting by following examples. Well, unfortunately, most of the samples I learned from used the 'seq' binary to execute a simple for loop like so:

for i in `seq 1 10`; do
echo $i
done

I discovered why this is bad today - not all Unixes (Solaris and Darwin included) come with it. Not to mention we're forking a process where we don't need it. On bash, use the built-in brace expansion instead:

for i in {1..10}; do
echo $i
done
0
Your rating: None

Installing NRPE 2.12 from source as a SMF managed service in Solaris 10

Installing NRPE on Solaris 10 involves just a bit more than your normal './configure && make && make install' routine. However, all the dependencies are likely present on a freshly installed system, you just have to tell NRPE where to find it. There's one file you need to patch, and then it will install. From there it's easy to plug into SMF!

5
Your rating: None Average: 5 (1 vote)

Use lofiadm to mount an ISO in Solaris 10

As a Linux user, I've used

mount -o loop -t iso9660 /path/to/file.iso /mnt/tmp

more times than I can count. Not suprisingly, you can do it in Solaris 10 as well, there's just another step involved:

# lofiadm -a /path/to/file.iso 
/dev/lofi/1
# mount -o ro -F hsfs /dev/lofi/1 /mnt/tmp

The first command, lofiadm, associates the iso file to a block device managed by the kernel LOopback FIle driver. The second command is the same old mount command you're used to, you just point it to the lofi device.

To unmount:

# umount /mnt/tmp
# lofiadm -d /dev/lofi/1
0
Your rating: None
Syndicate content