- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Exported VG but didntmake map file. How can I get ...
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
11-05-2008 08:33 AM
11-05-2008 08:33 AM
Exported VG but didntmake map file. How can I get info back
I was in the process of removing FS to scracth and ffree the disk. I had unmounted FS and then I simply deactivated vg and then exported it without creating the map file. now I have disks id but I cant do pvremove since disks doesnt belongs to any VG. how can I remove PV on the disks or import it back because I HAVE TO FREE THOSE DISK.
Thanks!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2008 08:41 AM
11-05-2008 08:41 AM
Re: Exported VG but didntmake map file. How can I get info back
If u just want to make sure everything is deleted from the disks do a pvcreate -f on the disks..
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2008 08:43 AM
11-05-2008 08:43 AM
Re: Exported VG but didntmake map file. How can I get info back
what HPUX version are you using ..?
pvremove -f
man pvremove,
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2008 08:45 AM
11-05-2008 08:45 AM
Re: Exported VG but didntmake map file. How can I get info back
All you need to do is run "vgimport /dev/vg01 /dev/dsk/c0t1d0 /dev/dsk/c0t3d0". You will need to know the physical volume path.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2008 08:54 AM
11-05-2008 08:54 AM
Re: Exported VG but didntmake map file. How can I get info back
Once you vgexported the vg the disks assigned to that vg are now available for use.
Not sure why you want to do a pvremove ?
To use these disk on a new vg simply pvcreate /dev/rdsk/cxtxdx ( if it complains that it is used by another VG, ensure that it is not, and then use the -f option.
You can then use your normal procedure to create a new VG.
mkdir /dev/vgxx
mknox /dev/vgxx/group c 64 0xyy0000
vgcreate /dev/vgxx /dev/dsk/cxtxdx
lvcreate -L SIZE_MB -n NAME /dev/vgxx
newfs -o options /dev/vgxx/rNAME
edit /etc/fstab
mount /new/filesystem/mountpoint
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2008 08:58 AM
11-05-2008 08:58 AM
Re: Exported VG but didntmake map file. How can I get info back
to remove file system and VG
fuser â cu
bdf
umount
Verify it was unmounted
bdf
Remove the data
rm â r
Make a copy of ftsab
cp â p /etc/fstab /etc/fstab.
Vi /etc/fstab and remove the mountpoint entry
Remove the logical volume
lvremove
Choose Y when it asks if youâ re sure.
Verify the logical volume is gone
vgdisplay â v
If all logical volumes are gone from the volume group, remove the volume group
vgreduce
vgremove
rmsf /dev/
strings /etc/lvmtab â Make sure disks and volume group are gone
(by peform all the above steps "Logical_volume as well volume group has been remove) and no need perform the pvremove
considering vgreduce command will release the allocated PV_ from assigned volume Group ,
than you can perform pvcreate -f /dev/rdsk/cxtxdx "f" force make sure to specify the current disk name,
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2008 09:11 AM
11-05-2008 09:11 AM
Re: Exported VG but didntmake map file. How can I get info back
Once you exported the vg, it means those disks are free and not part of the exported system.
But you should understand that the data and LVM information's are still there on the disks without any modifications.
So you can import those disks on any other server and access the data. If you want those data not to be accessed by anyone simply run pvcreate -f
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2008 09:34 AM
11-05-2008 09:34 AM
Re: Exported VG but didntmake map file. How can I get info back
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2008 06:49 PM
11-05-2008 06:49 PM
Re: Exported VG but didntmake map file. How can I get info back
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2008 02:10 AM
11-06-2008 02:10 AM
Re: Exported VG but didntmake map file. How can I get info back
You don't really need to pvremove, but only remove the disks cleanly from the volume group e.g.:
vgreduce
vgremove
after that you need to remove /dev/
Doing so will leave "clean" disks. pvreate will not complain, you won't have to use pvcreate -f.
My 2 cents,
Armin