- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- un mirrror or Split the mirror
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
03-28-2004 03:00 PM
03-28-2004 03:00 PM
Server = rp2405
Os =hp-ux11i
2 disk 36 Gb
Group vg00
I want un mirror the disk or volume I want to use 2nd disk for other purpuse
how to split or un mirrior the disk. how to user mirror disk for other application
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2004 03:18 PM
03-28-2004 03:18 PM
SolutionMore results from ITRC,
http://tinyurl.com/2snnl
-Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2004 03:24 PM
03-28-2004 03:24 PM
Re: un mirrror or Split the mirror
Be careful if you are trying to remove the mirror of the root disk.
DO-NOT-FORGET TO USE lvlnboot -R if you are doing it for root VG.
1)Remove the LV's from the mirror
#/usr/sbin/lvsplit [-A autobackup] [-g PhysicalVolumeGroup] lv_path ...
Up to 127 logical volumes can be specified on the command line. All logical volumes must belong to the same Volume group.
2)Reduce the Volume group to 1
#vgreduce vg01 /dev/dsk/cxtxdx.
Now you can sucessfully remove the disk
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2004 03:37 PM
03-28-2004 03:37 PM
Re: un mirrror or Split the mirror
use
for i in `vgdisplay -v vg00|grep "LV Name"|awk '{print $3}'`
do
lvreduce -m 0 $i /dev/dsk/
done
Then do a vgreduce and remove that disk from root vg.
vgreduce /dev/vg00 /dev/dsk/
You can then use your disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2004 04:10 PM
03-28-2004 04:10 PM
Re: un mirrror or Split the mirror
lvlnboot -R command
all the best
wip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2004 04:45 PM
03-28-2004 04:45 PM
Re: un mirrror or Split the mirror
This post has the steps:
http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x6967c1c4ceddd61190050090279cd0f9%2C00.html&admit=716493758+1080539101782+28353475
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2004 06:09 PM
03-28-2004 06:09 PM
Re: un mirrror or Split the mirror
2 x 36 GB shlould leave some space even with all the system volumes mirrored. On option might be keeping that and creating new lvols that are not mirrored.
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 03:18 PM
03-29-2004 03:18 PM
Re: un mirrror or Split the mirror
1. after unmirror. I want to erase every data from 2nd disk and create knew volume
2.what is differen Lvreduce or lvsplit command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 03:48 PM
03-29-2004 03:48 PM
Re: un mirrror or Split the mirror
To unmirror:
lvreduce -m 0 /dev/vg00/lvolX (for each logical volume)
To remove the disk from the volume group
vgreduce /dev/vg00 /dev/dsk/cXtYdZ (substitute you disk)
The difference is that 'lvreduce' removes the mirror, whilst 'lvsplit' splits a mirrored pair for the purpose of creating a backup. The man pages for these commands will provide further information. To use the disk, you can create another volume group. e.g. below
mkdir /dev/mygroup
mknod /dev/mygroup/group c 64 0x020000
vgcreate -p 128 /dev/mygroup /dev/dsk/cXtYdZ
lvcreate -n myvol /dev/mygroup
lvextend -L
See man pages for further details. Once you 'lvreduce/vgreduce' the mirror and disk, the data has gone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 04:52 PM
03-29-2004 04:52 PM
Re: un mirrror or Split the mirror
Run the following command
# pvcreate -f /dev/rdsk/cxtxdx
cxdxtx is the device file for the disk you want to erase data.
# mkdir /dev/vg05 (vg05 is new vgname)
# mknod /dev/vg05/group c 64 0x050000
# vgcreate /dev/vg05 /dev/dsk/cxdxtx
# lvcreate -L 20000 /dev/vg04
# newfs -F vxfs -o largefiles /dev/vg05/rlvol1
# mkdir /newpountpoint (mount point as per your requirement)
# mount /dev/vg05/lvol1 /newmountpoint
This completes the task.
Difference betwen lvreduce and lvsplit
lvreduce --> decrease space allocation or the number of mirror copies of logical volumes
lvsplit --> split mirrored LVM logical volume into two logical volumes
Do man lvreduce and man lvsplit for more details.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 04:55 PM
03-29-2004 04:55 PM
Re: un mirrror or Split the mirror
# lvcreate -L 20000 /dev/vg04
You can create single 36 GB lvol or multiple smaller size lvol
Say lvol1 20 GB and lvol2 16 GB
# lvcreate -L 16000 /dev/vg04
Create new filesystems on each and mount them on seperate filesystems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2004 08:21 AM
03-30-2004 08:21 AM
Re: un mirrror or Split the mirror
To break the mirror..
# lvreduce -m 0 /dev/vg00/lvol2 /dev/dsk/c2t2d0
# lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c2t2d0
# lvreduce -m 0 /dev/vg00/lvol3 /dev/dsk/c2t2d0
==> Repeat for the rest of the lvols.
# vgreduce vg00 /dev/dsk/c2t2d0
# lvlnboot -v
can i Run lvlnboot -R
asif