- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Removing unused physical disks and adding bigger p...
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
Forums
Discussions
Discussions
Discussions
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
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
08-26-2003 02:19 PM
08-26-2003 02:19 PM
Removing unused physical disks and adding bigger physical disks
Many thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2003 02:25 PM
08-26-2003 02:25 PM
Re: Removing unused physical disks and adding bigger physical disks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2003 02:30 PM
08-26-2003 02:30 PM
Re: Removing unused physical disks and adding bigger physical disks
Removing the old LUN's can easily be done, but adding larger LUN's to a volume group with smaller LUN's will only give you access to the size of the smaller LUN's. Unfortunately when a volume group is created with the first LUN, that is the maximum size of any LUN that can be added later. You are better off creating a new volume group and starting fresh.
To create a new VG (check the minor number before using it 0x030000 is an example. You can check the used number by ll /dev/*/group
e.g.
# mkdir /dev/myvg
# mknod /dev/myvg/group c 64 0x030000
# pvcreate /dev/rdsk/cxtydz
# vgcreate -p 128 /dev/myvg /dev/dsk/cxtydz
# lvcreate -n -r N /dev/myvg/mylvol
# lvextend -L 1024 /dev/myvg/mylvol
The man pages provide some additional exmaples from these commands.
To remove the LUN's e.g.
# vgreduce /dev/myvg /dev/dsk/cxtydz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2003 02:37 PM
08-26-2003 02:37 PM
Re: Removing unused physical disks and adding bigger physical disks
There is an inherent problem in this. Unless you had the foresight to *originally* create the volume group with enough PE entents ('max_pe' and 'pe_size') to accomodate accessing all the physical extents available in new, large (18Gb or 36GB or 72GB) drives, any physical volumes you add to the volume group (with 'vgextend') will be constrained by the *original* LVM geometry. Your only choice is to backup the data on vg08. 'vgexport' it to remove it from the system; 'vgcreate' it using "reasonable" values for 'max_pe' and 'pe_size'; recreate your logical volumes and filesystems and reload your data!
To do otherwise (i.e. to simply 'vgreduce' the physical volumes (pv_paths) you don't want) and then to 'vgextend' new physical volumes, which represent larger disks, into the volume group, will mean that you will not be able to access the full number of physical extents on the new disks, thereby defeating the whole exercise of adding larger disks.
Therefore, 'vgreduce' the physical drives (pv_paths) you don't want from vg08. Use 'pvmove' if necessary to transfer extents from the devices you want to relinquish to the devices that will remain as vg08. Then swap your old physical disk for new ones. 'pvcreate' each new disk and build a new volume group and logical volumes beginning with 'vgcreate' and "reasonable" values for 'max_pe' and 'pe_size'.
See the man pages for the aforementioned commands for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2003 02:56 PM
08-26-2003 02:56 PM
Re: Removing unused physical disks and adding bigger physical disks
The problem is that I don't have any slots in the existing jamaica boxes to add the new hard drives. So I am forced to remove some, as yet, unused small drives (2GB drives), and add the larger drives in their place.
My questions then are:
1. How do I remove a physical from a volume group?
2. Are there any gotcha's in reusing the scsi ids associated with the Jamaica box?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2003 02:59 PM
08-26-2003 02:59 PM
Re: Removing unused physical disks and adding bigger physical disks
1: Use 'vgreduce vgNN /dev/dsk/cXtYdz' for each of the physical disk you want to remove.
2. No.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2003 03:04 PM
08-26-2003 03:04 PM
Re: Removing unused physical disks and adding bigger physical disks
By the way. vgexport is non-destructive so that if you remember which disks made up the vg, it's very easy to recreate the vg using vgimport.
If you want to blow away the entire VG (after backing up) then simply vgexport /dev/vg00 and 'poof' ... it's gone.
There is no problem at all in using the same SCSI target id's; the only restriction is that any disk (target) can belong to at most 1 VG at any one time.
Man vgreduce, vgexport for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2003 03:12 PM
08-26-2003 03:12 PM
Re: Removing unused physical disks and adding bigger physical disks
# vgreduce /dev/vg08 /dev/dsk/c?t?d?
When you create your new VG, it would be advantageous to create it to allow for bigger capacity disks to be added just in case you do that some time in the future. For the sake of an extra option NOW, you will save a headache later.
Tim