Sponsored Content
Operating Systems Linux Red Hat Error while extending logicalvolume Post 302972698 by Aia on Monday 9th of May 2016 08:36:44 PM
Old 05-09-2016
Quote:
Originally Posted by gull05
Hello Aia,

I have raised for a change request, i just want to double check with you the commands to be executed after taking the backup.

Code:
1.#umount /dev/vg/a
2.#umount /dev/vg/b
3.#umount /dev/vg/c

Resize PV with the following command,

Code:
#pvresize /dev/sdb1(will this shrink the dev?)


pvdisplay /dev/sdb1 

lvextend -L +30G /dev/mapper/vg_ftpdata-lv_a
lvextend -L +30G /dev/mapper/vg_ftpdata-lv_b
lvextend -L +30G /dev/mapper/vg_ftpdata-lv_c


#mount /dev/vg/a
#mount /dev/vg/b
#mount /dev/vg/c

Kindly confirm.Thanks
Quote:
#pvresize /dev/sdb1(will this shrink the dev?)
If it can it will reconfigure how the pv sees the size of device to the correct size. Nothing is done to the /dev/sdb1

Quote:
lvextend -L +30G /dev/mapper/vg_ftpdata-lv_a
lvextend -L +30G /dev/mapper/vg_ftpdata-lv_b
lvextend -L +30G /dev/mapper/vg_ftpdata-lv_c
I do not know where those come from, everything you have shown says that it should be:
Code:
lvextend -L+30G /dev/mapper/vg-a
lvextend -L+30G /dev/mapper/vg-b
lvextend -L+30G /dev/mapper/vg-c

or
Code:
lvextend -L+30G /dev/vg/a
lvextend -L+30G /dev/vg/b
lvextend -L+30G /dev/vg/c

Note: Do not forget that you have to resize the file system, afterward, to recognize the new space, but I have not mentioned that since it is another topic that I assume you know about it.
This User Gave Thanks to Aia For This Post:
 

10 More Discussions You Might Find Interesting

1. Programming

Help in extending netfilter

Hi everybody, I have to write a module for matching in netfilter , extending the netfilter but I'm facing some problems can somebody guide me in that. I know that I need to write matching module working in kernel space and a program in userspace. I went through the HOWTO on netfilter-hacking but... (0 Replies)
Discussion started by: Trusted Penguin
0 Replies

2. Programming

extending netfilter...plz help

Hello friends i'm trying to extend iptables to include a target by which we can change the packet type field of a packet. For this i created a kernel module and a userspace extension. Now i face the problem that when i try to invoke iptable with the target i created i get an error message saying... (1 Reply)
Discussion started by: Rakesh Ranjan
1 Replies

3. Solaris

extending /var in solaris 10

Hi all, i need to extend /var file system on my solaris 10 box /var is part of rootdg current size 2GB Required size 6GB layout mirror veritas 4.1 solaris 5.10 pls let me know the steps and the procedure to follow. regards Ajay S (2 Replies)
Discussion started by: ajays
2 Replies

4. AIX

Extending filesystems

Hi to all i want to increase the /usr size. but, it is mirrored on hdisk0 and hdisk1. i know that chfs will work, but i am not confident about mirroring. can anyone tell me the procedure. thanks (2 Replies)
Discussion started by: honeym210
2 Replies

5. AIX

Extending database filesystem

Ok, I'm a newbie to AIX so I just want to make sure my thinking is correct with regards to this issue. Any insight you guys could give would be appreciated. A main question I have is should I shutdown the database to extend this LV? The filesystem the dba wants to extend is /dev/fslv83 ... (3 Replies)
Discussion started by: Steelysteel
3 Replies

6. Solaris

VxVM volume extending Prerequisites

Hellow Experts, Could anyone tell me the Prerequisites for extending a Volume on VxVM. (3 Replies)
Discussion started by: sudhan143
3 Replies

7. Red Hat

LVM- extending PV

Hi All, I have one VG on single PV /dev/sda3 with two LV Physically after /dev/sda3 i have 40G unallocated I want to extend /dev/sda3 + 40G and extend its VG, then extend last LV in VG to take new free space What is correct procedure? // I cannot create second PV after /dev/sda3 because of... (5 Replies)
Discussion started by: kactech
5 Replies

8. HP-UX

Extending file system in HP-UX

Hi Guys, Hope everyone is doing great. We've few servers on HP-UX. I'm not sure of extending file systems in HP-UX. Please help me. It could be helpful If you provide the commmand basing on the details below. Thanks in Advance. # hostname ******* # date Sun Sep 7 14:39:59 EDT 2014 #... (2 Replies)
Discussion started by: vamshigvk475
2 Replies

9. Red Hat

Extending swap space

I've to install Oracle binaries (I'm oracle DBA) and for that I've extend swap space in my home computer. My situation is like this. # parted -s /dev/sda print free Model: ATA VBOX HARDDISK (scsi) Disk /dev/sda: 38.7GB Sector size (logical/physical): 512B/512B Partition Table: msdos ... (1 Reply)
Discussion started by: Mukul Sharma
1 Replies

10. Red Hat

Extending swap space

I've to install Oracle binaries (I'm oracle DBA) and for that I've extend swap space in my home computer. My situation is like this. # parted -s /dev/sda print free Model: ATA VBOX HARDDISK (scsi) Disk /dev/sda: 38.7GB Sector size (logical/physical): 512B/512B Partition Table: msdos ... (8 Replies)
Discussion started by: Mukul Sharma
8 Replies
All times are GMT -4. The time now is 02:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy