- Community Home
- >
- Storage
- >
- Entry Storage Systems
- >
- Disk Enclosures
- >
- Re: Replacing disk having the main mirror copy
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
Discussions
Discussions
Forums
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
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-12-2003 11:36 PM
тАО11-12-2003 11:36 PM
Replacing disk having the main mirror copy
Found the following procedure for replacing the mirror disk. Step 8 says make sure the disk to be replaced is associated with LV lvol14b, If the disk is to be replaced is associated with lvol14b,what would be the procedure. Does LV needs to be recreated.?
_____________
1. lvsplit the Logical Volume (LV) that is mirrored.
2. pvcreate /dev/rdsk/c0t11d0 the disks associated with lvol14:
c3t5d0
c3t6d0
c4t5d0 <- remove
c4t6d0 <- remove
3. Add new disks:
c0t11d0
c0t13d0
4. Prepare the disks for being used in the Logical Volume Manager (LVM):
pvcreate /dev/rdsk/c0t11d0
pvcreate /dev/rdsk/c0t13d0
5. Add the new disks to the VG:
vgextend /dev/vg_orlistat /dev/dsk/c0t11d0
vgextend /dev/vg_orlistat /dev/dsk/c0t13d0
6. umount /dev/vg_orlistat/lvol14
7. Split the mirror of lvol14 to create lvol14 and lvol14b1.
lvsplit /dev/vg_orlistat/lvol14
8. Verify the disks you want to reduce out of the VG are associated
with lvol14b by doing a:
lvdisplay -v /dev/vg_orlistat/lvol14b.
9. Remove the old mirror of lvol14:
lvremove -f /dev/vg_orlistat/lvol14b
10. Reduce out the old disks from the VG:
vgreduce /dev/vg_orlistat /dev/dsk/c4t5d0
vgreduce /dev/vg_orlistat /dev/dsk/c4t6d0
11. Extend the lvol14 to 1 mirror on the new disks:
lvextend -m 1 /dev/vg_orlistat/lvol14 /dev/dsk/c0t11d0
/dev/dsk/c0t13d0
The lvol should now sync up and then it can be mounted.
________________________
Thanks
John Jayaseelan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2003 12:03 AM
тАО11-13-2003 12:03 AM
Re: Replacing disk having the main mirror copy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2003 02:23 AM
тАО11-13-2003 02:23 AM
Re: Replacing disk having the main mirror copy
# vgsync vg##
# lvsync /dev/vg##/lvol#
Here's a better procedure for replacing mirrored disks:
1) vgcfgrestore -n /dev/vg## /dev/rdsk/cXtYdZ
2) vgchange -a y /dev/vg##
3) vgsync /dev/vg##
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2003 02:27 AM
тАО11-13-2003 02:27 AM
Re: Replacing disk having the main mirror copy
Found the following procedure for replacing the mirror disk. Step 8 says make sure the disk to be replaced is associated with LV lvol14b, If the disk is to be replaced is associated with lvol14,what would be the procedure. Does LV needs to be recreated.?
_____________
1. lvsplit the Logical Volume (LV) that is mirrored.
2. pvcreate /dev/rdsk/c0t11d0 the disks associated with lvol14:
c3t5d0
c3t6d0
c4t5d0 <- remove
c4t6d0 <- remove
3. Add new disks:
c0t11d0
c0t13d0
4. Prepare the disks for being used in the Logical Volume Manager (LVM):
pvcreate /dev/rdsk/c0t11d0
pvcreate /dev/rdsk/c0t13d0
5. Add the new disks to the VG:
vgextend /dev/vg_orlistat /dev/dsk/c0t11d0
vgextend /dev/vg_orlistat /dev/dsk/c0t13d0
6. umount /dev/vg_orlistat/lvol14
7. Split the mirror of lvol14 to create lvol14 and lvol14b1.
lvsplit /dev/vg_orlistat/lvol14
8. Verify the disks you want to reduce out of the VG are associated
with lvol14b by doing a:
lvdisplay -v /dev/vg_orlistat/lvol14b.
9. Remove the old mirror of lvol14:
lvremove -f /dev/vg_orlistat/lvol14b
10. Reduce out the old disks from the VG:
vgreduce /dev/vg_orlistat /dev/dsk/c4t5d0
vgreduce /dev/vg_orlistat /dev/dsk/c4t6d0
11. Extend the lvol14 to 1 mirror on the new disks:
lvextend -m 1 /dev/vg_orlistat/lvol14 /dev/dsk/c0t11d0
/dev/dsk/c0t13d0
The lvol should now sync up and then it can be mounted.
________________________
Thanks
John Jayaseelan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2003 12:39 PM
тАО11-13-2003 12:39 PM
Re: Replacing disk having the main mirror copy
This procedure has nothing to do with replacing a bad mirror. The LOGICAL VOLUME DOES NOT NEED TO BE RECREATED. JUST USE 'vgcfgrestore'. See above.
Regarding "... Does LV needs to be recreated.?..."
- No.
That's what 'vgcfgrestore' will do. See previous message.
Regarding "...lvsplit the Logical Volume (LV) that is mirrored...."
- No.
'lvsplit' works when disks are responding, not dead. You can lvreduce it out with the PV Number but this is extreme.
As I read the rest of this procedure I start to infer that its meant for substituting smaller disks with larger. See #10 and vgreduce.
So again, ignore this procedure and,
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2003 09:38 PM
тАО11-17-2003 09:38 PM
Re: Replacing disk having the main mirror copy
The disks are to be replaced for substituting smaller disks with larger. That is the reason why want to use lvsplit. If the disk to be removed holds the main mirror copy 'lvol1' what needs to be done.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2003 11:09 PM
тАО11-17-2003 11:09 PM
Re: Replacing disk having the main mirror copy
it depends if your disk that should be replaced is a root disk or not.
i understand here that you have a non root disk. this is the procedure:
if it's hot swap then replace the disk and do:
- pvcreate -f /dev/rdsk/cXtYdZ
- vgcfgrestore -n /dev/vgxx /dev/rdsk/cXtYdZ
- vgchange -a y /dev/vg
here the volume group will synchronize automatically and if not do
- vgsync /dev/vgxx
please advice if it is a root disk.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2003 12:42 AM
тАО11-18-2003 12:42 AM
Re: Replacing disk having the main mirror copy
- Make a new volume group with the new disks.
- Make temporary mount points, (* mkdir *)
- And copy the data over between old and temporary mount points, then,
- Update /etc/fstab giving the new vg the old mount points.
This procedure would have the added benefit of defragmenting all of old data when copying it over into the new file system.