# echo ’selclass qualifier memory;info;wait;infolog’ |cstm > /tmp/mem.info
OR
#/usr/sam/lbin/getmem
# echo ’selclass qualifier memory;info;wait;infolog’ |cstm > /tmp/mem.info
OR
#/usr/sam/lbin/getmem
There are three different methods/ways to mirror logical volume in hp-ux.
1) Using the dfault value you can extend your logical volume -
# lvextend -m 1 /dev/vgname/lvolName
This is simple hp-ux mirroring. LVEXTEND will mirror the logical volume to the next immediate disk/LUN e.g. cxtxdx
2) Assuming you want to mirror you logical volume on a specific disk/LUN.
# lvextend -m 1 /dev/vgname/lvolname /dev/dsk/cxtxdx
Mirror logical volume to the given disk/LUN e.g. cxtxdx
Using “lvdisplay /dev/vgname/lvolname -v” , you can confirm if your logical volume is mirrored to the disk as defined in lvextend.
3) The third method involves amending/creating /etc/lvmpvg
# vi /etc/lvmpvg
This will allow you to have a strict policy (see # man lvextend) for mirroring using Physical Volume group file.
# cat /etc/lvmpvg
PVG /dev/vgname
PVG PVG
/dev/dsk/c0t1d0
/dev/dsk/c0t1d1
/dev/dsk/c0t1d2
PVG PVGm1 (Mirror PV)
/dev/dsk/c1t2d0
/dev/dsk/c1t2d1
/dev/dsk/c1t2d2
From the above example, the first 3 devices in the lvmpvg file are the primary devices. The next 3 devices in the lvmpvg file are the mirror devices.
# mount /dev/vgname/lvolname (make sure the file system is mounted)
#lvchange -a g /dev/vgname/lvol (you are telling the logical volume to use lvmpvg file)
This will force the logical volume to create mirror on to another set of 3 devices as defined in lvmpvg file – under PVGm1.
So, now if you use lvxtend without any device names, it should create a mirror on the devices as defined under PVGm1.
#lvextend -m 1 /dev/vgname/lvol – (This should create a mirror on PV in PVGm1 group)
Before you begin this process, make sure you defrag the file system first.
The process involves reducing the file system and then the logical volume.
Once you have defrag the file system first, you can now reduce the file system.
1) First reduce the file system
# fsadm –F vxfs –b SmallerM /Fsname (Use “M” if the size is in Megabyte)
2) Now reduce the logical volume.
# lvreduce –L Smallersize /lvname (same size as used above)
NOTE: Make sure you are follow step 1 and 2 in sequece and not other way round, else you will loose your data.
| TOP domains for sale |
| finances.com |
| Make offer |
| ts.com |
| 650.000 $US |
| winter.com |
| Make offer |
| eur.com |
| Make offer |
| sex.co.uk |
| Make offer |
| travelvegas.com |
| Make offer |
| mocast.com |
| 90.000 $US |
| cured.com |
| Make offer |
| webserver.com |
| Make offer |
| snowballs.com |
| Make offer |
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Aug | Nov » | |||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |