- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mirroring lvcreate -D distributed file system
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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-25-2004 06:58 AM
03-25-2004 06:58 AM
Now I am trying to mirror and I just can't get it to work. It just keeps saying:
isqpro01:# lvextend -m 1 /dev/vg02/lvol1
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg02/lvol1" could not be extended.
Failure possibly caused by PVG-Strict or Distributed allocation policies.
Now I have 3 disks that are -D created, all part of vg02, and they are part of the pvgdb PVG group.
cat /etc/lvmpvg
VG /dev/vg02
PVG pvgdb
/dev/dsk/c4t8d0
/dev/dsk/c4t10d0
/dev/dsk/c4t12d0
I tried adding my other disks just to vg02 and no PVG... then to a different PVG... and even had them part of the same PVG and always the same error. I know I am missing someting very easy so any help would be appreciated!
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 07:01 AM
03-25-2004 07:01 AM
Re: Mirroring lvcreate -D distributed file system
thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 07:04 AM
03-25-2004 07:04 AM
Re: Mirroring lvcreate -D distributed file system
-D also requires PVG-Strict allocation. I understand your LV is distributed across all the 3 disks ?
If yes then u need 3 more disks, added to the VG as a seperate PVG and then try the lvextend.
Post the lvdisplay -v
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 07:06 AM
03-25-2004 07:06 AM
Re: Mirroring lvcreate -D distributed file system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 07:07 AM
03-25-2004 07:07 AM
Re: Mirroring lvcreate -D distributed file system
When you try to create your mirror you need to first change the mirror allocation policy to PVG-strict.
# lvchange -s g /dev/vg02/lvol1
Then you can create your mirror to the new PVG.
# lvcreate -m 1 /dev/vg02/lvol1 pvgdb1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 07:09 AM
03-25-2004 07:09 AM
Re: Mirroring lvcreate -D distributed file system
here is lvdisplay -v
--- Logical volumes ---
LV Name /dev/vg02/lvol1
VG Name /dev/vg02
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 60000
Current LE 15000
Allocated PE 15000
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation PVG-strict/distributed
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c4t12d0 5000 5000
/dev/dsk/c4t10d0 5000 5000
/dev/dsk/c4t8d0 5000 5000
--- Logical extents ---
LE PV1 PE1 Status 1
00000 /dev/dsk/c4t8d0 00000 current
then a bunch of currents....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 07:12 AM
03-25-2004 07:12 AM
Re: Mirroring lvcreate -D distributed file system
Manually edit your /etc/lvmpvg and then follow my instructions above and you should be set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 07:19 AM
03-25-2004 07:19 AM
Re: Mirroring lvcreate -D distributed file system
# lvcreate -m 1 /dev/vg02/lvol1 pvgdb1
Usage: lvcreate
[-A Autobackup]
[-d Schedule]
[-i Stripes -I StripeSize]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
[-m MirrorCopies]
[-n LogicalVolumeName]
[-p Permission]
[-r Relocate]
[-s Strict]
[-C Contiguous]
[-D Distributed]
[-M MirrorWriteCache]
[-c MirrorConsistency]
VolumeGroupName
"pvgdb1": Too many arguments
Ill try to play with it a bit... I put it in the /etc/lvmgvg file... and it looks right.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 07:19 AM
03-25-2004 07:19 AM
Solution# pvcreate /dev/rdsk/c5t1d0
# pvcreate /dev/rdsk/c5t2d0
# pvcreate /dev/rdsk/c5t3d0
# vgextend /dev/vg02 /dev/dsk/c5t1d0 /dev/dsk/c5td2d0 /dev/dsk/c5t3d0
# vi /etc/lvmpvg
VG /dev/vg02
PVG pvgdb
/dev/dsk/c4t8d0
/dev/dsk/c4t10d0
/dev/dsk/c4t12d0
PVG DB_MIRROR
/dev/dsk/c5t1d0
/dev/dsk/c5t2d0
/dev/dsk/c5t3d0
#
# lvextend -m 1 /dev/vg02/lvol1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 07:20 AM
03-25-2004 07:20 AM
Re: Mirroring lvcreate -D distributed file system
use lvextend and you dont have to give the PVG name as the arguement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 07:22 AM
03-25-2004 07:22 AM
Re: Mirroring lvcreate -D distributed file system
# lvextend -m 1 /dev/vg02/lvol1 pvgdb1
Using the PVG name may not be required, but by using that when extending, you know exactly where your extend is going.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 08:12 AM
03-25-2004 08:12 AM
Re: Mirroring lvcreate -D distributed file system
# pvcreate /dev/rdsk/...
# vgcrete -g pri /dev/vg02 /dev/dsk/...
# vgextend -g mir /dev/vg02 /dev/dsk/...
# lvcreate -m 1 -D y -s g -n
The "vgcreate -g pri" creates the /etc/lvmpvg file with a group called pri, and similarly "vgextend -g mir" adds to the lvmpvg with a group called mir.
The above lvcreate will creat the mirrored LV instantly. If yopu do not do this at lvreate time it will take a while to sync the disks..
Regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 08:46 AM
03-25-2004 08:46 AM
Re: Mirroring lvcreate -D distributed file system
VG...
PVG...
disks
VG...
PVG...
disks
i figured it out when I did the lvextend -g PVGNAME /dev/vg02 disks....
Now the mirror is starting to mirror the volumes... whew what a sucker I am :-)
thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 09:47 AM
03-25-2004 09:47 AM
Re: Mirroring lvcreate -D distributed file system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 09:49 AM
03-25-2004 09:49 AM
Re: Mirroring lvcreate -D distributed file system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 10:35 AM
03-25-2004 10:35 AM