Solved

lvreduce problem

Posted on 1997-01-12
1
506 Views
Last Modified: 2013-12-16
I am trying to reduce the size of a logical volume, but lvreduce keeps giving me errors.  I have rebooted to single-user mode, but am told that data will be lost.  What is the proper procedure for reducing the size of a logical volume in HPUX 10.20?
0
Comment
Question by:SAGEM
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
dcarrigan earned 100 total points
ID: 1811770
The LVM has no way to know which extents it manages contain useful data. Thus, if you reduce the size of the LV you could be removing extents which are actually part of the filesystem that was created on the LV. If you have no useful data on the LV, go ahead and change the size and then create a new filesystem. If you do have useful data, back up the filesystem, change the size of the LV, create a new filesystem, and restore the backed up data.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sed -- search an replace multiple pattern 11 101
aix tls version 6 546
Sed question 2 123
bash while loop reading input from data section in script 7 71
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question