HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- make a mirror
Operating System - HP-UX
1834156
Members
2407
Online
110064
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
11-21-2001 02:10 AM
11-21-2001 02:10 AM
make a mirror
I have two disk of 18 Gb each in one vg02. I made lvol1 with 9 Gb and mirror (9Gb from each disk), and lvol2 with 18 Gb without mirror (9 Gb from one disk and 9 Gb from the other disk). Now i want to conver the 18 Gb without mirror in a lvol2 of 9 Gb mirrored. ??How must i do it?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2001 02:28 AM
11-21-2001 02:28 AM
Re: make a mirror
lvol2 will need to be re-created. If you've got data on it, either back it up to tape, or as another possibly faster option you can split the first mirror and create a temporary lvol & file system on the other half to store your data while you recreate lvol2. Then once you've recreated lvol2 you restore your data.
Of course, I assume you don't have more than 9Gig of data on lvol2!
Cheers,
Steve
Of course, I assume you don't have more than 9Gig of data on lvol2!
Cheers,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2001 02:40 AM
11-21-2001 02:40 AM
Re: make a mirror
hi,
- unmount lvol2
- lvreduce -L 9216 /dev/vg02/lvol2
- lvdisplay -v /dev/vg02/lvol2 and check if all extents of lvol2 are on one disk (pvmove remaining extents if necessary)
- lvextend -m 1 /dev/vg02/lvol2
- remount lvol2
and a backup in advance wouldn't hurt anybody ;)
good luck,
Thierry
- unmount lvol2
- lvreduce -L 9216 /dev/vg02/lvol2
- lvdisplay -v /dev/vg02/lvol2 and check if all extents of lvol2 are on one disk (pvmove remaining extents if necessary)
- lvextend -m 1 /dev/vg02/lvol2
- remount lvol2
and a backup in advance wouldn't hurt anybody ;)
good luck,
Thierry
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2001 06:42 AM
11-21-2001 06:42 AM
Re: make a mirror
Hello,
Make a backup before doing anything. 2 backups if the data can't be recovered any other way.
If lvol2 is a JFS filesystem and you have online JFS you could try to defrag and reduce the filesystem then reduce the size of the LV:
fsadm -F vxfs -d -D -e -E /mount_point
fsadm -F vxfs -b 9000M /mount_point
lvreduce -L 9000M /dev/vg02/lvol2
fsadm may not be able to reduce the size if the space to be released is actually used by the filesystem. If it fails, you will have to rebuild the filesystem as others have said.
Darrell
Make a backup before doing anything. 2 backups if the data can't be recovered any other way.
If lvol2 is a JFS filesystem and you have online JFS you could try to defrag and reduce the filesystem then reduce the size of the LV:
fsadm -F vxfs -d -D -e -E /mount_point
fsadm -F vxfs -b 9000M /mount_point
lvreduce -L 9000M /dev/vg02/lvol2
fsadm may not be able to reduce the size if the space to be released is actually used by the filesystem. If it fails, you will have to rebuild the filesystem as others have said.
Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
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