- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- reducing a disk from the 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
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
07-31-2002 07:01 AM
07-31-2002 07:01 AM
reducing a disk from the volume group
volume size of 25GB. It has three 9gb drives.
It is a vxfs file system and about 8GB data is in the filesystem.
I want to remove one of the drives. Do I have to do lvreduce and vgreduce? If I do that is the existing data is safe? I want to retain the data without going thru restoring from the backup.
What is the best way to do this?
Thanks for the help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 07:04 AM
07-31-2002 07:04 AM
Re: reducing a disk from the volume group
You also have to shrink the size of the rlvol and, unless you have OnlineJFS, you will have to run newfs, which destroys the data and you will have to restore from backup.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 07:05 AM
07-31-2002 07:05 AM
Re: reducing a disk from the volume group
lvreduce is only a good idea if you have
a> backed up
b> defragged the filesystem
You need onlineJFS to do a.
Otherwise, backup fs, lvremove, lvcreate new size. Then pvmove.
You can find out what lvs are on the disk with lvdisplay -v and/or pvdisplay -v.
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 07:08 AM
07-31-2002 07:08 AM
Re: reducing a disk from the volume group
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 07:11 AM
07-31-2002 07:11 AM
Re: reducing a disk from the volume group
You will have to have the Online JFS to reduce the VG/LV on fly.
Before reducing LV/VG, defrag the LV and keep backup of your data.
With out Online JFS, you will have to backup your data delete the existing LV and re-create the LV of desired size.
Thanks.
Prashant Deshpande.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 07:28 AM
07-31-2002 07:28 AM
Re: reducing a disk from the volume group
Here is vgdisplay output. This logical volume is 25gb. and in production. I cannot afford to take time in restoring process. I need to remove one of the drives from this logical volume keeping the data safe.
If I do the pvmove can I reduce that drive from the volume group?
See the attached vgdisplay output.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 07:35 AM
07-31-2002 07:35 AM
Re: reducing a disk from the volume group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 07:41 AM
07-31-2002 07:41 AM
Re: reducing a disk from the volume group
These drives are not mirrored.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 07:49 AM
07-31-2002 07:49 AM
Re: reducing a disk from the volume group
I think Online JFS is the only choice for you now.
Can you run the following command and post the output. If the output means this FS is not really busy, I may have a solution for you.
# fuser -cu /
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 08:01 AM
07-31-2002 08:01 AM
Re: reducing a disk from the volume group
This time file system is getting used. When I am ready to do this the file syste will not be in use. So PLEASE GIVE ME THE TRICK.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 08:10 AM
07-31-2002 08:10 AM
Re: reducing a disk from the volume group
There is ac onfusion here in the vgdisplay o/p there are only 55 PE which are free ie you ahve about 200 mb free space where as you have stated that there is only 8gb used , If the o/p is of the volume group you want to remove first you need to reduce the data as all the 3 disks have nearly 100 % utilization. After teh data is removed or tarred then depending on which volume it frees it can be possible to remove the disk
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 08:22 AM
07-31-2002 08:22 AM
Re: reducing a disk from the volume group
This time file system is getting used. When I am ready to do this the file syste will not be in use. So PLEASE GIVE ME THE TRICK.
Here is what I think can work.
Assumptions:
- A is the current FS on which /dev/vg07/lvol1 is mounted.
- B is an existing FS which has more than 8GB empty disk space.
- A has STATIC data.
With the assumptions above, here are the sequence
# mkdir /B/A
# cp -pR /A/* /B/A
# umount /A (only when A is not busy)
# rmdir /A
# ln -s /B/A /A (this will behave as the original A now.)
# lvremove -f /dev/vg07/lvol1
# vgreduce /dev/vg07 /dev/dsk/c4t1d2
# use SAM to recreate /dev/vg07/lvol1 with /A_temp as a mount point.
# cp -Rp /B/A/* /A_temp
# rm /A (it is only a soft link. Do this when it is not busy only)
# mv /A_temp /A
# vi /etc/fstab to change /A_temp to /A
# rm -r /B/A
# done
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 08:32 AM
07-31-2002 08:32 AM
Re: reducing a disk from the volume group
lvreduce --> vgreduce --> pvmove.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 12:07 PM
07-31-2002 12:07 PM
Re: reducing a disk from the volume group
Thanks for the help. I want to ssign points for some reason that button is disappered "assign points". Can you tell me what is wrong?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2002 12:10 PM
07-31-2002 12:10 PM
Re: reducing a disk from the volume group
It is possible that your seesion has logged out from underneath you. Log out and log back in and see if this helps.
Regards
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2002 12:10 PM
08-01-2002 12:10 PM
Re: reducing a disk from the volume group
Still I cannot get "assign points" button after logging out and logging in. Please do not think I am ignoring to assign points.
Thanks