- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: taking a physical volume out of 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
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
03-23-2004 10:47 PM
03-23-2004 10:47 PM
taking a physical volume out of a volume group..
I have a faulty disk that I need to remove.
The disk is one of two physical disks in a single volume group (vg02) with a single logical volume (lv11). I have found that I don't need the space offered by the disk, so I want to just remove it and throw it away.
I have enough disk space on a second volume group (vg03) to put all the data from vg02 temporarily if necessary:
# bdf
/dev/vg03/lv12 17391900 7776629 7876081 50% /pf/index
/dev/vg02/lv11 34783776 5719763 25585635 18% /pf/db
How do I go about moving the data off of the faulty disk, removing the faulty disk from vg02, then recovering vg02 with just a single physical disk?
Many thanks for your help in this matter, I hope I have been clear.
Regards
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 10:51 PM
03-23-2004 10:51 PM
Re: taking a physical volume out of a volume group..
vgcfgbackup vg02
-Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 10:54 PM
03-23-2004 10:54 PM
Re: taking a physical volume out of a volume group..
vgextend vgXX /dev/dsk/blabla
pvmove /dev/dsk/faultydisk
vgreduce /dev/vgXX /dev/dsk/faultydisk
think abt it as pvmove may fail as u said disk is faulty !!!
If you do not have disk ...go for a backup remove the FS then re-create it on the new vg and then restore !!
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 10:56 PM
03-23-2004 10:56 PM
Re: taking a physical volume out of a volume group..
Defrag the filesystem.
use "fsadm" to reduce the filesystem
"lvreduce" to reduce the logical volume so that it only uses one disk.
"vgreduce" to remove the disk from the volume group.
If your physical extents can't be just reduced off the disk, then use "pvmove" to move all the physical extents off the faulty on to the good one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 11:18 PM
03-23-2004 11:18 PM
Re: taking a physical volume out of a volume group..
I have come up with the following, where c0t9d0 is the faulty disk, c0t10d0 is the good disk in vg02, both disks have 4340 LE's:
# pvmove /dev/dsk/c0t9d0 /dev/dsk/c0t10d0
# lvreduce -l 4340 /dev/vg02/lv11
# vgreduce /dev/vg02 /dev/dsk/c0t9d0
# vgcfgbackup vg02
So I:
1) move all data onto PV c0t10d0
2) reduce the logical volume in vg02 to the number of LEs on a single disk
3) remove PV c0t9d0 from the volume group
4) backup the new config.
I didn't understand what fsadm was intended to do? Is it a simpler alternative to pvmove? You implied I had to take the filesystem offline before I could do the above- what does this mean? Do I have to umount /pf/db?
Thanks a lot
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 11:24 PM
03-23-2004 11:24 PM
Re: taking a physical volume out of a volume group..
You won't be able to reduce the logical volume if the filesystem on it is too big. You therefore need to reduce the size of your filesystem too. If you have OnlineJFS you use "fsadm -b
You don't actually have to do the blocksize calculation though, you can go "fsadm -b 18432M
Other than this, the steps you outline are correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 11:24 PM
03-23-2004 11:24 PM
Re: taking a physical volume out of a volume group..
perform a full backup !!!
Does lvreduce has an argument for the disk ?
I don't have an hpbox in front !!!
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 11:26 PM
03-23-2004 11:26 PM
Re: taking a physical volume out of a volume group..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 11:29 PM
03-23-2004 11:29 PM
Re: taking a physical volume out of a volume group..
how do I know if I have OnlineJFS- and what if I don't?
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 11:34 PM
03-23-2004 11:34 PM
Re: taking a physical volume out of a volume group..
Online JFS comes bundled with HP-UX MCOE CDs. Or else you can purchase it from,
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B3929CA
-Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 11:36 PM
03-23-2004 11:36 PM
Re: taking a physical volume out of a volume group..
"swlist | grep -i online"
And if you have it, it will come up with something like
B3929CA B.11.11 HP OnLineJFS
If you don't have it, it's OK, you just can't do the job online and you have to unmount your filesystem first. Also, remember to de-frag your filesystem with "fsadm -e" before doing the reducing and ensure you have a backup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 11:36 PM
03-23-2004 11:36 PM
Re: taking a physical volume out of a volume group..
Is that you in that hat??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 11:49 PM
03-23-2004 11:49 PM
Re: taking a physical volume out of a volume group..
# umount /pf/db
# fsadm -e /dev/vg02/lv11
# fsadm -b 18432M /dev/vg02/lv11
< as above >
# mount /dev/vg02/lv11 /pf/db
Thanks for you time and assistance..
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 11:49 PM
03-23-2004 11:49 PM
Re: taking a physical volume out of a volume group..
I love this new hat .. :-)
-Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 11:58 PM
03-23-2004 11:58 PM
Re: taking a physical volume out of a volume group..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2004 11:59 PM
03-23-2004 11:59 PM
Re: taking a physical volume out of a volume group..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2004 01:39 AM
03-24-2004 01:39 AM
Re: taking a physical volume out of a volume group..
Is it one of the special options -o?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2004 01:51 AM
03-24-2004 01:51 AM
Re: taking a physical volume out of a volume group..
Copy all your filesystem data to another filesystem on another logical volume. Verify it is OK.
Destroy the logical volume that spans the faulty disk, "vgreduce" this volume group to remove the faulty disk and then recreate the logical volume and filesystem, copy your data back. I think this might be safer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2004 02:05 AM
03-24-2004 02:05 AM
Re: taking a physical volume out of a volume group..
so something like:
# cp /pf/db /pf/index/db
# umount /pf/db
# lvremove /dev/vg02/lv11
# vgreduce /dev/vg02 /dev/dsk/c0t9d0
# vgcfgbackup /dev/vg02
# lvcreate -l 4340 -n lv11 /dev/vg02
# mount /dev/vg02/lv11 /pf/db
??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2004 02:05 AM
03-24-2004 02:05 AM
Re: taking a physical volume out of a volume group..
# cp /pf/index/db /pf/db..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2004 02:13 AM
03-24-2004 02:13 AM
Re: taking a physical volume out of a volume group..
If you have more than the one file on there to copy you could use "cp -rp" to copy all the files AND preserve the permissions but it won't copy any .files though