- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Adding a disk to a volume group
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2003 06:25 AM
тАО03-07-2003 06:25 AM
I have a volume group called vg02. When running a "strings" command for the /etc/lvmtab file I get the folloing output for the vg02 volume group.
/dev/vg02
/dev/dsk/c2t0d0
/dev/dsk/c2t1d0
I have added the new disk to the system and the device file name is /dev/rdsk/c2t2d0. I intend to run the following.
# pvcreate -f /dev/rdsk/c2t2d0
# vgextend /dev/vg02 /dev/dsk/c2t2d0
Do I need to unmount the logical volumes for this VG before proceeding?
I am also assuming that after exting the volume group I can extend to logical volumes in this group.
Thanks in advance,
David Owens
Ingersoll-Rand
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2003 06:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2003 06:32 AM
тАО03-07-2003 06:32 AM
Re: Adding a disk to a volume group
Only one caveat is that c2t2d0 should not be of bigger size than the other two disks unless you created the volume group initially with a non-default max physical extents attribute. Your vgextend will give you an error anyway if that is the case.
Just to be on safer side to make sure this disk is already not used, do
strings /etc/lvmtab |grep c2t2d0
Your process is precisely correct along with your assumption unless you created striped volumes on two disks which I think is a rare possibility.
You do not need to unmount logical volumes.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2003 06:34 AM
тАО03-07-2003 06:34 AM
Re: Adding a disk to a volume group
If you are adding a large capacity of disk and if the VG was created without considering future updates (options of vgcreate), then you will get only the same amount of disk space as of the others.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2003 07:21 AM
тАО03-07-2003 07:21 AM
Re: Adding a disk to a volume group
lvextend(1M)
Increase the size of a file system existing on a logical volume.
First, increase the size of the logical volume.
lvextend -L YYY /dev/vg02/lvolX
Unmount the file system.
umount /dev/vg02/lvolX
Extend the file system to occupy the entire (larger) logical volume.
extendfs /dev/vg02/rlvolX
Remount the file system.
mount /dev/vg02/lvolX /mnt
Only in order to remove a volume group, the file systems must be unmounted.
Regards,
Sergejs