Operating System - HP-UX
1753672 Members
5405 Online
108799 Solutions
New Discussion юеВ

Re: Noob At Volume Manipulation

 
J.Kimbrell
Advisor

Noob At Volume Manipulation

Hello All,
I have a question. The following is my current setup:
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1179648 611704 563664 52% /
/dev/vg00/lvol1 1776056 31248 1567200 2% /stand
/dev/vg00/lvol8 20971520 6766176 14094432 32% /var
/dev/vg00/lvol7 4587520 1713496 2852600 38% /usr
/dev/vg00/lvol4 524288 270896 251584 52% /tmp
/dev/vg00/lvol6 5111808 3996016 1107136 78% /opt
/dev/vg00/lvol5 114688 9688 104248 9% /home
The above volumes are on "c2t1d0"

a ioscan shows:
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/3/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-C
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373453LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
disk 2 0/1/1/1.0.0 sdisk CLAIMED DEVICE HP 73.4GST373453LC
/dev/dsk/c3t0d0 /dev/rdsk/c3t0d0

I want to run a data dump to c3t0d0 but need to know if I must create the "lvol*'s on c3 like they are on c2 and how to do that so they are identical, or will the data dump (dd) do that automagically ?
Let me know what additional info you might need. Again, major noob to this....
19 REPLIES 19
Shrikant Lavhate
Esteemed Contributor

Re: Noob At Volume Manipulation

Hi there,

you want a data dump? If you want a current copy of data and take it away then any backup (dd, fbackup)or copy utility works for you.
If you are looking for mirroring the data then you must follow the root mirror steps since it looks like you are aiming at lvols of root VG.

Itanium:
http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801?ciid=00089099cee021109099cee02110275d6e10RCRD

PA-RISC:
http://h30499.www3.hp.com/t5/System-Administration/11-23-on-PA-RISC-Procedure-for-root-mirroring/m-p/3800318#M266404


And if main objective behind backing up root VG is OS backup then "ignite" is the way to go!
Refer ignite guide for more details.

--SK

Will it remain a personal, if I broadcast it here!
Shrikant Lavhate
Esteemed Contributor

Re: Noob At Volume Manipulation

Hi there,

you want a data dump? If you want a current copy of data and take it away then any backup (dd, fbackup)or copy utility works for you.
If you are looking for mirroring the data then you must follow the root mirror steps since it looks like you are aiming at lvols of root VG.

Itanium:
http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801?ciid=00089099cee021109099cee02110275d6e10RCRD

PA-RISC:
http://h30499.www3.hp.com/t5/System-Administration/11-23-on-PA-RISC-Procedure-for-root-mirroring/m-p/3800318#M266404


And if main objective behind backing up root VG is OS backup then "ignite" is the way to go!
Refer ignite guide for more details.

--SK

Will it remain a personal, if I broadcast it here!
Pete Randall
Outstanding Contributor

Re: Noob At Volume Manipulation

See Clay's "lifeboat" comments in this thread:

http://h30499.www3.hp.com/t5/LVM-and-VxVM/Create-copy-of-boot-disk-How/m-p/2896744#M13268


Note that I said comments (plural)!


Pete


Pete
J.Kimbrell
Advisor

Re: Noob At Volume Manipulation

As stated, I want to do a ;
dd if=/dev/rdsk/c2t1d0 of=/dev/rdsk/c3t0d0

but need to know if I need to create all the (c2t1d0) /dev/vg00/lvol*'s on c3t0d0 (vg01) as they are on c2t1d0? and how to do that.
Also, does c3t0d0 need to be mounted first or not before running the "dd"?

Thx ahead of time .
J.
J.Kimbrell
Advisor

Re: Noob At Volume Manipulation

Hi Pete, thx for that, but I still have a couple of questions to be answered in my previous post.
Pete Randall
Outstanding Contributor

Re: Noob At Volume Manipulation

See Peggy Fong's detailed response in this thread. That should answer your qestions.

(thread deleted)


Also, Clay offers his "lifeboat creation" script in this thread:

http://h30499.www3.hp.com/t5/System-Administration/Copying-the-boot-disk/m-p/2611549#M36256

Pete


