- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- VG creation and mirroring
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
05-23-2006 08:29 PM
05-23-2006 08:29 PM
I have 6 disks in my server. I want to create a VG with 3 of them and use the others as a mirror of the VG. I have installed MirrorDisk/UX on the server too. What should I do? Whould you please provide the commands for me?
Hasan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2006 08:36 PM
05-23-2006 08:36 PM
SolutionSee the link below and follow Tiziano
Please ensure that your create /etc/lvmpvg to avoid mirroring on the 1st 3 disks.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1007800
Chan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2006 08:37 PM
05-23-2006 08:37 PM
Re: VG creation and mirroring
# pvcreate /dev/rdsk/... <-- initialize 6 disk
# mkdir /dev/vg99
# mknod /dev/vg99/group c 64 0x0?0000
# vgcreate vg99 /dev/dsk/... <-- 3 disks
# lvcreate .....
# vgextend vg99 /dev/dsk/... <-- another 3 disks
# lvextend -m 1 [LV] [PV] ..
if you not familiar with the command, use "sam" to create the VG and LV.
GOOD LUCK!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2006 08:38 PM
05-23-2006 08:38 PM
Re: VG creation and mirroring
Create a VG with all your disks
mkdir /dev/vgxx
mknod /dev/vgxx/group c 64 0x0y0000
vgcreate vgxx /dev/dsk/cxtydz
Create your logical volume
lvcreate -n name -L size -m 1 /dev/vgxx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2006 08:41 PM
05-23-2006 08:41 PM
Re: VG creation and mirroring
pvcreate /dev/dsk/cxtydz
2. mkdir /dev/vgname [ create dir with VG name you want to use - say vgnew ]
3. ls -l /dev/*/group
Check the minor nos. for the files
64 0x100000 etc
Then select a uniqe minor no which hasnt been used - of the format 0xNN0000 (select unique value for NN)
Then
mknod /dev/vgname/group c 64 0xNN0000 [ Put the actual number instead of NN ]
4. vgcreate -p 64 -g VGNEWPri /dev/vgname disk1 disk2 disk3 [ This will create a VG with the 1st 3 disks and put the disks in a PV group named say VGNEWPRI ]
5. vgextend -g VGNEWMIR /dev/vgname disk4 disk5 disk6
6. Then create the logical volumes
lvcreate -L 100 -n testvol1 -m 1 -s g /dev/vgname [ This will create a mirrored volume of size 100 MB which will use disks from the 2 PV groups ]
7. Create filesystem for the volumes
Thats it
Regards,
Ninad
5. Create
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2006 08:48 PM
05-23-2006 08:48 PM
Re: VG creation and mirroring
SAM is very good for setting up VGs and mirroring.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2006 06:24 PM
05-24-2006 06:24 PM
Re: VG creation and mirroring
ran.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2006 07:31 PM
05-24-2006 07:31 PM
Re: VG creation and mirroring
I created a VG with Disks #1,2,3 and mirror the VG to Disks #4,5,6. Now How can I find out which of the mirrored disk is a mirror of disk #1?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2006 07:48 PM
05-24-2006 07:48 PM
Re: VG creation and mirroring
To correct you a bit, the mirroring here is not disk to disk but you mirror logical volumes.
Thus when you create logical volumes which are having mirrors, only then you can see which disks is the volume using for mirroring.
Hope this clarifies.
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2006 07:52 PM
05-24-2006 07:52 PM
Re: VG creation and mirroring
the command lvdisplay -v /dev/vg_name/lvol_name show to you the primary an the mirror disk of the lvol
Enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2006 07:58 PM
05-24-2006 07:58 PM
Re: VG creation and mirroring
What happen for VG if disk #1 would be failed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2006 08:02 PM
05-24-2006 08:02 PM
Re: VG creation and mirroring
Enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2006 08:06 PM
05-24-2006 08:06 PM
Re: VG creation and mirroring
Once you replace the faulty disk, you need to do a pvcreate, vgcfgrestore -n vgame diskname ; the volumes which had mirror copies on that disk will be stale and you need to do a vgsync to synchronise the stale volumes.
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2006 08:07 PM
05-24-2006 08:07 PM
Re: VG creation and mirroring
Enrico