Physical volume "/dev/sdb" successfully created To do so, issue the pvcreate command as such: # pvcreate /dev/sdb Units = cylinders of 16065 * 512 = 8225280 bytesĭisk /dev/sdb: 25.7 GB, 25769803776 bytesĭisk /dev/sdb doesn't contain a valid partition tableīefore we can add the new disk to the volume group, we need to do a special format command that will turn the disk into a physical volume. If you perform an fdisk -l command, you should see the new disk. Now, let’s verify that we can see the new disk. Step 2: Add the new physical disk to an existing Volume Group. Once you have the new drive added (either physical or virtual), start the server up again and let Redhat boot. If you’re working with a physical server, you would need to add the new hard drive, and make sure the BIOS can see the new drive. For our demonstration, I’ll be adding a new 30G disk. Since we’re setup with a virtual machine, we just need to login to vSphere, shutdown the operating system, and add a new virtual disk through the Settings menu. Step 1: Present the new physical disk to the server. Notify the operating system about the change in size. Expanding a logical volume within that Volume Group to use the new disk space.Ĥ. Adding the new physical disk to an exisiting Volume Group.ģ. Present a new physical disk to the serverĢ. With these requirements in place, here’s a quick summary of what we’ll be doing:ġ. If you went the more classic route and just made partitions on the physical disks, this tutorial won’t be much help as you can’t expand existing partitions like that. LVM is the default type of disk management that Redhat uses, so you should already have that setup. It’s important to note that you can add more space to existing volume groups in a LVM setup. That disk only has 1G of free space, and you need to add another 25G to handle a new application’s install and projected growth. So, instead of getting that phone call or page saying that your server is out of space, you can manage your free space by adding more of it dynamically! Yes, with a single reboot of your machine (to install a physical or virtual disk), you can easily add more space and keep things running smoothly.įor demonstration purposes, this article will be focusing on adding more disk space to a virtual Redhat server which has a single virtual disk of 25G in size. I won’t go into a boring lecture on why managing disk space is critical, as I’m sure many of you are well aware of what happens when a server runs out of available disk space. It doesn’t matter what operating system the server is running, free disk space is always something you keep an eye on. One of the common tasks for any system administrator is managing disk space on a server.
0 Comments
Leave a Reply. |