[REDHAT7] Adding LVM volume


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users [REDHAT7] Adding LVM volume
# 1  
Old 07-17-2017
[REDHAT7] Adding LVM volume

Dear community,
is it possible to add more volumes to actual LVM disk? I have the following:
Code:
# lsblk
NAME                      MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                         8:0    0   120G  0 disk 
├─sda1                      8:1    0   500M  0 part /boot
└─sda2                      8:2    0 119.5G  0 part 
  ├─lvm01-root.vol        253:0    0   5.9G  0 lvm  /
  ├─lvm01-swap.vol        253:1    0     4G  0 lvm  [SWAP]
  ├─lvm01-tmp.vol         253:2    0     3G  0 lvm  /tmp
  ├─lvm01-opt.vol         253:3    0     3G  0 lvm  /opt
  ├─lvm01-varlogaudit.vol 253:4    0  1000M  0 lvm  /var/log/audit
  ├─lvm01-varlog.vol      253:5    0  1000M  0 lvm  /var/log
  ├─lvm01-var.vol         253:6    0  47.8G  0 lvm  /var
  └─lvm01-home.vol        253:7    0     3G  0 lvm  /home
sr0                        11:0    1  1024M  0 rom

And I would like to have something like:
Code:
# lsblk
NAME                      MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                         8:0    0   120G  0 disk 
├─sda1                      8:1    0   500M  0 part /boot
└─sda2                      8:2    0 119.5G  0 part 
  ├─lvm01-root.vol        253:0    0   5.9G  0 lvm  /
  ├─lvm01-swap.vol        253:1    0     4G  0 lvm  [SWAP]
  ├─lvm01-tmp.vol         253:2    0     3G  0 lvm  /tmp
  ├─lvm01-opt.vol         253:3    0     3G  0 lvm  /opt
  ├─lvm01-varlogaudit.vol 253:4    0  1000M  0 lvm  /var/log/audit
  ├─lvm01-varlog.vol      253:5    0  1000M  0 lvm  /var/log
  ├─lvm01-var.vol         253:6    0  47.8G  0 lvm  /var
  ├─lvm01-home.vol         253:7    0  47.8G  0 lvm /home
  ├─lvm01-part1.vol         253:8    0  3G  0 lvm /part1
  ├─lvm01-part2.vol         253:9    0  3G  0 lvm /part2
  └─lvm01-part3.vol        253:10    0     3G  0 lvm  /part3

Thank you
Lucas

---------- Post updated at 11:48 AM ---------- Previous update was at 11:24 AM ----------

DAMN! Stupid question!!!! Smilie

Code:
/sbin/lvcreate -L 20G -n part1.vol lvm01
/sbin/lvcreate -L 10G -n part2.vol lvm01
/sbin/lvcreate -L 4G -n part3.vol lvm01

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 Volume Manager - adding slice to metadb

Hi all, I added a new disk slice to the current metadb. Below is what I see bash-3.2# metadb -i flags first blk block count a m p luo 16 8192 /dev/dsk/c0t0d0s7 a p luo 8208 8192 ... (3 Replies)
Discussion started by: javanoob
3 Replies

2. UNIX for Advanced & Expert Users

LVM, Troubles with adding another Disk

I am having trouble with LVM and one of my physical volumes. Using Ubuntu Desktop 14.04 I was trying to set up LVM across two disks (not containing the OS or Home). First I created the initial Physical Volume, the Volume Group, and the Logical volume, and everything seemed fine. The... (2 Replies)
Discussion started by: JR_ULFOR
2 Replies

3. Filesystems, Disks and Memory

Expanding a volume group with system-config-lvm

Good morning, I'm working in a lab that generates a good amount of data and we've just about filled our 9.1TB RAID. The system is a Dell PowerEdge 2950 running Scientific Linux 5.4 with a PERC H800 and a Dell PowerVault MD1200. The MD1200 has 12 bays, 6 of which were filled with 2TB drives... (1 Reply)
Discussion started by: mmulqu
1 Replies

4. Red Hat

Removing LVM Volume Group that doesn't exist anymore

Our SAN administrator decided to unpresent then destroy LUN's we were actively using as a volume group (all PV's in said volume group). Now every time I do a pvscan or whatever it complains about I/O errors trying to access those PV's. How do I get it to forget the VG existed completely? vgreduce... (7 Replies)
Discussion started by: thmnetwork
7 Replies

5. Red Hat

Create volume using LVM over 2 physical disks

I wanted to know how we can combine volumes over 2 physical drives. # fdisk -l Disk /dev/sda: 42.9 GB, 42949672960 bytes 255 heads, 63 sectors/track, 5221 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 ... (16 Replies)
Discussion started by: ikn3
16 Replies

6. Linux

About shrinking LVM and then adding the freed space to another OS on dualboot system

Hi all, Fedora 17, 64bit Ubuntu 12.04 desktop 64bit HD 160G I installed Ubuntu 12.04 on the HD first taking up the whole disc. Later I added/installed Fedora 17 selecting the "Shrink" option and save the bootloader on /dev/sda1 to make them dualboot. Installation is successful with... (0 Replies)
Discussion started by: satimis
0 Replies

7. Linux

LVM (volume manager) and virtual disks

:eek: Hi guys, I'm pulling my hair out over this one. I am trying to set up a virtual server environment. ( I am using VirtualBox, but I think this is irrelevant to this problem.) I have downloaded a pre-packaged Linux virtual disk, with which I have successfully started a virtual instance of a... (4 Replies)
Discussion started by: otheus
4 Replies

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

9. HP-UX

disk adding through lvm

Hi dear(s) Can u explain how to add a disk through lvm with commands. I need to add a 9 gb scsi HS disk to a Hp D class 9000 server. (2 Replies)
Discussion started by: sreekumar.R
2 Replies
Login or Register to Ask a Question