LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-02-2014, 11:38 AM   #1
chiendarret
Member
 
Registered: Mar 2007
Posts: 307

Rep: Reputation: 16
Failure to resize logical volumes raid mirror


I tried unsuccessfully to follow a recent suggestion on this forum as to transferring 1GB from vg1-tmp (5.4G) to vg1-root (922M) (the suggestion was for vg1-home in place of my vg1-tmp). I integrated backup. My Debian amd64 wheezy raid mirror was booted with live/rescue SystemRescueCD x86-4.2.0 Code and output follow.

Code:
dd if=/dev/vg1/tmp | ssh 192.168.#.## dd of=/home/chiendarret/tmp/vg1-tmp
The same for vg1-root. OK in both cases along my LAN.


Code:
e2fsck -f /dev/mapper/vg1-tmp
14/366480 files, 7.1% non contiguous, 58681/1464320 blocks

Code:
umount /dev/mapper/vg1-tmp
Not mounted

Code:
resize2fs /dev/mapper/vg1-tmp 4G
resizing to 1048576 blocks long


Code:
lvreduce -L -1G /dev/mapper/vg1-tmp
reducing active logical volume to 4.59GiB

Code:
e2fsck -f /dev/mapper/vg1-tmp
14/260608 files 7.1% non contiguous, 53038/1048576 blocks


Code:
resize2fs /dev/mapper/vg1-tmp
file syst /dev/mapper/vg1-tmp is now 1202176 blocks long

Code:
umount   /dev/mapper/vg1-root
not mounted

Code:
e2fsck -f /dev/mapper/vg1-root
22812/60928 files, 5.9% non contiguous, 22258/243712 blocks

Code:
lvextend -l +100%FREE /dev/mapper/vg1-root
extending logical vol root to 14.05 GiB

Code:
resize2fs /dev/mapper/vg1-root
Code:
mount    /dev/mapper/vg1-tmp  /tmp
Code:
mount   /dev/mapper/vg1-root    /

Booting Debian, I found the same "df -h" as initially, with warning that vg1-root is nearly full:

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg1-root 922M 839M 35M 97% /
udev 10M 0 10M 0% /dev
tmpfs 1.6G 860K 1.6G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 3.2G 80K 3.2G 1% /run/shm
/dev/mapper/vg1-home 770G 271G 461G 37% /home
/dev/mapper/vg1-opt 9.1G 3.1G 5.6G 36% /opt
/dev/mapper/vg1-tmp 5.4G 12M 5.1G 1% /tmp
/dev/mapper/vg1-usr 55G 6.4G 46G 13% /usr
/dev/mapper/vg1-var 19G 2.5G 15G 15% /var
none 4.0K 0 4.0K 0% /sys/fs/cgroup

What's wrong?

Thanks for advice
 
Old 06-04-2014, 08:35 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
First, I don't know much about Debian or their raid architecture so this may be a really dumb question but
Quote:
My Debian amd64 wheezy raid mirror was booted with live/rescue SystemRescueCD
Is that the normal process to modify the raid or is there some reason it didn't just instantiate normally and you went to a live/Rescue CD?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Logical volumes gone. What's next? Berserker Linux - Software 1 11-01-2013 02:32 PM
How resize Logical Volumes for RHEL into VMWARE ivinc Linux - Newbie 1 06-29-2013 01:20 AM
proper way to use testdisk to recover missing logical volumes on a raid 5 w/ LVM2 markley268 Ubuntu 1 06-21-2009 12:02 PM
creating logical volumes... mtsm Linux - Newbie 1 01-31-2009 06:38 AM
I did not know about logical volumes gezi Linux - Newbie 5 04-27-2005 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration