Prefetch Technologies // Keeping your cache lines cozy

Archive

Posts from 2007

Removing duplicate devices from vxdisk list

storageMar 17, 2007 1 min read

I replaced a disk in one of our A5200s last week, and noticed that vxdisk was displaying two entries for the device once I replaced it with vxdiskadm: DEVICE TYPE DISK GROUP STATUS c7t21d0s2 sliced disk01 oradg online c7t22d0s2 sliced disk02 oradg error c7t22d0s2 sliced - - error c7t23d0s2 sliced disk03 oradg online To fix this annoyance, I first removed the disk disk02 from the oradg disk group: Once the disk was removed, I ran vxdisk "remove" two times to remove both disk access records: After both device access records were removed, I executed 'devfsadm -C' to clean the Solaris device tree, and then ran 'vxdctl enable' to have Veritas update the list of devices it knows about. After these oeprations completed, the device showed up once in the vxdisk output: DEVICE TYPE DISK GROUP STATUS c7t21d0s2 sliced disk01 oradg online c7t22d0s2 sliced disk02 oradg online c7t23d0s2 sliced disk03 oradg online I have seen times where the Solaris device tree will hold on to old entries, which unfortunately requires a reboot to fix. Luckily for me, this wasn't the case with my system. Shibby!

$ read more →

Locating disk drives in a sea of A5200s

storagesolarisMar 13, 2007 1 min

I manage about a dozen Sun A5200 storage arrays, and periodically need to replace failed disk drives in these arrays. To ensure that I replace the correct device, I first use the format utility to locate the physical device path to the faulted drive: < ..... > 43. c7t22d0 /sbus@3,0/SUNW,socal@0,0/sf@0,0/ssd@w22000004cf995f6c,0 Once I know which device to replace, I use the luxadm "remove_device" option to remove the drive for replacement, and then run luxadm with the "led_blink" option to turn an amber LED on and off next to the faulted drive: Once I enable the led_blink option, I wander down to the data center, locate the drive with the blinking light, and swap out the failed disk with a new disk…

$ read more →

Monitoring md device rebuilds

storagelinuxMar 11, 2007 1 min

One super useful utility that ships with CentOS 4.4 is the watch utility. Watch allows you to monitor the output from a command at a specific interval, which is especially useful for monitoring array rebuilds. To use watch, you need to run it with a command to watch, and an optional interval to control how often the output from that command is displayed:

$ read more →

Adding a hot spare to an md device

storageMar 11, 2007 1 min

I am running CentOS 4.4 on some old servers, and each of these servers has multiple internal disk drives. Since system availability concerns me more than the amount of storage that is available, I decided to add a hot spare to the md device that stores my data (md2). To add the hot spare, I ran the mdadm utility with the "--add" option, the md device to add the spare to, and the spare device to use: After the spare was added, the device showed up in the /proc/mdstat output with the "(S)" string to indicate that it's a hot spare:

$ read more →

Getting live upgrade to work with a separate /var

solarisMar 4, 2007 2 min

While performing a live upgrade from Nevada build 54 to Nevada build 57, I bumped into the following error: Discovering physical storage devices Discovering logical storage devices Cross referencing storage devices with boot environment configurations Determining types of file systems supported Validating file system requests Preparing logical storage devices Preparing physical storage devices Configuring physical storage devices Configuring logical storage devices Analyzing system configuration. Comparing source boot environment file systems with the file system(s) you specified for the new boot environment. Determining which file systems should be in the new boot environment. Updating boot environment description database on all BEs…

$ read more →