Solved

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

Posted on 2011-09-29
6
913 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
  • 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
lsuser for specific number of users listed in a file 11 100
AIX 5.3 group password policy changes 7 27
Best way to handle awk return value 6 66
Convert OverPunch 25 62
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…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

919 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now