Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mklv command flags 1

Status
Not open for further replies.

gatetec

MIS
Mar 22, 2007
420
US
mklv -ae -ex -t raw -y prod_2048_144 -U oracle -G dba -P 600 -T O prod6vg 16

Can you explain this mklv command in details? I am looking at man page, but I am not getting all of the details for flags being used here.

mklv [ -a Position ] [ -b BadBlocks ] [ -c Copies ] [ -d Schedule ] [ -e Range ]
[ -i ] [ -L Label ] [ -m MapFile ] [ -o Y / N ] [ -r Relocate ] [ -s Strict ] [
-t Type ] [ -u UpperBound ] [ -v Verify ] [ -w MirrorWriteConsistency ] [ -x
Maximum ] [ -y NewLogicalVolume | -Y Prefix ] [ -S StripeSize ] [ -U Userid ] [
-G Groupid ] [ -P Modes ] VolumeGroup Number [ PhysicalVolume ... ]

thx much
 
It's all there in the manpage - which flags are you referring to?

(fyi, that mklv is creating a raw LV for Oracle database space).
 
-T flag? it's in the man page, but apparently *someone* forgot to put it in the syntax diagram...

[tt] -T O
For big vg format volume groups, the -T O option indicates that
the logical volume control block will not occupy the first block
of the logical volume. Therefore, the space is available for
application data. Applications can identify this type of logical
volume with the IOC INFO ioctl. The logical volume has a device
subtype of DS_LVZ. A logical volume created without this option
has a device subtype of DS_LV. This option is ignored for old and
scalable vg format volume groups.[/tt]

So: the command creates a raw LV of 16 LPs/PPs (no mirroring: 1LP=1PP) in VG prod6vg with owner:group oracle:dba, permissions rw-------, preferring outer edge of the PVs for PP placement, using as many PVs as possible in the VG and naming the LV "prod_2048_144". The LVCB for this LV is not placed on the first block, leaving it free for oracle's use. This assumes the VG is a "BIG VG". If another type of VG, -T O is ignored.


HTH,

p5wizard
 
ok, so this would be:

attempt to make a raw type logical volume labeled prod_2048_144 in prod6vg with 16 logical partitions allocated across the edge sections of the physical volumes when possible, across the maximum number of physical volumes.

Owned by dba group member oracle. With exclusive read/write access for user oracle only. With the logical volume control block not occupying the first block of the logical volume so that block is available for application data.

 
Yes, but you're speaking English, where I was talking AIX/abbrev-speak... ;-)


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top