Solved

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

Posted on 2011-09-29
6
896 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

707 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

12 Experts available now in Live!

Get 1:1 Help Now