HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Create VG, LV, and FS Using Old Configurations
Operating System - HP-UX
1836596
Members
1988
Online
110102
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
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
08-02-2005 10:24 PM
08-02-2005 10:24 PM
Create VG, LV, and FS Using Old Configurations
Hi Unix Gurus,
I want to format some of our existing hard disks that belong to certain vgs and reattach them again to those vgs because of some files have damaged that reside on that vgs.We use mirroring method.
These are my lvmtab for vgs that I want to rebuild them:
/dev/vg03
/dev/dsk/c3t8d0
/dev/dsk/c3t9d0
/dev/dsk/c6t9d0
/dev/vg04
/dev/dsk/c2t0d2
/dev/dsk/c4t1d2
/dev/vg05
/dev/dsk/c2t0d0
/dev/dsk/c4t1d1
/dev/dsk/c4t1d3
/dev/dsk/c4t1d0
/dev/dsk/c2t0d1
/dev/dsk/c2t0d3
vg03 that contains as follow:
lvol1 VxFS 34720 MB 0 /u01
lvol2 VxFS 34720 MB 1 PVG-strict /u02
lvol1 using /dev/dsk/c3t9d0
lvol2 using mirroring methode between /dev/dsk/c3t8d0 and /dev/dsk/c6t9d0
Please help me step by step to rebuild my file system.Thanks a lot.
I want to format some of our existing hard disks that belong to certain vgs and reattach them again to those vgs because of some files have damaged that reside on that vgs.We use mirroring method.
These are my lvmtab for vgs that I want to rebuild them:
/dev/vg03
/dev/dsk/c3t8d0
/dev/dsk/c3t9d0
/dev/dsk/c6t9d0
/dev/vg04
/dev/dsk/c2t0d2
/dev/dsk/c4t1d2
/dev/vg05
/dev/dsk/c2t0d0
/dev/dsk/c4t1d1
/dev/dsk/c4t1d3
/dev/dsk/c4t1d0
/dev/dsk/c2t0d1
/dev/dsk/c2t0d3
vg03 that contains as follow:
lvol1 VxFS 34720 MB 0 /u01
lvol2 VxFS 34720 MB 1 PVG-strict /u02
lvol1 using /dev/dsk/c3t9d0
lvol2 using mirroring methode between /dev/dsk/c3t8d0 and /dev/dsk/c6t9d0
Please help me step by step to rebuild my file system.Thanks a lot.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2005 11:01 PM
08-02-2005 11:01 PM
Re: Create VG, LV, and FS Using Old Configurations
Well, technically, you can vgexport any vg and then do your vgimport AND define only what disks to bring back in:
vgimport -m vg /dev/dsk/c-t-d- /dev/dsk/c-t-d- ......
....but I'm not sure that's what your needing or wanting. If some files are damaged, then restore them from your backups (tape or whatever). Because doing specific vgimports is not something you do normally and if your not familiar with it you could cause more damage than good.
Hope that helps,
Rita
vgimport -m
....but I'm not sure that's what your needing or wanting. If some files are damaged, then restore them from your backups (tape or whatever). Because doing specific vgimports is not something you do normally and if your not familiar with it you could cause more damage than good.
Hope that helps,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2005 07:47 PM
08-03-2005 07:47 PM
Re: Create VG, LV, and FS Using Old Configurations
Hi Zap,
You can proceed in the following way
use #pvdisplay on each disk
draw rectangle for each disk with lvols on it (if its mirror copy, if possible mention the size also)
plan to move the lvols to other disk (e.g in your example above, if you have enough space on c3t9d0 break mirror of lvol2 on c6t9d0 and mirror lvol2 on c3t9d0, So you get c6t9d0 disk free...)Similarly you can plan for other VGs. (Draw simple sketch which will give you idea)
Cheers!!!
eknath
You can proceed in the following way
use #pvdisplay on each disk
draw rectangle for each disk with lvols on it (if its mirror copy, if possible mention the size also)
plan to move the lvols to other disk (e.g in your example above, if you have enough space on c3t9d0 break mirror of lvol2 on c6t9d0 and mirror lvol2 on c3t9d0, So you get c6t9d0 disk free...)Similarly you can plan for other VGs. (Draw simple sketch which will give you idea)
Cheers!!!
eknath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2005 07:55 PM
08-03-2005 07:55 PM
Re: Create VG, LV, and FS Using Old Configurations
Hi,
What you are trying to do is not required in any sense. If you have logical corruption for files then you can restore from backup 9 in fact that you will do after recreation). You can go for recreation of file system at the max which will remove the contents of the LVOLs.
For achiving this follow.
1. Unmount the file systems you want to recreate.
#umount /u01
#umount /u02
2. Run newfs command on all those one by one
#newfs -F vxfs -o largefiles /dev/vg03/lvol1
#newfs -F vxfs -o largefiles /dev/vg03/lvol2
HTH,
Devender
What you are trying to do is not required in any sense. If you have logical corruption for files then you can restore from backup 9 in fact that you will do after recreation). You can go for recreation of file system at the max which will remove the contents of the LVOLs.
For achiving this follow.
1. Unmount the file systems you want to recreate.
#umount /u01
#umount /u02
2. Run newfs command on all those one by one
#newfs -F vxfs -o largefiles /dev/vg03/lvol1
#newfs -F vxfs -o largefiles /dev/vg03/lvol2
HTH,
Devender
Impossible itself mentions "I m possible"
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