AIX procedure for creating a logical volume from CLI


 
Thread Tools Search this Thread
Operating Systems AIX AIX procedure for creating a logical volume from CLI
Prev   Next
# 1  
Old 10-20-2007
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
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

No space in volume group. How to create a file system using existing logical volume

Hello Guys, I want to create a file system dedicated for an application installation. But there is no space in volume group to create a new logical volume. There is enough space in other logical volume which is being mounted on /var. I know we can use that logical volume and create a virtual... (2 Replies)
Discussion started by: vamshigvk475
2 Replies

2. AIX

Position of the logical volume on the physical volume

Hello everyone, I just read that while creating a logical volume(LV) we can choose the region of the physical volume (PV) in which the LV should be created. When I say region I mean: outer edge - outer middle - center - inner middle and inner edge. Can anyone help me understand the utility... (11 Replies)
Discussion started by: adilyos
11 Replies

3. UNIX for Dummies Questions & Answers

Confusion Regarding Physical Volume,Volume Group,Logical Volume,Physical partition

Hi, I am new to unix. I am working on Red Hat Linux and side by side on AIX also. After reading the concepts of Storage, I am now really confused regarding the terminologies 1)Physical Volume 2)Volume Group 3)Logical Volume 4)Physical Partition Please help me to understand these concepts. (6 Replies)
Discussion started by: kashifsd17
6 Replies

4. HP-UX

Creating a logical volume file

Hi to all, I am brand new to HP-UX but am quite familiar with Linux systems (Red Hat, Ubuntu etc..) I've just taken over a new HP-UX box and trying to work out how to create a logical volume. As well as creating the volume, which I am sure is very easy I need to create a special character... (6 Replies)
Discussion started by: jamie2teach
6 Replies

5. Solaris

CLI to get info for Logical Volume manager

What are the comman line instructions need to be used to know if a Logical Volume Manager is installed on solaris Box, What is its name, version, driver version, library version. (1 Reply)
Discussion started by: epriya2003
1 Replies

6. AIX

Logical volume name conflict in two volume group

Hello, I am a french computer technician, and i speak English just a little. On Aix 5.3, I encounter a name conflict logical volume on two volume group. The first volume lvnode01 is OK in rootvg and mounted. It is also consistent in the ODM root # lsvg -l rootvg |grep lvnode01 ... (10 Replies)
Discussion started by: dantares
10 Replies

7. AIX

Basic Filesystem / Physical Volume / Logical Volume Check

Hi! Can anyone help me on how I can do a basic check on the Unix filesystems / physical volumes and logical volumes? What items should I check, like where do I look at in smit? Or are there commands that I should execute? I need to do this as I was informed by IBM that there seems to be... (1 Reply)
Discussion started by: chipahoys
1 Replies

8. AIX

Moving a Logical Volume from one Volume Group to Another

Does anyone have any simple methods for moving a current logical volume from one volume group to another? I do not wish to move the data from one physical volume to another. Basically, I want to "relink" the logical volume to exist in a different volume group. Any ideas? (2 Replies)
Discussion started by: krisw
2 Replies

9. UNIX for Advanced & Expert Users

LVM - Extending Logical Volume within Volume Group

Hello, I have logical volume group of 50GB, in which I have 2 logical volumes, LogVol01 and LogVol02, both are of 10GB. If I extend LogVol01 further by 10GB, then it keeps the extended copy after logical volume 2. I want to know where it keeps this information Regards Himanshu (3 Replies)
Discussion started by: ghimanshu
3 Replies

10. AIX

AIX Logical Volume Question

Hi All, There is AIX server which has 2 internal disks running the OS and 8 external disks on a RAID array with RAID 5. My question - is there a way to check which are the logical volumes and file system configured on this RAID array (2 Replies)
Discussion started by: rramanuj
2 Replies
Login or Register to Ask a Question