![]() ![]() WARNING: Re-reading the partition table failed with error 16: Device or resource busy. Use the '''w''' command to ''Write'' the partition changes.Ĭalling ioctl() to re-read partition table.Once the partition has been created, reprint the partition table to verify the new partition. Last cylinder or +size or +sizeM or +sizeK (653-2610, default 2610): Note that you can only create a maximum of 4 Primary Partitions on a single physical disk.Choose the '''3''' option to create the ''Third'' partition on the disk.Choose the '''p''' option to create a ''Primary'' partition.Use the '''n''' command to create a ''New'' partition.Units = cylinders of 16065 * 512 = 8225280 bytesĬreate a new partition using the disks free space Use the '''p''' command to ''Print'' the current partition table.ĭisk /dev/sda: 21.4 GB, 21474836480 bytesĢ55 heads, 63 sectors/track, 2610 cylinders.At any point you can type '''m''' within the fdisk utility to see a list of all available commands.Here you will notice that the physical disk installed now shows up (after expanding) as a 20GB disk.In the fdisk utility print your current partition table for your physical disk Note below that I know the disk is sda because it is the only physical disk detected by the ''ls'' command ~]# ls /dev | grep sd.LV UUID hkTS2c-m0Ma-ijSc-sHDn-O16M-r6KA-DqirNXĬreate a partition for the newly expanded space (Gparted and other partitioning tools currently don't work well, if at all with logical volumes, otherwise we would use such a utility to expand the existing partition). LV UUID DXqKO2-gsKY-VN2w-L1om-Qxs7-8TF6-Xfk2RS From the Volume group I have 2 Logical Volumes, 1 of the logical volumes is mounted as the root file system, the other is mounted as ~]# pvdisplay The other partition makes up Volume Group 00 (sda2). One of the partitions is used as boot, and is not accessible to the file system (sda1). Note in the layout below I have one physical disk (sda) with 2 partitions. Lvdisplay is the ''Logical Volume'' display or volume display (This will display all logical volumes added from the Volume Group) ![]() (This displays all physical partitions that make up the VolGroup) Pvdisplay is the ''Physical Volume'' display. Multiple Physical Disks and/or Volumes -> Single Logical or Virtual Disk -> Multiple Logical or Virtual Partitions of the Logical or Virtual Disk.Īdd a new hard disk (if the server is bare metal machine) or expand the Virtual disk (if the server is a virtual machine).Ī reboot may be required if you have added a physical disk, as opposed to just expanding the existing oneĮxamine the current disk via the df utility df ~]# df -hįilesystem Size Used Avail Use% Mounted on So the simplified break down is as follows. From that single Logical or virtual pool, you can create logical or virtual partitions. This means that when building the server you can take multiple physical disks, or multiple partitions from a disk, or a combination of both and add it all to the Logical Group, or Storage pool. Note that in this depiction (taken from the Volume Manager Administration Guide), shows multiple physical volumes all utilized as a single pool. This model allows linux administrators to very easily expand volumes on the fly in the event that disk space on a mount, or even the root file system becomes full. Linux can use a function called Volume Manger to efficiently take multiple disks, and /or multiple partitions combined into a single pool or Volume Group (VolGroup00) from which Logical Partitions (LogVol00.etc) can be created. When dealing with Linux Enterprise servers, storage is handled a little differently then by the conventional single disk -> Multiple Partition model. Linux Volume Group /Logical Volume Management
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |