10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
getStatusi86()
{
#storing logical volume name
volumelist=`cfgadm -val | grep "Logical Volume" | awk '{print substr($1,9,14)}'`
controller=`echo $volumelist | awk '{print substr($1,2,1)}'`
#errordisk=""
volume1=`echo $volumelist | awk '{print $1}'`
for volume in $volumelist
do... (1 Reply)
Discussion started by: frintocf
1 Replies
2. Solaris
I tried using raidctl earlier today to use my 2 disks in a RAID1 setup and I totally destroyed my OS install. I'm sure I did something funky and it freaked out. No big deal...right?
This is what I was seeing after a reboot.
I decided to just reinstall the OS. It let me go through all of... (3 Replies)
Discussion started by: kingdbag
3 Replies
3. Solaris
I have boot disk mirrored using hardware raid i.e raidctl command.
If I want to place an order for a spare drive and keep it at our location for spare, how do I find the disk specification since #format does not reveal this.
The server is T2000 running Solaris 10.
Any help please. (5 Replies)
Discussion started by: Tirmazi
5 Replies
4. Solaris
using the internal 2 drives mirror was created using raidctl on 100's of our servers . sometime when one drive fails we dont face any issue & we replace the drive with out any problem . but sometimes when one drive fails , system becomes unresponsive and doesnot allow us to login , the only way to... (1 Reply)
Discussion started by: skamal4u
1 Replies
5. UNIX for Dummies Questions & Answers
Hello people i have a question, when i put raidctl -l on sun fire show this
Volume Size Stripe Status Cache RAID
Sub Size Level
Disk ... (0 Replies)
Discussion started by: enkei17
0 Replies
6. UNIX for Advanced & Expert Users
Hello World:
Recently I ran into an issue where a collegue had installed a Sun T5140 with twin 136GB disks in them. However, he forgot to execute the raidctl command first to mirror c1t0d0 to c1t1d0 boo hoo:) So along I come and try to mirror the disks by booting to sigle user... (1 Reply)
Discussion started by: rambo15
1 Replies
7. Solaris
Setting up a T5240 with two disks c1t0d0 and c1t1d0.
I am trying to use raidctl but when I issue.
raidctl -l
I get
Controller 1
Disk: 0.0.0
Disk: 0.1.0
So I try
raidctl -c '0.0.0 0.1.0' -r 1 1
and I get "Array in use."
I try (4 Replies)
Discussion started by: photon
4 Replies
8. Solaris
At my own eys I can see 4 disks inside of server. Previous admin told me that hardware mirror is done.
What I see with "format" is 2 disks - I suspect that these are 2 MIRRORS.
I just cant be sure because raidctl show this:
# raidctl -l c0t0d0
Volume Size Stripe ... (0 Replies)
Discussion started by: czezz
0 Replies
9. UNIX for Dummies Questions & Answers
I am mirroring a single partition drive with raidctl. The source partition was mounted when I created the mirror with raidctl -c c1t1d0 c1t3d0. The source disk was defined with s2 and s6 only.
I didn't think to umount it first.
Is there a problem with that? (2 Replies)
Discussion started by: csgonan
2 Replies
10. UNIX for Dummies Questions & Answers
I am using raidctl on a v440 disk and noticed it resyncs after every boot, which takes about 30 minutes because of the size of the partition. I am concerned with what happens during the resync if "writes" happen to the disk before it is complete?
Any info would be helpful.
Thanks (0 Replies)
Discussion started by: csgonan
0 Replies
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)