01-24-2008
As root Copy the filesystem in another one e.g.
cd /usr; find. -print| cpio -dpuml /<backup-copy-filesystem>
Ah but you did an extendfs...
So when you say you have plenty of space on another filesytem do you mean you have no more free PE ?
Which case you will have to do the above to where you have room:
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
And now test!!
If all is fine and works
You will have to remove the logical volume and recreate it then do the copy the other way round by mounting lvol7 on lets say /usr2 in order to do the transfer then remove the link and mount lvol7 on /usr (dont forget the mkdir...)
Good luck
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
LEARN ABOUT NETBSD
lvconvert
LVCONVERT(8) System Manager's Manual LVCONVERT(8)
NAME
lvconvert - convert a logical volume from linear to mirror or snapshot
SYNOPSIS
lvconvert -m|--mirrors Mirrors [--mirrorlog {disk|core}] [--corelog] [-R|--regionsize MirrorLogRegionSize] [-A|--alloc AllocationPolicy]
[-b|--background] [-i|--interval Seconds] [-h|-?|--help] [-v|--verbose] [--version]
LogicalVolume[Path] [PhysicalVolume[Path]...]
lvconvert -s|--snapshot [-c|--chunksize ChunkSize] [-h|-?|--help] [-v|--verbose] [-Z|--zero y|n] [--version]
OriginalLogicalVolume[Path] SnapshotLogicalVolume[Path]
DESCRIPTION
lvconvert will change a linear logical volume to a mirror logical volume or to a snapshot of linear volume and vice versa. It is also used
to add and remove disk logs from mirror devices.
OPTIONS
See lvm for common options.
Exactly one of --mirrors or --snapshot arguments required.
-m, --mirrors Mirrors
Specifies the degree of the mirror you wish to create. For example, "-m 1" would convert the original logical volume to a mirror
volume with 2-sides; that is, a linear volume plus one copy.
--mirrorlog {disk|core}
Specifies the type of log to use. The default is disk, which is persistent and requires a small amount of storage space, usually on
a separate device from the data being mirrored. Core may be useful for short-lived mirrors: It means the mirror is regenerated by
copying the data from the first device again every time the device is activated - perhaps, for example, after every reboot.
--corelog
The optional argument "--corelog" is the same as specifying "--mirrorlog core".
-R, --regionsize MirrorLogRegionSize
A mirror is divided into regions of this size (in MB), and the mirror log uses this granularity to track which regions are in sync.
-b, --background
Run the daemon in the background.
-i, --interval Seconds
Report progress as a percentage at regular intervals.
-s, --snapshot
Create a snapshot from existing logical volume using another existing logical volume as its origin.
-c, --chunksize ChunkSize
Power of 2 chunk size for the snapshot logical volume between 4k and 512k.
-Z, --zero y|n
Controls zeroing of the first KB of data in the snapshot. If the volume is read-only the snapshot will not be zeroed.
Examples
"lvconvert -m1 vg00/lvol1"
converts the linear logical volume "vg00/lvol1" to a two-way mirror logical volume.
"lvconvert --mirrorlog core vg00/lvol1"
converts a mirror with a disk log to a mirror with an in-memory log.
"lvconvert --mirrorlog disk vg00/lvol1"
converts a mirror with an in-memory log to a mirror with a disk log.
"lvconvert -m0 vg00/lvol1"
converts a mirror logical volume to a linear logical volume.
"lvconvert -s vg00/lvol1 vg00/lvol2"
converts logical volume "vg00/lvol2" to snapshot of original volume "vg00/lvol1"
SEE ALSO
lvm(8), vgcreate(8), lvremove(8), lvrename(8), lvextend(8), lvreduce(8), lvdisplay(8), lvscan(8)
Red Hat, Inc LVM TOOLS 2.02.44-cvs (02-17-09) LVCONVERT(8)