Sponsored Content
Operating Systems HP-UX Creating a logical volume file Post 302601231 by jamie2teach on Thursday 23rd of February 2012 06:51:24 AM
Old 02-23-2012
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 file for an Oracle database datafile.

Some details:

Code:
# vgdisplay -v vg02
--- Volume groups ---
VG Name                     /dev/vg02
VG Write Access             read/write
VG Status                   available
Max LV                      255
Cur LV                      15
Open LV                     15
Max PV                      16
Cur PV                      1
Act PV                      1
Max PE per PV               17493
VGDA                        2
PE Size (Mbytes)            8
Total PE                    17493
Alloc PE                    11510
Free PE                     5983
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0
VG Version                  1.0
VG Max Size                 2239104m
VG Max Extents              279888

   --- Logical volumes ---
   LV Name                     /dev/vg02/_efinl_sysaux1
   LV Status                   available/syncd
   LV Size (Mbytes)            512
   Current LE                  64
   Allocated PE                64
   Used PV                     1

   LV Name                     /dev/vg02/_efinl_system1
   LV Status                   available/syncd
   LV Size (Mbytes)            640
   Current LE                  80
   Allocated PE                80
   Used PV                     1

   LV Name                     /dev/vg02/_efinl_tools1
   LV Status                   available/syncd
   LV Size (Mbytes)            104
   Current LE                  13
   Allocated PE                13
   Used PV                     1

   LV Name                     /dev/vg02/_efinl_users1
   LV Status                   available/syncd
   LV Size (Mbytes)            104
   Current LE                  13
   Allocated PE                13
   Used PV                     1

   LV Name                     /dev/vg02/_efinl_efinliver_dts1
   LV Status                   available/syncd
   LV Size (Mbytes)            304
   Current LE                  38
   Allocated PE                38
   Used PV                     1

   LV Name                     /dev/vg02/_efint_efintestr_dts1
   LV Status                   available/syncd
   LV Size (Mbytes)            304
   Current LE                  38
   Allocated PE                38
   Used PV                     1

   LV Name                     /dev/vg02/_css_pagf1
   LV Status                   available/syncd
   LV Size (Mbytes)            24576
   Current LE                  3072
   Allocated PE                3072
   Used PV                     1

   LV Name                     /dev/vg02/_css_pagf2
   LV Status                   available/syncd
   LV Size (Mbytes)            8192
   Current LE                  1024
   Allocated PE                1024
   Used PV                     1

   LV Name                     /dev/vg02/_css_pagf3
   LV Status                   available/syncd
   LV Size (Mbytes)            8192
   Current LE                  1024
   Allocated PE                1024
   Used PV                     1

   LV Name                     /dev/vg02/_css_pagf4
   LV Status                   available/syncd
   LV Size (Mbytes)            8192
   Current LE                  1024
   Allocated PE                1024
   Used PV                     1

   LV Name                     /dev/vg02/_css_pagf5
   LV Status                   available/syncd
   LV Size (Mbytes)            8192
   Current LE                  1024
   Allocated PE                1024
   Used PV                     1

   LV Name                     /dev/vg02/_css_pagf6
   LV Status                   available/syncd
   LV Size (Mbytes)            8192
   Current LE                  1024
   Allocated PE                1024
   Used PV                     1

   LV Name                     /dev/vg02/_css_pagf7
   LV Status                   available/syncd
   LV Size (Mbytes)            8192
   Current LE                  1024
   Allocated PE                1024
   Used PV                     1

   LV Name                     /dev/vg02/_css_pagf8
   LV Status                   available/syncd
   LV Size (Mbytes)            8192
   Current LE                  1024
   Allocated PE                1024
   Used PV                     1

   LV Name                     /dev/vg02/_css_pagf9
   LV Status                   available/syncd
   LV Size (Mbytes)            8192
   Current LE                  1024
   Allocated PE                1024
   Used PV                     1


   --- Physical volumes ---
   PV Name                     /dev/dsk/c0t0d0
   PV Status                   available
   Total PE                    17493
   Free PE                     5983
   Autoswitch                  On
   Proactive Polling           On


# bdf /disk1
Filesystem          kbytes    used   avail %used Mounted on
/dev/dsk/c0t1d1    71652960 31511906 37653489   46% /disk1

# pwd
/dev/vg02

