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

Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat No space in volume group. How to create a file system using existing logical volume
# 1  
RedHat 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 file system. Unfortunately I couldn't recollect the procedure.

Scenario:
/dev/vg00/lvvar is mounted on /var

I want to use the same logical volume lvvar to create another file system /patrol without dismounting /var. Please let me know the complete procedure..


Thanks in advance Smilie
# 2  
You can not have 2 FS on 1 LV.
With LVM2 you can shrink a LV with the commands lvreduce or lvresize.
You will have to unmount the LV though.
After shrinking the existing, you will need to make room on the VG and create a second LV and FS.

Here are the schematics of LVM components:
https://www.redhat.com/magazine/009jul05/features/lvm2/

https://access.redhat.com/documentat...dministration/

I googled an easy HowTo for you:
Reducing a logical volume

Last edited by zaxxon; 10-05-2015 at 06:48 AM.. Reason: update
# 3  
RedHat

Thanks for the reply.

I got the answer. Actually I need a file system to be created with a specific name to execute application level scripts. I don't have enough space in vgs to create a new file system. So I created the directory I wanted under / and linked it to the other folder in /var file system. So virtually I have created a file system. But in reality, Files will be placed under /var folder.
This User Gave Thanks to vamshigvk475 For This Post:
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #584
Difficulty: Easy
Binary files generally requires less space and are more efficient to process.
True or False?

10 More Discussions You Might Find Interesting

1. Ubuntu

Rename Root Logical Volume group?

Hello, I'm running Ubuntu 12.04. I need to rename my root logical volume group and it's bootmanager/fstab accordingly. Here is the output: I need to change the HP-TEST001 to PRODGROUP01. Please advice me. root@PROD-02:/home# vgdisplay --- Volume group --- VG Name HP-TEST001 System ID... (2 Replies)
Discussion started by: moneynut
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. 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. UNIX for Dummies Questions & Answers

Filesystem not using all available space in Logical Volume

I am running HP-UX 11.31 ia64. The /usr filesystem shows 7 GB as the size, but the logical volume that is mounted there shows 13 GB. Is there a way to get the entire 13 GB to show up and why did this happen in the first place? (11 Replies)
Discussion started by: trojan28
11 Replies

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

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

Renaming logical volume group and volumes

Hi all, How do u rename a logical volume group and the logical volumes belonging to that? The logical volumes contain data and are in use. eg: Renaming dev/vgov to dev/ov-dg ? (6 Replies)
Discussion started by: Mr. Zer0
6 Replies

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

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

Featured Tech Videos