AIX : Create LV with poor man stripe

 
Thread Tools Search this Thread
Homework and Emergencies Emergency UNIX and Linux Support AIX : Create LV with poor man stripe
# 1  
Old 04-30-2010
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:
Code:
x -y'vgdata1' hdisk82 hdisk83 hdisk84 hdisk85

Code:
root@aadcxs08 / : lsvg vgdata1
VOLUME GROUP:       vgdata1                  VG IDENTIFIER:  00c49e9a00004c00000001284ccb40cc
VG STATE:           active                   PP SIZE:        32 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      3828 (122496 megabytes)
MAX LVs:            256                      FREE PPs:       3828 (122496 megabytes)
LVs:                0                        USED PPs:       0 (0 megabytes)
OPEN LVs:           0                        QUORUM:         3 (Enabled)
TOTAL PVs:          4                        VG DESCRIPTORS: 4
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         4                        AUTO ON:        yes
MAX PPs per VG:     32768                    MAX PVs:        1024
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable 
root@aadcxs08 / :

does anyone know how i can change the BB Policy to NON RELOCATABLE? I couldn't find it on smitty.

but now im stuck with the mklv creation;

can someone please check if this is correct(pls dont say use smitty, just want the commands):

Code:
mklv -e x -t jfs2 -b -n -y elvdata09 vgdata1 <LP> hdisk82 hdisk83 hdisk84 hdisk85

Im not sure what the LP here is, is it total PP or max PV?

thanks in advance

rgds

priti
# 2  
Old 04-30-2010
Hi,

why would you even possibly want a non-relocatable VG ? I don't think you can change it ...

Code:
mklv -y'<name_of_lv>' -t'jfs2' -x'<max_pp_in_lv>' rootvg <size_of_lv_in_pp>

where <max_pp_in_lv> is the size you want the lv to maximum grow to and <size_of_lv_in_pp> is the size you want it to be now. You can later extend a filesystem residing in this lv just with chfs up to the size of max without first growing the lv. It would be automatically spread (poor man striped) across all disks CURRENTLY in your volumegroup. If you later add more disks to your vg, than this lv would remain spread across the disks you have now as long as you don't run a reorg command - any newly created lv's would be spread across the new amount of disks.

If you want afterwards to create a filesystem within this created lv than you would do it i.e. like this (I assume an inline log, that you want it auto mounted after a system boot and rbrw mounted in my sample):

Code:
crfs -v jfs2 -d'<name_of_lv>' -m'<mountpoint>' -p'rw' -A yes -a options='rbrw' -a logname='INLINE'

This filesystem would have the size <size_of_lv_in_pp> from the mklv command.

Hope this helps
kind regards
zxmaus
This User Gave Thanks to zxmaus For This Post:
# 3  
Old 05-02-2010
You say you are using LUNs out of a SAN: in this case it is irrelevant if you employ some striping algorithm in creating LVs or not. The SAN will distribute your disk accesses physically to several disks anyway.

Quite contrary, you could (very unlikely, but the possibility is non-zero) run into problems trying to stripe yourself when using an already striped medium: because of "Moiré"-like (interference) effects the diverse levels of striping could cancel out one another and change your pattern of disk access to the adverse.

I hope this helps.

bakunin
# 4  
Old 05-10-2010
i followed zxmaus's steps (edited some options) and redid all my steps after i removed tge whole VG, this time i picked PP size as 4 MB, then created LV (max size) mounted the FS then i extended it all the way. but then setting up the LV and VG somehow used up 1Gb from the disks allocated so i ended up with a FS of 119GB. i pasted to the customer the output in MB Smilie

thanks all!
# 5  
Old 05-11-2010
First off, thanks for writing a follow-up. Most people here do not and this way nobody knows if the suggested solution or the hint helped at all or not.

Quote:
Originally Posted by hedkandi
this time i picked PP size as 4 MB
This might, depending on your requirements, be a problematic decision. You might want to read this and probably the other explanations in this thread to find out why.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. AIX

Case insensitive search in AIX man ?

Hello, Linux man command search is case insensitive by default, but not AIX man. How do I serch case insensitive while using AIX manual pages ? thanks Vilius (7 Replies)
Discussion started by: vilius
7 Replies

3. AIX

AIX striped LV - lslv stripe width has wrong value

Hello all. I have a volume group with 8 PV's, and a logical volume striped across these 8 volumes. However, an lslv is showing: STRIPE WIDTH: 9 STRIPE SIZE: 64k There's really only eight disks, so how can the stripe width be 9? ODM also showed this: # odmget CuAt |... (4 Replies)
Discussion started by: Scott
4 Replies

4. 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

5. UNIX for Advanced & Expert Users

Resizing veritas mirror-stripe volume

Hi, Is there are any special preocedure for extending veritas mirror-stripe volume? In my case , volume lay out looks as below v test - ENABLED ACTIVE 419430400 SELECT - fsgen pl test-01 test ENABLED ACTIVE 419454720 STRIPE 3/128 RW sd... (0 Replies)
Discussion started by: 2k7.vipin
0 Replies

6. UNIX for Dummies Questions & Answers

please suggest computer languages to create man-machine interface for Linux applicati

I am new to program development on Linux. I wonder what computer languages are easy to grasp to create man - machine interactive interface software, which can accept inputs (parameters) from usrers, and present (display) the calculation results to users. Before, I have heared about Perl,... (10 Replies)
Discussion started by: cy163
10 Replies

7. AIX

man pages in AIX

Hi all. A friend of mine just recently gave me an old RISC 6000 machine to learn on for my AIX certification. I installed AIX 4.3.3 and everything seems to work fine, except there are no man pages. Is there a way to generate man pages on this machine? Thanks alot in advance. (5 Replies)
Discussion started by: dlynch912
5 Replies

8. UNIX for Dummies Questions & Answers

MSR magnetic stripe card reader

Hi all I am working on MSR110 ...Can anyone plz tell me how to use the configuration commands with magnetic reader???. Please help me out as i have to develop API in C on linux platform.MSR110 is not responding to the configuration commands. Please help... Regards Mahima (0 Replies)
Discussion started by: mahima_er
0 Replies

9. UNIX for Dummies Questions & Answers

how do you create a man page?

i've never done this before. i created a script that I placed in /usr/bin, but want to create a man page for it. i'm clueless thanks (3 Replies)
Discussion started by: theDirtiest
3 Replies

10. UNIX for Dummies Questions & Answers

How to install Man Pages on aix

How can I install the man pages on ibm unix aix 4.3? (1 Reply)
Discussion started by: GKL
1 Replies
Login or Register to Ask a Question