Sponsored Content
Operating Systems AIX AIX procedure for creating a logical volume from CLI Post 302141594 by amit4g on Saturday 20th of October 2007 07:15:36 AM
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
 

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

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

10. 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
LVDISPLAY(8)						      System Manager's Manual						      LVDISPLAY(8)

NAME
lvdisplay - display attributes of a logical volume SYNOPSIS
lvdisplay [-a|--all] [-c|--colon] [-d|--debug] [-h|-?|--help] [--ignorelockingfailure] [--maps] [--nosuffix] [-P|--partial] [--units hHbB- sSkKmMgGtTpPeE] [-v|--verbose] [--version] [LogicalVolumePath [LogicalVolumePath...]] lvdisplay --columns | -C [--aligned] [-a|--all] [-d|--debug] [-h|-?|--help] [--ignorelockingfailure] [--noheadings] [--nosuffix] [-o|--options [+]Field[,Field]] [-O|--sort [+|-]Key1[,[+|-]Key2[,...]]] [-P|--partial] [--segments] [--separator Separator] [--unbuffered] [--units hHbBsSkKmMgGtTpPeE] [-v|--verbose] [--version] [LogicalVolumePath [LogicalVolumePath...]] DESCRIPTION
lvdisplay allows you to see the attributes of a logical volume like size, read/write status, snapshot information etc. lvs (8) is an alternative that provides the same information in the style of ps (1). lvs is recommended over lvdisplay. OPTIONS
See lvm for common options and lvs for options given with --columns. --all Include information in the output about internal Logical Volumes that are components of normally-accessible Logical Volumes, such as mirrors, but which are not independently accessible (e.g. not mountable). For example, after creating a mirror using 'lvcreate -m1 --mirrorlog disk', this option will reveal three internal Logical Volumes, with suffixes mimage_0, mimage_1, and mlog. -c, --colon Generate colon separated output for easier parsing in scripts or programs. N.B. lvs (8) provides considerably more control over the output. The values are: * logical volume name * volume group name * logical volume access * logical volume status * internal logical volume number * open count of logical volume * logical volume size in sectors * current logical extents associated to logical volume * allocated logical extents of logical volume * allocation policy of logical volume * read ahead sectors of logical volume * major device number of logical volume * minor device number of logical volume -m, --maps Display the mapping of logical extents to physical volumes and physical extents. To map physical extents to logical extents use pvs --segments -o+lv_name,seg_start_pe,segtype. --columns | -C Display output in columns, the equivalent of lvs. Options listed are the same as options given in lvs (8). Examples "lvdisplay -v /dev/vg00/lvol2" shows attributes of that logical volume. If snapshot logical volumes have been created for this original logical volume, this command shows a list of all snapshot logical volumes and their status (active or inactive) as well. "lvdisplay /dev/vg00/snapshot" shows the attributes of this snapshot logical volume and also which original logical volume it is associated with. SEE ALSO
lvm(8), lvcreate(8), lvscan(8), pvs(8) Sistina Software UK LVM TOOLS 2.02.67(2) (2010-06-04) LVDISPLAY(8)
All times are GMT -4. The time now is 12:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy