02-14-2008
vbe,
You mean that we run this command in single user mode or multimode? One more thing. From the commands that you give, is this possible to aplly for lvreduce also?
Quote:
cd /;
find usr -depth|cpio -xdump /<where you can spare the space>
umount /dev/vg00/lvol7;
I imagine now you have not much choice:
rmdir /usr
ln -s /<where you copied usr> /usr
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi, I'm not good in scripting, maybe someone can help me.
I need to delete the lines that contains the last month date from a text file. Each line has the following date format:
So the script should check the actual month, and delete all the lines that contains the past month. The script runs... (2 Replies)
Discussion started by: piltrafa
2 Replies
2. AIX
Hi folks,
I known how to incrase and reduce File System size on AIX 5.3, but my issue is that I have a Logical Volume without any filesystem.
So, how to shrink just the logical volume ?
Thanks,
Livio. (5 Replies)
Discussion started by: Livio
5 Replies
3. UNIX for Dummies Questions & Answers
I have a script which includes an FTP. The filename is too long for my target area. The filename is HD012_ABCD_EFGH_061004_F_300_40. I need to the filename to be HD012_ABCD_EFGH_061004_F_. Any ideas. (5 Replies)
Discussion started by: paul1s
5 Replies
4. Shell Programming and Scripting
$ /backup_restore/backupDatabase -b 128 -s 45056000 -non-interactive
The above command is usually ran through cron on a daily basis. However it takes 2hrs to complete. The tape is usually inserted into the V890 server, and cron kicks off the backup around 1:10AM. It completes around 3:30 -... (0 Replies)
Discussion started by: ravzter
0 Replies
5. Solaris
Hi all,
below is the problem details:
ora10g@CNORACLE1>which ld
/usr/ucb/ld
ora10g@CNORACLE1>cd /usr/ccs/bin
ora10g@CNORACLE1>ln -s /usr/ucb/ld ld
ln: cannot create ld: File exists
ora10g@CNORACLE1>
how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies
6. Solaris
Hi All,
We have a T5140 server which has 128 threads in total. Is it possible to reduce the number of threads per core through some configuration changes? I am sorry for being so naive but I am one on this.
Why would I like to do this? Unfortunately we have this for an Oracle Database Server... (6 Replies)
Discussion started by: VENKITACHALAMS8
6 Replies
7. Shell Programming and Scripting
Hello, I pulled out some old code from an unfinished project the other day and wanted to stream line it better. I know anything beyond a double loop is usually bad practice, and I came up with some logic for later that would no longer require the first loop in the following code that works:
... (5 Replies)
Discussion started by: Azrael
5 Replies
8. BSD
I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries.
I was trying to compile the latest version of Kanatest from svn. The autorgen.sh script seems to exit without too much trouble:
$ ./autogen.sh
checking... (2 Replies)
Discussion started by: AntumDeluge
2 Replies
9. OS X (Apple)
OSX uses its own directory strecture on the BSD core, for example /Users/Bob_Alice/. but legacy Unix structure /usr/... remains. Adding confustion, some Unix books say /usr/ was never intended for specific users. and others show it being used for Bor or Alice. I am not sure where to put my third... (5 Replies)
Discussion started by: michaelayres
5 Replies
10. AIX
The root filesystem was mirrored, someone/something stopped mirroring, and increased / and /home to ridiculous values (/ got increased to 102gb and its only using 4.3gb, so 98gb is free). Can I reduce the / (/dev/hd4) filesytem down WITHOUT corrupting the the OS?
I would do a: chfs -a size=10g... (6 Replies)
Discussion started by: mrmurdock
6 Replies
LVREMOVE(8) System Manager's Manual LVREMOVE(8)
NAME
lvremove - remove a logical volume
SYNOPSIS
lvremove [-A|--autobackup {y|n}] [-d|--debug] [-h|--help] [-t|--test] [-v|--verbose] [--version] [-f|--force] [--noudevsync] LogicalVol-
ume{Name|Path} [LogicalVolume{Name|Path}...]
DESCRIPTION
lvremove removes one or more logical volumes. Confirmation will be requested before deactivating any active logical volume prior to
removal. Logical volumes cannot be deactivated or removed while they are open (e.g. if they contain a mounted filesystem). Removing an
origin logical volume will also remove all dependent snapshots.
If the logical volume is clustered then it must be deactivated on all nodes in the cluster before it can be removed. A single lvchange com-
mand issued from one node can do this.
OPTIONS
See lvm(8) for common options.
-f, --force
Remove active logical volumes without confirmation.
--noudevsync
Disable udev synchronisation. The process will not wait for notification from udev. It will continue irrespective of any possible
udev processing in the background. You should only use this if udev is not running or has rules that ignore the devices LVM2 cre-
ates.
EXAMPLES
Remove the active logical volume lvol1 in volume group vg00 without asking for confirmation:
lvremove -f vg00/lvol1
Remove all logical volumes in volume group vg00:
lvremove vg00
SEE ALSO
lvcreate(8), lvdisplay(8), lvchange(8), lvm(8), lvs(8), lvscan(8), vgremove(8)
Sistina Software UK LVM TOOLS 2.02.95(2) (2012-03-06) LVREMOVE(8)