Monthly Archives: June 2012
Over the past year or so there have been a few times where I've need to expand a disk attached to a Debian system. Now this isn't a hard task by any means, and may not even warrant a blog post, but the matter of it is that I always seem to forget the steps I need to take to get that unallocated space that I've added next to my actual EXT3 partition since the swap partition is always in the way! So, I thought I would just throw up how I've done it in the past in hopes to maybe help a few others that visit, but more-so for myself and my memory (or lack there of). Now keep in mind I'm sure there are ways to perform this exact same thing without taking the VM online, or I'm sure there are other 'better' ways to achieve the same results, but this way has worked for me consistently so it's what I chose to do. Any other suggestions are certainly welcome in the comment box below.
First off, you will need to expand your drive from within the vSphere Client, not rocket science here, pretty simple to do. Next, get yourself a copy of gparted and mount the ISO to your VM and reboot booting into the gparted interface (accept all defaults for keymap, X, and resolutions, unless of course you like playing…). So the first thing you will notice inside gparted is that the swap partition is right smack in the middle of your EXT3 partition and the unallocated space. Normally, you could just resize the EXT3 partition and consume the unallocated space, but with swap there you can't.
So, the goal is to migrate the unallocated space to precede the swap partition. This is done so using the following procedure..
First, resize your extended partition (not the one labeled linux-swap) to include the free space. In my case this is done by selecting /dev/sda2 and then selecting the Resize/Move button. In the popup, simply drag the arrow on the right side of the bar to include all of the free space available and again select Resize/Move.
Just to note, we are not actually performing and moves or resizes at this point, we are simply just creating a chain of commands that gparted will follow once it is applied. You can either apply at the end of each step, or wait till the bitter end and do it, its up to you. Either way when you are done, you should see your unallocated space move into /dev/sda2 as shown below.
So, as you can see from the screen capture, the next thing we need to do is move that swap partition to the end of /dev/sda2. This will allow us to proceed with the next few steps that we need to perform in order to accomplish our end goal of expanding /dev/sda1. This time we will need to select the linux-swap partition (/dev/sda5) and select Resize/Move. Inside the popup, this time click the actual white space inside the partition and drag the complete box over to the right (don't use the arrows). This will move the swap partition to the end of /dev/sda2 for us which we will next resize. Once your looking like the below images, again, click 'Resize/Move'.
Alright, now we are getting somewhere, you should be looking pretty similar to the shot below by now. And yes you guessed it, now we need to move that unallocated space right outside of /dev/sda2 in order to make it available for the expansion of /dev/sda1.
So, once again select /dev/sda2 and select 'Resize/Move'. This time we will use the arrows. What we want is to move the left arrow this time to the right all the way over to edge of the yellow box (swap). This will resize the complete /dev/sda2 to the same size as the swap it contains (/dev/sda5) and in turn, create that unallocated space in between the partitions. Once done, click 'Resize/Move'.
Alright, almost there, you should be somewhat similar to the screenshot below. Our unallocated space is now directly next to our EXT3 partition and no long a member of /dev/sda2.
At this point I usually apply the first three operations before the expansion. I've noticed sometimes the process will error out if trying to do the following steps without applying first, so go ahead and apply those operations (Hit 'Apply')
So we are now able to simply extend /dev/sda1 into that unallocated space. Similar to when we extended /dev/sda2, this time select /dev/sda1, click 'Resize/Move'. In the popup as we did earlier, select the arrow at the right side of the partition, and drag it to the right to merge sda1 with the unallocated space, when done, select 'Resize/Move'.
So, there you have it! We have moved that unallocated space into our EXT3 partition. Go ahead and hit apply again to commit that final change and at the end of the process you should have a larger /dev/sda1.
Now, like I said at the beginning, I'm sure there are ways to do this while the VM is online, or I could be doing things completely wrong, but this way has consistently worked for me for both Linux and Windows guests. That being said, I'm open to other suggestions, leave them your comments, concerns, thoughts, etc below in the comments … 🙂
Over that past few weeks I've been lucky enough to be going over a reviewers copy of Brian Atkinson's (blog/twitter) new book VMware Certified Professional on vSphere 5 Study Guide. During my VCP journey I have been through a lot, and I mean A LOT of study material (listed here) and let me say I wish I would have had this book during my studies.
First off, when you purchase this book you get way more than just a book. In addition to the 753 pages, yes, 753 pages of exam oriented material you get the following…
- Tear card to help you align exam objectives with page numbers in the book.
- Practice questions at the end of every chapter (key for evaluating and knowing where you stand in certain areas)
- ONLINE ACCESS – Wow, you get an assessment test, all the chapter questions from the book, flash cards and a searchable glossary!
Honestly, the name of this book could be a little lacking…sure it's a great Study Guide for the VCP 5 certification, but in my opinion it can be used for way more than that. As a day to day VMware Administration you can (and I have) use this book as a point of reference to flip through and learn how to perform certain tasks, functions, features, etc…
The book is jam packed full of information and real-world scenarios and it is organzied in such a way that aligns with the VCP 5 blueprint. Aside from just information, there are a ton of exercises or labs that you can go through in order to gain that hands on experience, as well, each chapter ends with a summary, a section outlining the exam essentials for that chapter, and a set of questions to help you assess what you have just read. This layout makes it very easy for you to be sure that you have accomplished everything that the blueprint requires and helps you prepare for almost anything the VCP 5 exam can throw at you.
Brian Atkinson, the author of this book has been a vExpert since 2009, and is very well known from within the community. In my opinion he has hit a homerun with this publication and I would recommend anyone looking to begin studying for the VCP to grab yourself a copy of VMware Certified Professional on VSphere 5 Study Guide. You won't regret it… You can check it out officially from the publisher here or also over on amazon. Also check out Brian's blog over on the VMware communities site. Good luck on your exam!
Are you a VMware vExpert, VMware Certified Instructor (VCI), Microsoft Most Valuable Professional (MVP), Microsoft Certified Trainer (MCT), Citrix Technology Professional (CTP) or a Citrix Certified Instructor (CCI)? If so you are in luck!!! StarWind Software, the makers of the innovative iSCSI SAN software announced that they are now giving away NFR license keys of their High Availability SAN solutions to the groups listed above. No way you say, yes way, you can head on over to this form to claim your copy of the StarWind iSCSI SAN, StarWind Native SAN for Hyper-V as well as the new VM Backup solution that they have.
It's great to see companies like this recognize the time that individuals from those communities put into 'spreading the word' and make it easier for all of us to gain access to the technologies that we need access to. It makes everything so much easier when you arn't dealing with multiple trial licenses and expirey dates. You can check out the official press release here.
One note, you only have until the end of September to get over there and get your keys, so go sign up, and if the form is too tricky for you simply send a message over to Roman Shovkun [email protected] (CSO of StarWind).
Now I've never worked for the army/military and I really have no experience with them, but I'm sure that it takes a lot for them to give their stamp of approval on a product or solution. Also, there must be strict security, compliance, and sustainability requirements that vendors and solutions must meet in order to receive such an honour. Well, I'm proud to say that one of my sponsors, StarWind Software has met just that and recieved the Certificate of Netwothiness from the US Army. You can check out the full press release here and while your there you might better go and grab yourself a copy of their free iSCSI SAN. That's right, you can get the same security, comparability, and sustainability in your organization knowing that the US Army has put their support behind it, and you can get it for free. Congrats StarWind.
For those that may be interested there is a new course on the mylearn portal called vCenter Operations Manager Fundamentals. I went though this course over the last few weeks and it is pretty awesome… It takes you through the installation and configuration of vCOps and explains the major/minor badges, describes how to use all the tabs effectively and also walks you though setting up Smart Alerts and reporting.
So, if you get some spare time go and check it out. It's an eLearning course so you can come and go as you please picking up right where you left off, or simply skip to the areas that are of interest to you… And, it's free, so why not? Head on over the mylearn.vmware.com and login and get yourself enrolled…
Below is the course outline…
- Technical Overview of vCenter Operations Manager covers the vCenter Operations Manager 5.0 vApp architecture and resource requirements, the vCenter Operations Manager 5.0 vApp installation considerations, and introduces you to the major and minor badges.
- Installing and Configuring vCenter Operations Manager discusses how to install and configure vCenter Operations Manager.
- Using the Dashboards and Badges explains the main function of the major and minor badges, how to interpret the badge results, and how to configure thresholds and notifications.
- Operations and Planning describes how to use the Operations tab and the Planning tab.
- Working with Smart Alerts and Reports covers how to configure and use smart alerts, how heat maps are used, and how to work with reports.