# ls -la
total 32
drwxr-xr-x   2 root       sys           8192 Jan 12 15:29 .
dr-xr-xr-x  26 bin        bin           8192 Feb 23 11:49 ..
brw-r-----   1 root       sys         64 0x020007 Apr 10  2010 _css_pagf1
brw-r-----   1 root       sys         64 0x020008 Jun 22  2010 _css_pagf2
brw-r-----   1 root       sys         64 0x020009 Sep 13  2010 _css_pagf3
brw-r-----   1 root       sys         64 0x02000a Jan  1  2011 _css_pagf4
brw-r-----   1 root       sys         64 0x02000b Mar 17  2011 _css_pagf5
brw-r-----   1 root       sys         64 0x02000c May 11  2011 _css_pagf6
brw-r-----   1 root       sys         64 0x02000d Aug 30 09:22 _css_pagf7
brw-r-----   1 root       sys         64 0x02000e Oct 13 17:56 _css_pagf8
brw-r-----   1 root       sys         64 0x02000f Jan 12 15:29 _css_pagf9
brw-r-----   1 root       sys         64 0x020005 Jun 11  2008 _efinl_efinliver_dts1
brw-r-----   1 root       sys         64 0x020001 Jun 11  2008 _efinl_sysaux1
brw-r-----   1 root       sys         64 0x020002 Jun 11  2008 _efinl_system1
brw-r-----   1 root       sys         64 0x020003 Jun 11  2008 _efinl_tools1
brw-r-----   1 root       sys         64 0x020004 Jun 11  2008 _efinl_users1
brw-r-----   1 root       sys         64 0x020006 Aug  9  2008 _efint_efintestr_dts1
crw-r-----   1 root       sys         64 0x020000 Jun 11  2008 group
crw-rw-rw-   1 root       sys         64 0x020007 Apr 10  2010 r_css_pagf1
crw-rw-rw-   1 root       sys         64 0x020008 Jun 22  2010 r_css_pagf2
crw-rw-rw-   1 root       sys         64 0x020009 Sep 13  2010 r_css_pagf3
crw-rw-rw-   1 root       sys         64 0x02000a Jan  1  2011 r_css_pagf4
crw-rw-rw-   1 root       sys         64 0x02000b Mar 17  2011 r_css_pagf5
crw-rw-rw-   1 root       sys         64 0x02000c May 11  2011 r_css_pagf6
crw-rw-rw-   1 root       sys         64 0x02000d Aug 30 09:22 r_css_pagf7
crw-rw-rw-   1 root       sys         64 0x02000e Oct 13 17:56 r_css_pagf8
crw-rw-rw-   1 root       sys         64 0x02000f Jan 12 15:29 r_css_pagf9
crw-rw-rw-   1 root       sys         64 0x020005 Jun 11  2008 r_efinl_efinliver_dts1
crw-rw-rw-   1 root       sys         64 0x020001 Jun 11  2008 r_efinl_sysaux1
crw-rw-rw-   1 root       sys         64 0x020002 Jun 11  2008 r_efinl_system1
crw-rw-rw-   1 root       sys         64 0x020003 Jun 11  2008 r_efinl_tools1
crw-rw-rw-   1 root       sys         64 0x020004 Jun 11  2008 r_efinl_users1
crw-rw-rw-   1 root       sys         64 0x020006 Aug  9  2008 r_efint_efintestr_dts1

What I am trying to do is create a special file like the "r_css_pagf9"

Unfortunately the person that usually deals with this is no longer available and I am having to do his job for him and hence the assistance.

Any questions? Please ask.

Thanks to all that reply.

Moderator's Comments:
Mod Comment Please use next time code tags for your code and data

Last edited by vbe; 02-23-2012 at 08:59 AM..
 

10 More Discussions You Might Find Interesting

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

2. AIX

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>... (2 Replies)
Discussion started by: amit4g
2 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. HP-UX

Unable To Extend the Size of a Logical Volume File System

Background: # uname -a HP-UX deedee B.11.23 U ia64 4294967295 unlimited-user license deedee.rsn.hp.com:/ # bdf /opt Filesystem kbytes used avail %used Mounted on /dev/vg00/lvol6 6553600 6394216 158144 98% /opt /opt is almost full... (3 Replies)
Discussion started by: Rob Sandifer
3 Replies

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

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

9. UNIX for Dummies Questions & Answers

How to create a volume group, logical volume group and file system?

hi, I want to create a volume group of 200 GB and then create different file systems on that. please help me out. Its becomes confusing when the PP calculating PP. I don't understand this concept. (2 Replies)
Discussion started by: kamaldev
2 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
All times are GMT -4. The time now is 10:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy