Create new Volume Group


 
Thread Tools Search this Thread
Operating Systems AIX Create new Volume Group
# 1  
Old 11-04-2011
Create new Volume Group

Good afternoon all,
I'll probably confuse everyone as I'm a Windows guy dealing with AIX 6.1 and can't quite figure out how to do something. I have a P520 server running 2 LPARs and we have an IVM (not HMC).Within the IVM under Virtual Storage Management, when I check the Physical Volumes, I have a HDisk5 not assigned to anything (431GB). Now, for my AIX 6.1 partition I have 2 volume groups (rootvg, datavg) and would like to use HDisk5 as a backupvg. And what I would like to see as the end result is that when I do a df -g to have it show as /dev/backup_lv where I would have 431GB that I can be used for backup files.

As always, thanks in advance!
# 2  
Old 11-04-2011
Not much time, but perhaps a start...

From what I remember of other systems:

pvcreate (pvdisplay to show) to make a physical volume
vgcreate (vgdisaply to show) to make a volume group
lvcreate (lvdisplay to show) to make a logical volume

Do those commands exist for you?
# 3  
Old 11-04-2011
Code:
#mkvg -y backupvg hdisk5

Makes a volume group out of one or more physical volumes
Code:
#mkvg -y backupvg -s 8 hdisk5

then you can create LV on top of the volumegroup

Last edited by h@foorsa.biz; 11-04-2011 at 06:12 PM..
# 4  
Old 11-04-2011
Thanks for that! The only part I'm unclear on is... won't the -s 8 set the size to 128GB? (From the man pages) Would I then just expand the fs?

Thanks as always!
# 5  
Old 11-05-2011
Quote:
Originally Posted by Spellbound
Thanks for that! The only part I'm unclear on is... won't the -s 8 set the size to 128GB? (From the man pages) Would I then just expand the fs?

Thanks as always!
No, it wont. "-s 8" will set that each physical partition will have 8Mb, so if you will decide to extend fs you will do it by minimum of 8Mb.

I would suggest you to create scalable volume group. Here are differences between Normal, Big and Scalable VG

Create VG

Code:
smit mkvg

or

Code:
mkvg -y backupvg -S hdisk5

Then create LV

Code:
smit mklv

or

Code:
mklv -y backup_lv -t jfs2 backupvg number_of_pp_you_want_to_give_this_LV

Then create FS on already existing jfs2 LV

Code:
smit crfs

or

Code:
crfs -v jfs2 -g backupvg -m your_mount_point -a logname=INLINE -d backup_lv

and mount your newly created FS

Code:
 mount your_mount_point

But there are more options for each command, like if you would like to varryon vg automatically after system reboot or if you would like to mount FS after system restarts. If I were you I would use smit which is very easy to use, and you dont have to look for flags in manual pages.

Last edited by phobus; 11-05-2011 at 03:39 PM..
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. 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

3. Shell Programming and Scripting

Need to create an for loop for adding an disk in veritas volume group.

Hi Experts I need an script to add an disk in to the veritas volume manager disk group. For example: # cd /tmp # view disk c6t5d2 c6t2d1 c6t3d7 c6t11d2 c7t11d2 c6t11d6 Normally we add the disk like this: # vxdg -g freedg freedisk01=c6t5d2 # vxdg -g freedg freedisk02=c6t2d1 #... (3 Replies)
Discussion started by: indrajit_preet
3 Replies

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

5. UNIX for Dummies Questions & Answers

create new group/delete existing group

Hi, please let me know the commands to create new group/delete existing group in unix and assigning users to newly created group. Thank you in advance. (2 Replies)
Discussion started by: kancherla.sree
2 Replies

6. AIX

Adding a Volume Group to an HACMP Resource Group?

Hi, I have a 2 node Cluster. Which is working in active/passive mode (i.e Node#1 is running and when it goes down the Node#2 takes over) Now there's this requirement that we need a mount point say /test that should be available in active node #1 and when node #1 goes down and node#2 takes... (6 Replies)
Discussion started by: aixromeo
6 Replies

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

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

How Can I Create A Volume Group With Two Hard Disks On Hp-ux C-3750

Hello All, I Am A New Member To This Group. I Want To Know How Can We Create Single Volume Group Using 2 Hard Disks. As We Require More Data To Be Stored We Need To Add A Hard Disk,but I Have A Doubt Whether We Can Increase The Size Of A Logical Volume Mounted On A Volume Group By Adding A... (5 Replies)
Discussion started by: bala_mes
5 Replies
Login or Register to Ask a Question