Sponsored Content
Operating Systems AIX AIX striped LV - lslv stripe width has wrong value Post 302380521 by Scott on Tuesday 15th of December 2009 11:33:12 AM
Old 12-15-2009
Hi zaxxon,

I used odmget/odmchange to update it.

I was about to run savebase as you suggested, but noticed this:

Code:
# lsvg -M data01vg
data01vg
0516-304 : Unable to find device id 00c9f44e00004c0000000103d13ca2e0.1 in the Device
        Configuration Database.

It's the same for every VG (even rootvg!).

In the ODM I see:

Code:
CuAt:
        name = "data01lv"
        attribute = "lvserial_id"
        value = "s"
        type = "R"
        generic = "D"
        rep = "n"
        nls_index = 648

what I suspect should be more like:

Code:
CuAt:
        name = "data01lv"
        attribute = "lvserial_id"
        value = "00c9f44e00004c0000000103d13ca2e0.1"
        type = "R"
        generic = "D"
        rep = "n"
        nls_index = 648

(and it's the same for every LV)

I don't know what happened here, or when. A restore of ODM from an old backup fixed this.

With the ODM looking OK again, I ran savebase, and now need to schedule a reboot.

Failing that I'll back it up, create it anew.

Thanks for the help.


Hi wwwzviadi,
Yes, there's definately 8 disks. Everything shows this (lspv, lsvg -p, lslv -l, etc.)

Playing around, it appears what might have happened (a long time ago!), goes something like:
Code:
# mkvg -fSy scottvg hdisk71 hdisk72 hdisk73 hdisk74
scottvg
# mklv -t jfs2 -y scottlv -S 64K scottvg 1536 hdisk71 hdisk72 hdisk72 hdisk73 hdisk74
scottlv
# lslv scottlv
LOGICAL VOLUME:     scottlv                VOLUME GROUP:   scottvg
LV IDENTIFIER:      00c9f44e00004c000000012593214e8c.1 PERMISSION:     read/write
VG STATE:           active/complete        LV STATE:       closed/syncd
TYPE:               jfs2                   WRITE VERIFY:   off
MAX LPs:            1540                   PP SIZE:        16 megabyte(s)
COPIES:             1                      SCHED POLICY:   striped
LPs:                1540                   PPs:            1540
STALE PPs:          0                      BB POLICY:      relocatable
INTER-POLICY:       maximum                RELOCATABLE:    no
INTRA-POLICY:       middle                 UPPER BOUND:    5
MOUNT POINT:        N/A                    LABEL:          None
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes (superstrict)
Serialize IO ?:     NO
STRIPE WIDTH:       5
STRIPE SIZE:        64k
DEVICESUBTYPE : DS_LVZ

Didn't know it was possible!

Thanks.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

AIX p570 lspv, lslv etc... not working

Hi we are running a VIO server on a AIX p570 we cannot run and of the command the query the ODM has anyone seen this problem or has a solution the command just hangs. (1 Reply)
Discussion started by: truma1
1 Replies

2. Programming

Finding out if a file has been striped or not

Is there a way in c to find out if a binary program contains debug information? I have tried to compare the striped and unstriped versions of two programs, but i have had a hard time understand them. (2 Replies)
Discussion started by: shienarier
2 Replies

3. Solaris

How to add disk into Striped Volume VxVM

VxVM: How to add one more disk into v08 the stripe should change from 7/128 to 8/128 v v08 - ENABLED ACTIVE 8954292224 SELECT v08-01 fsgen pl v08-01 v08 ENABLED ACTIVE 8954292480 STRIPE 7/128 RW sd bkpdg35-01 v08-01 bkpdg35 17216 ... (0 Replies)
Discussion started by: geoffry
0 Replies

4. AIX

AIX OS upgrade gone wrong

I have an AIX LPAR that is one half of a Oracle RAC cluster running over a GPFS filesystem. The OS version in the LPAR was 5300-05-01 I ran an upgrade to 5300-07-05 (Apply only, Commit=NO and preserve old files). The preview passed with no failures detected. The actual upgrade failed... (5 Replies)
Discussion started by: morgan_g
5 Replies

5. Linux

Raid 0 stripe size

I have a PERC 5/i card. Im using with it 3 15k rpm HDD's (model: SEAGATE Savvio 15K ST936751SS). Im going to install debian on this array.. and im looking for performance... So what would be the stripe size that i should set this raid 0 into to give me the best performance? Thanks (22 Replies)
Discussion started by: supermiguel
22 Replies

6. Emergency UNIX and Linux Support

AIX : Create LV with poor man stripe

Hi all I have just had SAN allocate 4*30 GB of disks and had created a new scalable vg and assigned the disks to it: I used smitty to create vg and the command is: x -y'vgdata1' hdisk82 hdisk83 hdisk84 hdisk85 root@aadcxs08 / : lsvg vgdata1 VOLUME GROUP: vgdata1 VG... (4 Replies)
Discussion started by: hedkandi
4 Replies

7. AIX

Striped FS , need to add new disks

Hi, I have a filesystem that is created on a VG with 12 disks. The FS is striped on these disks. Now I have to add 10 more disks to this volume group to help increase the space of the same FS that is striped. How should I add these disks to the Vg and i need these disks to be added such the FS... (1 Reply)
Discussion started by: aixromeo
1 Replies

8. AIX

Unix root directory owner wrong AIX 5.3

The a chown was done and instead of using ./ a / was used and root ownership files got changed. I need to change the ownership of the files/directory back - backups are not working and I am concerned a reboot will not be successful. Can anyone provide the ownership of these files/directories... (6 Replies)
Discussion started by: spike1
6 Replies

9. Solaris

solaris volume manager- stripe?

Hello Admins.. I am going through solaris volume manager guide for RAID-0 concatenation and stripes, I do not understand the concept of stripe from following example of concatenation. There is an eample for concatenation: # metainit d25 1 1 c0t1d0s2 d25: Concat/Stripe is setup the... (5 Replies)
Discussion started by: snchaudhari2
5 Replies

10. Hardware

RAID5 + STRIPED LUNs

Hello Experts, I have few doubts on RAID 5 with LUNs carved as STRIPE and CONCAT RAID 5 = STRIPE + Parity mirroring I would like to know if the LUNs carved are CONCATE from RAID 5 disk array. Are the I/Os are spread accross the disks within the RAID 5 Array? And if I do carve STRIPED... (1 Reply)
Discussion started by: sybadm
1 Replies
migrate(8)						      System Manager's Manual							migrate(8)

NAME
migrate - Move a file or file pages to another volume in an AdvFS file domain SYNOPSIS
/usr/sbin/migrate [-p pageoffset] [-n pagecount] [-s volumeindex] [-d volumeindex] filename OPTIONS
Specifies the volume index number of the volume to which the pages are to be migrated. You can determine the volume index number of the volumes in an AdvFS file domain by using the showfile -x command. If you do not specify the -d option, the AdvFS determines the destina- tion of the file or the file pages. The AdvFS moves the file or the file pages to any volume or volumes with available space. Specifies the number of pages to migrate, starting at the pageoffset value. The default page count is to EOF. If you do not specify the -n option, the migrate command migrates pages from the pageoffset value to the end of the file. Specifies the page offset of the first page to migrate. The first page of the file is page 0. The default page offset is 0. If you do not specify the -p option, the migrate command migrates pages starting at page 0 of the file. Specifies the volume index number of the volume from which the pages are to be migrated. Use the showfile -x command to determine the volume index number of the volumes in an AdvFS file domain. If you specify the -s option and the volume that contains the file does not contain any data extents of that file, the utility returns success without taking any action. You must use the -s option when you are migrating striped files. You can move pages of a striped file or a stripe file segment, which is the entire portion of a striped file that resides on the specified volume, to another volume. OPERANDS
Specifies the name of the file or file pages to be migrated from the volume. The file can be simple or striped. DESCRIPTION
The migrate utility moves the specified simple (unstriped) file to another volume in the same file domain. The utility also moves pages of a simple file or pages of a striped file segment to another volume (or volumes, if necessary) within the file domain. Because there are no read/write restrictions when using this command, you can migrate a file while users are reading it, writing to it, or both, without disrupting file I/O. File migration is transparent to users. When you run the migrate utility with only the -p and -n options, the utility attempts to allocate destination pages contiguously on one destination volume in the file domain. If there are not enough free, contiguous blocks to accomplish the move, the utility then attempts to allocate the pages to the next available blocks on the same volume. If there are not enough free blocks on the same volume, the utility then attempts to moves the file to the next available volume or volumes. The utility returns an error diagnostic if it cannot accomplish the move. You must use the -s, -n, and -p options in order to move pages of a striped file from one volume to another. Only those pages assigned to the source volume are moved to the destination volume: all pages in the file are not moved. You can use the migrate utility to move heavily accessed files or pages of files to a different volume in the file domain. Use the -d option to indicate a specific volume. Also, you can use the utility to defragment a specific file, because the migrate utility defragments a file whenever possible. NOTES
The migrate utility does not evaluate your migration decisions. As a result, you can move more than one striped file segment onto the same volume, which can defeat the purpose of striping the file. The number of stripes is determined by the number of extent maps for the file although a map may point to more than one volume. If you want to change the number of stripes for the file, you must re-create the file with the desired number of stripes. RESTRICTIONS
You can only perform one migrate operation on the same file at the same time. When you migrate a striped file, you can only migrate from one source volume at a time. You must be the root user to use this utility. EXIT STATUS
The utility returns a value of 0 (zero) on success, otherwise it returns a nonzero value and an error diagnostic. EXAMPLES
The following examples perform tasks using the migrate utility. To migrate the simple file abc from its current volume to any other volume in the file domain, enter: # migrate abc To migrate the simple file abc from volume 1 of a file domain to volume 6 of a file domain, enter: # migrate -s 1 -d 6 abc To migrate pages 10 through 99 (that is, 90 pages starting at page 10) of the simple file abc from its current vol- ume to volume 2 of the file domain, enter: # migrate -p 10 -n 90 -d 2 abc The following example migrates all the pages of a file that reside on a specified volume. A file, stripe_1, is striped across Volumes 1, 2, and 3 of a six-volume AdvFS file domain. To migrate the entire stripe file segment of the stripe_1 file that is on volume 1 to volume 4 of the domain, enter: # migrate -s 1 -d 4 stripe_1 The fol- lowing example moves some, but not all, file pages on one volume of a striped file to another volume in the file domain. Use the showfile command with the -x flag to determine the volume index, the page count, and the page offset for the volume. Then specify the pages you want to migrate. In this example the file str_file is striped across three volumes (1, 2, and 3) of a four volume file domain. To move some of the pages from volume 2 to volume 4, first identify the page offset and the page count for the pages you want to move: # showfile -x str_file Id Vol PgSz Pages XtntType Segs SegSz I/O Perf File 6.8007 2 16 123 stripe 3 8 async 69% str_file extentMap: 1 pageOff pageCnt volIndex volBlock blockCnt 0 8 3 67312 624 24 8 48 8 72 8 96 7 103 1 3 67952 64 120 3 extentCnt: 2 extentMap: 2 pageOff pageCnt volIndex volBlock blockCnt 8 8 4 67312 352 32 8 56 6 62 2 4 67696 64 80 2 82 6 4 67856 96 104 8 4 68080 128 extentCnt: 4 extentMap: 3 pageOff pageCnt volIndex volBlock blockCnt 16 8 1 76048 256 40 8 64 8 1 76320 128 88 8 1 76544 128 112 8 1 76720 128 extentCnt: 4 The showfile output shows that volume 4, as shown in extent map 2, contains a total of 40 pages of the striped file starting at page offset 8. You want to migrate the first 16 pages that reside on volume 4 to volume 2. The first eight pages to be moved start at page offset 8 and end at page offset 15. The next eight pages to be moved start at page offset 32 and end at page offset 39. So the range of pages you want to move (the value of the -n flag) is 32 pages; that is, 8 to 39 inclusive. (The other pages in the range are on other volumes because the file is striped.) The command will migrate only the pages from the specified volume in the speci- fied range. # migrate -p 8 -n 32 -s 4 -d 2 str_file Because you did not move all of the pages from volume 4 to volume 2, the file is now stored on four volumes. Note, that this does not change the stripe width of the file. There are still three extent maps. To confirm the migration, reissue the showfile command. Following is part of the output showing the new extent map 2: extentMap: 2 pageOff pageCnt volIndex volBlock blockCnt 8 8 2 51920 256 32 8 56 8 4 68592 256 80 8 104 8 4 68080 128 extentCnt: 4 SEE ALSO
Commands: showfdmn(8), showfile(8), stripe(8) Files: advfs(4) migrate(8)
All times are GMT -4. The time now is 07:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy