Solved

AIX list offset logical volume  created with mklv -TO -t raw

Posted on 2011-09-29
6
947 Views
Last Modified: 2012-05-12
3.Find the number of partitions per disk in the volume group

3.3.Find the number of partitions per disk in the volume group
# lsvg -p cert_asmvg1
cert_asmvg1:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk17           active            7           7           02..01..01..01..02
hdisk18           active            7           7           02..01..01..01..02

4.Create a single zero-byte offset logical volume for each physical volume using up all space on that physical volume. The suggested naming standard is <db_name>_asmdisk<seq>
# mklv -TO -t raw -U oracle -G dba -P 600 -y cert_asmdisk1 cert_asmvg1 7 hdisk17
cert_asmdisk1
# mklv -TO -t raw -U oracle -G dba -P 600 -y cert_asmdisk2 cert_asmvg1 7 hdisk18
cert_asmdisk2


===how can I list the offset logical volume  I have just created  cert_asmdisk2
0
Comment
Question by:it-rex
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 11

Author Comment

by:it-rex
ID: 36817504
to be more clear I have setps 3,4
and my Question is

How can I list the offset logical volume  I have just created  cert_asmdisk2?
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 36817567
What do you mean with "list"?

The properties:

lslv cert_asmdisk2

The physical volume(s):

lslv -l cert_asmdisk2

The copy distribution:

lslv -m cert_asmdisk2

The allocation map for a given device

lslv -p hdisk18

What else is on hdisk18:

lspv -l hdisk18

The device:

ls -l /dev/*cert_asmdisk2

Or something else?

wmp

0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 36817659
Content?

The first ten 80-byte blocks:

dd if=/dev/rcert_asmdisk2 bs=80 count=10

In char and hex:

dd if=/dev/rcert_asmdisk2 bs=80 count=10 | od -tcx
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 11

Author Comment

by:it-rex
ID: 36892191
under /dev

brw-------    1 oracle   dba          37,  1 Sep 29 14:25 cert_pidisk1
brw-------    1 oracle   dba          37,  2 Sep 29 14:25 cert_pidisk2
crw-rw----    1 root     system       37,  0 Sep 29 13:20 cert_pivg1
crw-------    1 oracle   dba          37,  1 Sep 29 14:25 rcert_pidisk1
crw-------    1 oracle   dba          37,  2 Sep 29 14:25 rcert_pidisk2


the commands used to create

cert_pidisk1
cert_pidisk2

are

mklv -TO -t raw -U oracle -G dba -P 600 -y cert_pidisk1 cert_pivg1 1199 hdisk4
mklv -TO -t raw -U oracle -G dba -P 600 -y cert_pidisk2 cert_pivg1 199 hdisk5

I do not see in the docs how

rcert_pidisk1
rcert_pidisk2

were created

if I do
 lslv cert_pidisk1

I get

LOGICAL VOLUME:     cert_pidisk1           VOLUME GROUP:   cert_pivg1
LV IDENTIFIER:      00c1c87500004c0000000132b6334d48.1 PERMISSION:     read/write
VG STATE:           active/complete        LV STATE:       closed/syncd
TYPE:               raw                    WRITE VERIFY:   off
MAX LPs:            1199                   PP SIZE:        256 megabyte(s)
COPIES:             1                      SCHED POLICY:   parallel
LPs:                1199                   PPs:            1199
STALE PPs:          0                      BB POLICY:      relocatable
INTER-POLICY:       minimum                RELOCATABLE:    yes
INTRA-POLICY:       middle                 UPPER BOUND:    1024
MOUNT POINT:        N/A                    LABEL:          None
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?:     NO
DEVICESUBTYPE : DS_LVZ
COPY 1 MIRROR POOL: None
COPY 2 MIRROR POOL: None
COPY 3 MIRROR POOL: None

but when I do

$ lslv rcert_pidisk1
0516-306 lslv: Unable to find  rcert_pidisk1 in the Device
        Configuration Database.



what I am missing and what is the difference between both?
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 36892340
cert_pidisk1

is the name of the logical volume you created and also the name of the associated block device special file (driver).

rcert_pidisk1

is the name of the automatically generated "character" ("raw") device special file (driver) for that LV.

Please see the letters "c" ("character" = "raw") and "b" ("block") in the first column of the "ls -l /dev/..." output.

See also the major and minor numbers of the devices (37 / 1 for (r)cert_pidisk1, 37 / 2 for (r)cert_pidisk2).

They're identical for "cert..." and "rcert..." so you can see that it's the same device and just a different driver.

wmp


0
 
LVL 11

Author Closing Comment

by:it-rex
ID: 36892871
you are athe best!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question