Skip to main content

FreeBSD : Changing Disk Drives

I recently had to upgrade disk for a server running FreeBSD. The current disk was getting full and I wanted to remove the full disk and replace it with another disk with more capacity. The machine architecture is x86 and the server itself is a cheap workhorse serving as a log-server. At a time in the past, I had decided to have the log stored on a secondary (slave) hard-drive rather on the primary (It was actually a choice foisted on me by circumstances).

Anyhow, my current disk architecture was something like this (after running df -H)

machnie# df -H

/dev/ad0s1d                   /root  (note I omitted size - well you don't need to know that)
defsv                            
/dev/ad0s1d                   /tmp
/dev/ad0s1e                   /usr
/dev/ad0s1f                    /var
/dev/ad1s1d                   /logfiles

All I really planned to do was unmount /logfiles (note it is on a slave ATA - ad1) , remove (physical) the device and replace it with a new (higher capacity) ATA drive and remount to the same location - after formatting , of course. so here are the commands:

machine# umount   /logfiles

(I use ee to visit) /etc/fstab and commented out the line /dev/ad1s1d        /logfiles

I then shutdown the machine. Remove the slave hard drive and replaced it with the new one. I closed the machine and restarted it. (don't forget to remove power, etc).

Once machine started, I used sysinstall to access the formatting tools:

#machine sysinstall.

I formatted the drive (ad1)












I allocated all space to the mount point     /logfiles



Comments

Popular posts from this blog

Excerpts from a Messaging & Collaboration White Paper

Current Trends – Cloud (Hosted) Messaging Solutions Email is only one of a growing portfolio of services in what is routinely referred to as Unified Communication (UC) infrastructure. From the hardware and infrastructure point of view, this often means the integration of network systems for telephone (landlines), internet (data link), video (conferencing, cable etc.) and cellular communication. From the services point of view, the usual term is Unified Messaging (UM) – which encompasses email, voice mail, video mail, instant messaging, and SMS messaging. Other components of UM include social networking sites and tools such as RSS, Facebook, Twitter, Google Voice, Google Wave [1] , document management, project management and a growing catalog of innovative solutions. Messaging platforms are evolving and as vendors make these capabilities available in their free consumer versions, business user expectations are also being shaped by their experiences on thes...

iOS Developer Program License Agreement

LEASE READ THE FOLLOWING LICENSE AGREEMENT TERMS AND CONDITIONS CAREFULLY BEFORE DOWNLOADING OR USING THE APPLE SOFTWARE. THESE TERMS AND CONDITIONS CONSTITUTE A LEGAL AGREEMENT BETWEEN YOU AND APPLE. iOS Developer Program License Agreement Purpose You would like to use the Apple Software (as defined below) to develop one or more Applications (as defined below) for Apple-branded products running the iOS. Apple is willing to grant You a limited license to use the Apple Software to develop and test Your Applications on the terms and conditions set forth in this Agreement. Applications developed under this Agreement can be distributed in two ways: (1) through the App Store, if selected by Apple, and (2) on a limited basis for use on Registered Devices (as defined below). Applications that meet Apple's Documentation and Program Requirements may be submitted for consideration by Apple for distribution via the App Store. If submitted by You and selected by Apple, Your Appli...

Obama : The Country We Believe In

A speech by The President of the United States of America, Barack Obama, on April 13, 2011 at Goerge Washington University... Good afternoon.  It’s great to be back at GW.  I want you to know that one of the reasons I kept the government open was so I could be here today with all of you.  I wanted to make sure you had one more excuse to skip class.  You’re welcome.