Pete
J.Kimbrell
Advisor

Re: Noob At Volume Manipulation

Thx to everyone, I've looked at the suggested threads and still getting nowhere.
I've had the volume group "vg00" as seen below:

# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1179648 681072 494824 58% /
/dev/vg00/lvol1 1776056 31248 1567200 2% /stand
/dev/vg00/lvol8 20971520 6708312 14151912 32% /var
/dev/vg00/lvol7 4587520 1719472 2846648 38% /usr
/dev/vg00/lvol4 524288 270896 251584 52% /tmp
/dev/vg00/lvol6 5111808 3996016 1107136 78% /opt
/dev/vg00/lvol5 114688 26360 87704 23% /home
*****Then created a new vg (vg01) as seen below:
/dev/vg01/lvol1b 1795241 9 1615707 0% /standb
/dev/vg01/lvol3b 1179648 16758 1090217 2% /rootb
/dev/vg01/lvol4b 524288 16597 475968 3% /tmpb
/dev/vg01/lvol5b 114688 1141 106458 1% /homeb
/dev/vg01/lvol6b 5111808 17721 4775714 0% /optb
/dev/vg01/lvol7b 4587520 17593 4284314 0% /usrb
/dev/vg01/lvol8b 20971520 21608 19640550 0% /varb

Then, when I run the following:
dd if=/dev/vg00/lvol1 of=/dev/vg01/standb bs=8000

I get a big fat file under /dev/vg01 instead of the volume /standb.

# pwd
/dev/vg01
# ls -lrt
total 1134864
cr--r--r-- 1 root sys 64 0x010000 Feb 18 12:59 group
br--r----- 1 root sys 64 0x010001 Feb 18 12:59 lvol1b
cr--r----- 1 root sys 64 0x010001 Feb 18 12:59 rlvol1b
cr--r----- 1 root sys 64 0x010003 Feb 18 12:59 rlvol3b
br--r----- 1 root sys 64 0x010003 Feb 18 12:59 lvol3b
br--r----- 1 root sys 64 0x010004 Feb 18 12:59 lvol4b
cr--r----- 1 root sys 64 0x010004 Feb 18 12:59 rlvol4b
br--r----- 1 root sys 64 0x010005 Feb 18 12:59 lvol5b
cr--r----- 1 root sys 64 0x010005 Feb 18 12:59 rlvol5b
cr--r----- 1 root sys 64 0x010006 Feb 18 12:59 rlvol6b
br--r----- 1 root sys 64 0x010006 Feb 18 12:59 lvol6b
br--r----- 1 root sys 64 0x010007 Feb 18 12:59 lvol7b
cr--r----- 1 root sys 64 0x010007 Feb 18 12:59 rlvol7b
cr--r----- 1 root sys 64 0x010008 Feb 18 12:59 rlvol8b
br--r----- 1 root sys 64 0x010008 Feb 18 12:59 lvol8b
br--r----- 1 root sys 64 0x010002 Feb 18 13:13 lvol2b
cr--r----- 1 root sys 64 0x010002 Feb 18 13:13 rlvol2b
-rw-rw-rw- 1 root sys 581042176 Feb 18 13:20 standb <--Big Fat file.

Why is this not going to /standb ???


J.Kimbrell
Advisor

Re: Noob At Volume Manipulation

Wow, just great, ran the lifeboat script and this is what I got....

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t1d0 (0/1/1/0.1.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t1d0
Root: lvol3 on: /dev/dsk/c2t1d0
Swap: lvol2 on: /dev/dsk/c2t1d0
Dump: lvol2 on: /dev/dsk/c2t1d0, 0

Boot Definitions for Volume Group /dev/vg01:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c3t0d0 (0/1/1/1.0.0) -- Boot Disk
No Boot Logical Volume configured
Root: ??? on: /dev/dsk/c3t0d0
Swap: ??? on: /dev/dsk/c3t0d0
Dump: ??? on: /dev/dsk/c3t0d0, 0

*************
Where are the files at? bdf shows nothing different that it did before i ran the script.
J.Kimbrell
Advisor

Re: Noob At Volume Manipulation

Nobody? Must have stumped the experts..;-)