How to move the entire system to a new larger drive?


 
Thread Tools Search this Thread
Operating Systems HP-UX How to move the entire system to a new larger drive?
# 1  
Old 03-10-2012
How to move the entire system to a new larger drive?

Hi,
I have a problem again and I hope that someone on this forum will help me in solving it. My English is weak, but I'll try to describe it clearly.
I have an old computer ( HP B180) with HP-UX 10.20. I've done the hard disk image using G4L and replaced the drive. Old drive has 4.3 GB and 9.1 GB is new. I do not have access to an area more than 4.3 GB.
How to extend the file system on the entire surface of the disk? Now I have a LVM. How to extended VG00 to 9.1 GB?
Maybe there is a way to easily move the system to a new larger hard drive?

Regards.
# 2  
Old 03-10-2012
Hi there!

Do you want to move the whole volume group to this new hard drive or you just want to extend the existing volume group? As you have LVM setup, it's easy to extend the VG and the LVs on it. Later we can extend the filesystem as well.
# 3  
Old 03-10-2012
From memory G4L is a great tool, but it could be used the wrong way - if you have cloned the disk you 9Gb disk will look like a 4.3 Gb disk to the O/S and you may have to use SAM to rewrite the partition table.

If you just copied an image to somewhere else then you can copy it back and just use vgextend to increase the size of the volume group with lvextend or whatever is required to sort the system out.

Regards

dave
# 4  
Old 03-11-2012
You should have used the make_recovery tool...
The trouble with the volume group is if you let the OS default values set for a group, you will be unable to add disks twice the size for you have max PP per PV fixed at the creation...
I always give 3-4 times the calculated value at creation to not get stuck with that...

Alternative would be to create a vg01 and migrate non system stuff there, on a 10.20 OS configured with 500MB /dev/vg00/lvol2 swap of 500 MB you would need 200MB for /stand , about 1500 for /var you are quite confortable...
# 5  
Old 03-14-2012
Hi all,
Thanks for the reply. I'm sorry I have not written but I had a few days off.
Let me add some details about my drive.
I ask you for help in getting to the blocked part of the disk.
I've never worked with HP-UX - I'm a little green.
I have experience with Linux, but without LVM.
Can you guide me step by step how to modify the configuration of the drive?
May create a copy using the "make_recovery tool" would be easier for me?
Regards.
How to move the entire system to a new larger drive?-dskjpg
How to move the entire system to a new larger drive?-vg00jpg
# 6  
Old 03-14-2012
Well type
Code:
 vgdisplay -v vg00 |more

It will display something like:
Code:
--- Volume groups ---
VG Name                     /dev/vg00
VG Write Access             read/write
VG Status                   available
Max LV                      255
Cur LV                      8
Open LV                     8
Max PV                      16
Cur PV                      2
Act PV                      2
Max PE per PV               2000
VGDA                        4
PE Size (Mbytes)            4
Total PE                    2046
Alloc PE                    1914
Free PE                     132
Total PVG                   0

What I show you in bold is the limiting factor, for it is set at creation time... multiply that value by certainly 4... and you get the max size of our PV (disk)...
No other way out except a re-install... If you have a tape device (DAT) connect it to the station and reboot, it should find the device and configure it.. I never tried make_recovery on disc - not saying it does not work but Im not much of a help here... maybe in depth at your man pages, I will try to look on my side

Cant you have both disks installed in your B180?
# 7  
Old 03-14-2012
Hi,
command "vgdisplay-v vg00 | more" gives me: ( screen )
Ehh I do not have the strength to this ...
Regards.

p.s.
I have one drive, but if necessary I will install a second.
How to move the entire system to a new larger drive?-lvjpg

Last edited by ftwojtek; 03-14-2012 at 10:53 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need help to move .csv file from UNIX path to windows shared drive or c:\ drive

Hi Guys, Can any one help me on this. I need help to move .csv/.xls file from unix path to windows shared drive or c:\ drive? Regards, LKR (1 Reply)
Discussion started by: lakshmanraok117
1 Replies

2. UNIX for Dummies Questions & Answers

Solaris 2.6 - Duplicate Filesystem to a larger slice(same drive)

One of our production systems has a slice called "oldslice" that periodically runs low on space during normal operation. We have minimum requirements for online data retention, and whoever sized this slice didn't give it much wiggle room, so it periodically runs low on space. I'm getting tired of... (1 Reply)
Discussion started by: the.gooch
1 Replies

3. Solaris

fsck entire hard drive?

ho do you check filesystem on entire hard disk? (9 Replies)
Discussion started by: orange47
9 Replies

4. UNIX for Dummies Questions & Answers

How to move a directory from thumb drive to mac?

I do some scripting during lunch on the macbookpro at work. I have the necessary folders on a thumb drive from my mac at home, and move them with the mv command to the mbpro so I don't have to change the script itself to access the necessary files on the thumb drive, and then change the code again... (13 Replies)
Discussion started by: Straitsfan
13 Replies

5. Shell Programming and Scripting

Search entire system for files containing certain word(s)

I am trying to create a script that will report (email and ftp results) on any file, system wide, that has the word password= in it. (and any variation of password=). Basicaly looking for any plain text passwds. I figured the easiest way would be like this...... for i in `cat find-pw.dat` do... (6 Replies)
Discussion started by: theninja
6 Replies

6. Solaris

Directory size larger than file system size?

Hi, We currently have an Oracle database running and it is creating lots of processes in the /proc directory that are 1000M in size. The size of the /proc directory is now reading 26T. How can this be if the root file system is only 13GB? I have seen this before we an Oracle temp file... (6 Replies)
Discussion started by: sparcman
6 Replies

7. Solaris

move DVD drive between domains in M5000

Hi, I 've a M5000 system with 2 domains configured on it. How can i move the DVD from one domain to the other ? so that i can access the drive in the second domain. cfgdevice -l does not work on M5000 (6 Replies)
Discussion started by: fugitive
6 Replies

8. UNIX for Dummies Questions & Answers

How to find a file whick is consuming larger disk space in file system

Hello, Can anybody please tell me the command to find out the filesystem or a file which is consuming larger disk space sing i want to find out the file and want to compress it please help me out any help would be appreciated (6 Replies)
Discussion started by: lokeshpashine
6 Replies

9. Solaris

how to restore an entire system from a tar file?

Hi folks, I have an image backup of an entire file system (Solaris 9 on N240) on a tar file. How can I use this tar file to retore my system? Thanks, omd (1 Reply)
Discussion started by: omd
1 Replies
Login or Register to Ask a Question