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?
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.
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.
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...
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.
Well type
It will display something like:
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
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)
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)
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)
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)
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)
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)
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)