During that same time, I've taken to using Oracle Enterprise Linux for all my software installs, from the database (11gR1 > 11gR2), OBIEE (10.1.3.4 > 11.1.1.5), Informatica components, so on and so forth. I can say with all honesty now, that I would prefer a nix install over a Windows 2008 Server install (security being the biggest issue I have, not that it's bad, I have no idea...let's just say I find it annoying that if I can install the software, I should have access to the directories...which apparently I don't).
All of my testing is done with VirtualBox. For my XP virtual machines, I've gotten to the point where I simply clone an existing "base" VDI and use that (for clients mostly, and some OBIEE software).
Often times I'll allocate n GBs of space. Occasionally, like with my first few attempts with OBIEE, I don't allocate enough space. For me, that means recreating the entire VM with n + x number of GBs. Silly, I know.
I don't have to do that any longer, I finally learned how to add space without starting from scratch. Yay for me.
First up, I go into the settings of the VM (while stopped, of course) and add a new SATA controller. I select Create new disk.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx1hkHG6VgfAfCTtYWoof7no8IycfmP9x99j7hz1C8wfcjwnm9j_zWTW2OcMpt_qSRa0cQSJ77Tr5L1md6fqSoIIrX0-FLVLi1YaaIZTG10-O9YtEV-mE2gH0NwS-vgMJxkTCno6a5tiGd/s800/01_add_disk.jpg)
Please ignore the "10" GBs part, I had taken those screenshots last week. I'm actually adding 100 GBs for the remainder of this exercise. I choose a location, name it and give it a size in GBs.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhakqX7cs1FZrY0fgyML9__9CTddUjjUjEeoOFAfJcTHVSBYyAnRdFWbBuI5uXGFCB8X_f_KGepZVklF8oOfXTAtYcojgHDMSoqESnU8q7qg9j9NZkcSw9091WC7h-uT_M5F21Q7BbKMu8e/s800/02_add_disk.jpg)
Now you can see (forget the 10, it's 100) it listed in the Storage section of the VM Settings
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU-9l5hl0awB8Ef5fr7N2seftppIQBS4hPFYGEgAnRjEUDh2xrYGpJZP5XbTb8o10_ccl0DLOFkOctW0tNrfJQcxg_bwZsk1D9ErdCAPvw8i4datJXpny5Qrz6nYPeRDK2201cr3FzOJX7/s800/03_add_disk.jpg)
So now I fire up my VM (OEL 5.7), go to System > Administration > Logical Volume Managment. You'll be prompted for the root password.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEeQpJe1yrAdrIsrTtqttwRtV7j2oUbnVPAClFTAx1Q1MdM9Ksjkj8U-a9BOWLOjJXqvhTF8I21ydyjj1Ln6RgWD8H1tMEk2NNpOxFxjXgr1U8g0498QD49AD4wR9MLgXdcMsqVnzalDM/s800/01_lvm.jpg)
Under the Uninitialized Entities, you should see the disk you just added. Select Initialize Entry.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsM8IE_Om5sajxuWJkI6nT7LNjhidWm2EtWVsDH0LVNYbgiasoSVgdzwM-7jE4UoIECIJiprzR5HR64G4TQZxnJDHIs2-VTNiWkGnWbKZkhu93pwE08RJfIRSGd5KV18BNDq2wdRxOhrke/s800/02_lvm.jpg)
Blah blah blah. Yes.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcqM5CMc-GHVjV5hUwwP_9VM3vTxNwxg5L3KPmNLmNotK0BW9l0jdQXgJcVVmk-6WjnVysSpKlmULGPkLaNkDvM9eRKHPLsyRJ3SaXeB3GD6fpX3TeHwdLToG6sRH74ggTA0KQJN0TDkyM/s800/03_lvm.jpg)
Blah blah blah. Yes.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjueFY3H03ozFBb6zgBKK921Mlitw2KjGlqmaxNom0fBHlcT9Ysha8nMMKl51nlmoakE6B3VGQYct-QiuyAvEK10Yf0ARcXrLpIxD0hyYbgmOFCPDIkeJFO94b6QaOJXdQj-z5D4gTbe0TZ/s800/04_lvm.jpg)
Now it's migraterd up to your Unallocated Volumes section. Add to existing Volume Group.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgog2z8oOd5GpycXYoChPtfjrdE09rTyLVCkKAccfdpCbsl4gw49-EOj177ORWjFiVLeQUbOy-fbgAJ98tAslfTlKhfIfC-DZgkz8nIbn90s1hDON7kIVlcI_gR6CvEMEp9utsud6bSLcqF/s640/05_lvm.jpg)
You should be prompted with your currently existing Volume Group, in my case, VolGroup00. Select it and then click Add.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgr88UdadTIP5eSAxVN9yzxNikDMbninP5y8e3pn1efeZsDQ6OCT2p3iSVnKOkQCJeH7duuzS8GLyMtopy_pk4JFXu48QG60x6UjP3Qu89IAAtr6KLGDGg2mO0OPwR-wssAnfgZCOmRwVgB/s800/07_lvm.jpg)
Here's a picture of what I have allocated so far, 4.8 GiB (the rest is swap space)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYEQp3t_sjnNTeGTLJ-UySg6TYBtCo5VJfBkqTPUtGTZ95YITAKDfRzR2V5In_YA45FYIQBcjlwPPEC_G46oSjCO4RBOcoQNtE2ogDWyRPe7r7MXeGO-z7ztSLwIhYtLn7YqxhI88RV47T/s640/09_lvm.jpg)
Now, under VolGroup00 (Logical View), select Edit Properties
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsD0yIW9QrKF7i3102hMIJ8zSkf7y7e03bK7bAqbNxUsL1NathMIUAls7BwD237SP86DEYnEH9o22XawHLkJakFDjOcQWfoK6_ysiWlU7ttGkwyJ6tui_d4nHM7buAghBgWQo3YvUnXugH/s640/12_lvm.jpg)
You'll be prompted with the Edit Logical Volume dialog. On the slider, you can see that it goes up to 104.97 and just below that a, "Use remaining space for this volume: 99.97 Gigabytes"
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8wGKLnqLmnyKYMtlfUYs2Ew9r1gJCqjBxeiFyBn_6W0UXrqCFtjiW3APXWiRIU3cx38Sj18dWjWDsVRBNuaTmNojjOG8aRwjdT_F27wAzltEFzHKuN0f6MGJBUvtQ2BFoc_R0Vr_w015Z/s800/13_lvm.jpg)
You can choose either one.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrRNM0I8ppb_vmI3-E24Yk7ruWXEbZj4aXmRf0FJk9KkWdDpdHdTOB_9fWgNawsi4YWw7Iowi9o5Joc4N1rQ_LI3K3smIpIEolRRXiz2RF2s-RanwR-YoyNKJaEoHpAw-uD5GVIGUnxQI/s800/14_lvm.jpg)
Now you can usee that VolGroup00 has 2 physical volumes which comprise it, sda2 and sdb1, sdb1 is the one I've just added. To the right, you can see the Volume Group Size is now 109.84.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCXlZtj84OdJyyMrF2VL2jDdaRyb1RVqVoP4w7L7Csddz_ll0qCetae3RYYWza6XR86utD7zmr3MINNK_SOTkxydRuHpTxDoCsS9KF7-75iBOGVUS-dObF2yj8nz3-V7Ow3A5ehZ6250Y/s640/15_lvm.jpg)
And finally, System Monitor shows that I now have a total of 101.7 GiBs associated with VolGroup00-LogVol00
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSwKjQnDT3ytupKw6GYcsQQJICkkJnil1Yg_KPFUgQxWoAPgEN1hY3lRPPSjAwQ_I4DEmTtvcqEoOc_yacVp_YBz-ITO8dp5zLgPOe0Q0nGOOOVDiIpQKBAse4ibIJf1EVo2PhtM8-dEnH/s640/16_lvm.jpg)
It's as simple as that.
Someday I'll figure out how to add different disks (well, technically they are different disks, just logically only 1) so that I can layout my tablespaces a bit better. For now though, no more recreating virtual machines just because I didn't plan well enough.
No comments:
Post a Comment