Sponsored Content
Full Discussion: [REDHAT7] Adding LVM volume
Top Forums UNIX for Advanced & Expert Users [REDHAT7] Adding LVM volume Post 303000661 by Lord Spectre on Monday 17th of July 2017 12:48:54 PM
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

 

9 More Discussions You Might Find Interesting

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

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

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

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

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

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

9. 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
vgcfgbackup(1M) 														   vgcfgbackup(1M)

NAME
vgcfgbackup - create or update LVM volume group configuration backup file SYNOPSIS
vg_conf_path] vg_name DESCRIPTION
The command saves the LVM configuration for a volume group in a default or alternate configuration backup file (see the option). By default, runs automatically each time an LVM command changes the LVM configuration. In this case, it always uses the default configura- tion backup file. An existing default configuration backup file is renamed with an extension of Options and Arguments recognizes the following options and arguments: vg_name The path name of a volume group. Save the configuration using an alternate file name specified by vg_conf_path. If is omitted, the default file name is in the form: base_vg_name is the base name of vg_name. For example, if vg_name is specified as base_vg_name is Update the configuration backup file with the latest LVM configuration. Only those physical volumes added since the configuration backup file was last modified need to be online. If is omitted, all physical volumes for vg_name must be online. RETURN VALUE
exits with one of the following values: Successful completion. Failure. Errors occurred when information from the volume group was being accessed. EXTERNAL INFLUENCES
Environment Variables determines the language in which messages are displayed. If is not specified or is null, it defaults to "C" (see lang(5)). If any internationalization variable contains an invalid setting, all internationalization variables default to "C" (see environ(5)). EXAMPLES
Back up LVM configuration information for volume group in the default backup file Update LVM configuration information corresponding to volume group in the default backup file Back up LVM configuration information for volume group in the alternate configuration backup file WARNINGS
It is recommended that any alternate configuration backup file be created in the root file system (as is the case with the default path name). This facilitates easy volume group recovery during maintenance mode, such as after a system crash. AUTHOR
was developed by HP. SEE ALSO
vgcfgrestore(1M). vgcfgbackup(1M)
All times are GMT -4. The time now is 09:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy