Adding a New Disk Into an Existing Logical Volume
This document (7012431) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 10 All Service Packs
Situation
Resolution
umount /dev/serverdata/data
pvcreate /dev/sdb
vgextend serverdata /dev/sdb
lvextend -l +100%FREE /dev/serverdata/data
NOTE: The lvextend command is a very versatile command. The above syntax will expand data to use all free space in it volume group. It is possible to merely add a set amount of space, or set the logical volume to a specific size. If further information is needed on the above command, please refer to the man page for lvextend.
e2fsck -f /dev/serverdata/data
resize2fs /dev/serverdata/data
NOTE: Once again with the resize2fs command, this is a very versatile command. Without using any switches, resize2fs will extend the partition to the size of the underlying logical volume. It is possible to grow or shrink the partition to whatever size is needed, but for this information please look at the man page for resize2fs.
e2fsck -f /dev/serverdata/data
Additional Information
1) pvscan
2) vgscan
3) lvscan
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7012431
- Creation Date: 17-May-2013
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com