?
Solved

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

Posted on 2011-09-29
6
Medium Priority
?
973 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 2000 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month12 days, 22 hours left to enroll

777 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