Adding a file system to a running zone
I needed to add a second file system to one of my Solaris 10 zones this morning, and needed to do so without rebooting the zone. Since the global zone uses loopback mounts to present file systems to zones, adding a new file system was as easy as loopback mounting the file system into the zone's file system: Once the file system was mounted, I added it to the zone configuration and then verified it was mounted: Now to update my ASM disk group to use the storage.
$ read more →Configuring active/backup bonded interfaces on CentOS Linux hosts
I have been doing quite a bit of experimentation with the Linux network stack in the past few weeks. One thing I have always liked about Linux networking is the bonding implementation, which allows you to aggregate one or more interfaces together for high availability purposes. To create a bonded interface on a CentOS Linux host, you will first need to locate two or more NICs to use. Once you locate a couple of NICs, you will need to create an ifcfg-eth[0-9] interface file similar to the following for each interface: The difference between these files and the typical interface definition files is the removal of the network information, and the inclusion of the MASTER and SLAVE directives…
$ read more →Manually adding a default route to a CentOS Linux host
I have come to rely on the CentOS and Fedora network initialization scripts to add default routes, but a situation occurred where I needed to add one manually. The route command syntax differs between Solaris, Linux and OpenBSD, so I thought I would jot down how I manually added a static route to my Linux host for future reference:
$ read more →Cleaning up eth[0-9]_rename files on Fedora core hosts
I kickstart'ed a Fedora Core 10 host last week, and decided to add a second NIC to the host to do some network bonding testing. Once the I added the NIC and rebooted the host, I noticed that one of the interfaces had the "_rename" extension: Network interface names are assigned by udev at boot time, and after a bit of poking around in /etc/udev I came across the following udev rule file: It appears that the the same mac address got assigned to both eth0 and eth1, which was causing one of the devices to get renamed during system initialization. To fix this issue, I updated the MAC address that was associated with eth0 rule, which allowed everything to come up cleanly. Udev is pretty sweet, and I will have to add it to my list of things to blog about it in the future.
$ read more →Berkeley Packet Filter support in OpenSolaris
While catching up with e-mail this morning, I noticed that the OpenSolaris community is planning to integrate the Berkeley packet filter into opensolaris: "This case seeks to build on the Crossbow (PSARC/2006/357[7]) infrastructure and provide a new (to OpenSolaris) mechanism for capturing packets: the use of the Berkeley Packet Filter (BPF). The goal of this project is to provide a method to capture packets that has higher performance than what we have to offer today on Solaris (DLPI based schemes.) It also has the added benefit of increasing our compatibility with other software that has been built to use BPF." This is awesome news, and each month it seems there are fewer and fewer packages I have to bolt on to my OpenSolaris installations. Nice!
$ read more →