HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Extend Logical Volume...cont
Operating System - HP-UX
1834474
Members
3057
Online
110067
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
10-02-2004 09:30 AM
10-02-2004 09:30 AM
Ok I removed a filesystem called /workspace that was in vg01. There are other filesystems in vg01.
I want to use the 2 disks that were for /workspace.
I removed the lvol and /workspace.
Now I dont see the disks as 'unused' in sam.
So I ran a pvremove /dev/rdsk/c4t0d1.
Error message says /dev/dsk/c4t0d1 belongs to vg01, cant remove.
You can see my bdf listing in a previous post a few posts behind this one.
I want to use the 2 disks that were for /workspace.
I removed the lvol and /workspace.
Now I dont see the disks as 'unused' in sam.
So I ran a pvremove /dev/rdsk/c4t0d1.
Error message says /dev/dsk/c4t0d1 belongs to vg01, cant remove.
You can see my bdf listing in a previous post a few posts behind this one.
UNIX IS GOOD
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2004 09:32 AM
10-02-2004 09:32 AM
Re: Extend Logical Volume...cont
is this because the /workspace and the other vg01 lvols that I dont want to touch, are striped?
UNIX IS GOOD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2004 12:46 PM
10-02-2004 12:46 PM
Solution
Hi Robert,
YOu will have to remove the PV from the VG before you can do a 'pvremove' on it.
1. Make sure there are no more LVs on this PV.
pvdisplay -v /dev/dsk/c4t0d1 |more
You shouldn't see all extents free. If not, then you will have to move/remove LVs out of that PV.
2. Once the PV is free, remove it from the VG
vgreduce vg01 /dev/dsk/c4t0d1
3. Create a fresh PV on this disk.
pvcreate -f /dev/rdsk/c4t0d1 (you don't need to run pvremove as -f will take care of wiping out old structures)
Use it to do whatever you want.
If the some of the PVs are striped with this PV as one of the disks, then you cannot take this PV out of the VG.
-Sri
YOu will have to remove the PV from the VG before you can do a 'pvremove' on it.
1. Make sure there are no more LVs on this PV.
pvdisplay -v /dev/dsk/c4t0d1 |more
You shouldn't see all extents free. If not, then you will have to move/remove LVs out of that PV.
2. Once the PV is free, remove it from the VG
vgreduce vg01 /dev/dsk/c4t0d1
3. Create a fresh PV on this disk.
pvcreate -f /dev/rdsk/c4t0d1 (you don't need to run pvremove as -f will take care of wiping out old structures)
Use it to do whatever you want.
If the some of the PVs are striped with this PV as one of the disks, then you cannot take this PV out of the VG.
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2004 01:14 PM
10-02-2004 01:14 PM
Re: Extend Logical Volume...cont
Though you have removed the /workspace filesystem and corresponding LV the physical disk still belongs to vg01 that is the reason why you are not able to pvremove.
To confirm this do a strings on /etc/lvmtab and you'll see that disk still in /dev/vg01, so first confirm that there is no more LV configured on that disk bu using pvdisplay and then do a vgreduce to remove that disk from /dev/vg01 and then you'll be able to do a pvremove
Cheers
Rajeev
To confirm this do a strings on /etc/lvmtab and you'll see that disk still in /dev/vg01, so first confirm that there is no more LV configured on that disk bu using pvdisplay and then do a vgreduce to remove that disk from /dev/vg01 and then you'll be able to do a pvremove
Cheers
Rajeev
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP