AIX procedure for creating a logical volume from CLI | Unix Linux Forums | AIX

  Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

AIX procedure for creating a logical volume from CLI

AIX


Tags
aix, unix

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 10-20-2007
amit4g's Avatar
amit4g amit4g is offline
Registered User
 
Join Date: Apr 2006
Last Activity: 18 May 2009, 7:48 AM EDT
Location: Bangalore,India
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
AIX procedure for creating a logical volume from CLI

Hi,

What is the typical AIX procedure for creating a logical volume from CLI.

I have mostly worked on HPUX so far and on which the typica steps are:

1: pvcreate -f /dev/rdsk/<mydisk>
2: mkdir /dev/<myvg>
3: mknod /dev/<myvg>/group C 64 <0x030000>
4: vgcreate /dev/<myvg> /dev/dsk/<mydisk>
5:lvcreate -L <1000> /dev/<mydg>/

On one of my AIX box,while trying to do mkvg,i am getting following error message:


[root@labaix10:/]# mkvg -f -y vg1 hdisk183
0516-1254 mkvg: Changing the PVID in the ODM.
0516-1397 mkvg: The physical volume hdisk183, will not be added to
the volume group.
0516-862 mkvg: Unable to create volume group.

[root@labaix10:/]# echo $?
1

More info:
[root@labaix10:/]# uname -a
AIX labaix10 3 5 0004703ED700
[root@labaix10:/]# oslevel
5.3.0.0

[root@labaix10:/]# lsvg
rootvg
[root@labaix10:/]# lspv
hdisk0 0004703ea1ffac35 rootvg active
hdisk1 0004703ef54cfd06 None
hdisk183 none None <===
hdisk184 none None
hdisk185 none None
hdisk186 none None
hdisk187 none None
hdisk188 none None
hdisk189 none None
hdisk190 none None
hdisk191 none None
hdisk192 none None

~amit
Sponsored Links
    #2  
Old 10-22-2007
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 2 September 2014, 2:12 AM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 4,209
Thanks: 44
Thanked 801 Times in 632 Posts
The problem may be that the hdisk (which seems to come from some storage subsystem) is already in use on another system. The system will discover the PVID and the VG-information only after establishing access to the disk, which isn't possible as long as it is used by another system concurrently.

bakunin
Sponsored Links
    #3  
Old 10-23-2007
amit4g's Avatar
amit4g amit4g is offline
Registered User
 
Join Date: Apr 2006
Last Activity: 18 May 2009, 7:48 AM EDT
Location: Bangalore,India
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Bakunin,

Thanks for your reply,Yes the disk was under control of another Volume manager(Veritas Volume Manager),After removing from it,i could create the
OS-native Logical volumes.

Thanks,
~amit
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Creating a logical volume file jamie2teach HP-UX 6 02-24-2012 04:36 AM
Logical volume name conflict in two volume group dantares AIX 10 12-07-2009 12:12 PM
Basic Filesystem / Physical Volume / Logical Volume Check chipahoys AIX 1 12-02-2008 07:05 AM
Moving a Logical Volume from one Volume Group to Another krisw AIX 2 07-14-2008 07:48 AM
LVM - Extending Logical Volume within Volume Group ghimanshu UNIX for Advanced & Expert Users 3 07-26-2007 07:39 AM



All times are GMT -4. The time now is 02:43 AM.