LVM maintenance mode is not going to help you in this. The problem is that the /stand, swap and /
(the root file system), all need to be contiguous. In order to increase /, you would have to move the lvol
containing /home.
The easiest way to do this is to make an ignite backup tape, boot off it and resize your root logical
volumes at that point.
You can not extend as there is no contigous space available for extending the root volume !
Ignite is the best and safe. Still if you wanna do some LVM tasks, I have documented how to increase
/stand in the following thread. With some slight modifications u can use it for root filesystem as well. I
have tested and it works fine
Here i have adjusted the size of SWAP a bit so that it could be successfully added to the /stand
filesystem ... As you have root filesystem it is more simple as you may have /var or /opt to be moved a
little further and then increase root filesystem.
The Logic is as follows
1. Goto LVM Maintanance Level
2. Find out the next lvol after root lvol
3. Create a similier one somewhere else in the rootvg and create fs on it.
4. Transfer the data to the new filesystem
5. Remove the old filesystem and lvol.
6. You will have contigous space for extending root lvol now !
7. Extend it and resize the filesystem with extendfs
8. Compensate the /etc/fstab as you have changed the device file !
9. Update BOOT,ROOT,SWAP and dump definitions using lvlnboot
REBOOT !!!!!
This is really interesting ... why don't you try this after taking an ignite backup ? If u do a mistake u can
always go back to your ignite !
Notes :- This method will save lots of time ! BUUUUUT never go for this first time w/o a proper
backup !!!!!
EXTENDING BOOT /stand
01. You are not just an "HP kid" who will play with ignite like stuff.
02. You like taking some risk & saving your valuable time
Size of /dev/vg00/lvol1 is A (boot or /stand or /dev/vg00/lvol1)
Size of /dev/vg00/lvol2 is B (swap or /dev/vg00/lvol2)
You wanna increase size of lvol1 from A to A+X (where X is not more than B - "physical memory
installed in your machine")
Basically we have to decrease size of swap to increase boot as they are contigous.
Now Extending /stand is an easy job which can be performed in 10-15 minutes.
Steps
01. Boot your machine in LVM maintenance mode
(hpux -lm at ISL>)
#rm /etc/mnttab
#vgchange -a y /dev/vg00
#lvrmboot -r /dev/vg00
#lvremove /dev/vg00/lvol2
#lvextend -L "A+X" /dev/vg00/lvol1
#extendfs /dev/vg00/rlvol1
#lvcreate -L "B-(X+10)" -C y -r n -n lvol2 /dev/vg00
#lvlnboot -b /dev/vg00/lvol1
#lvlnboot -r /dev/vg00/lvol3
#lvlnboot -s /dev/vg00/lvol2
#lvlnboot -d /dev/vg00/lvol2
#reboot -r
You have your /stand extended now
This is a working solution i have tried & found success
(the root file system), all need to be contiguous. In order to increase /, you would have to move the lvol
containing /home.
The easiest way to do this is to make an ignite backup tape, boot off it and resize your root logical
volumes at that point.
You can not extend as there is no contigous space available for extending the root volume !
Ignite is the best and safe. Still if you wanna do some LVM tasks, I have documented how to increase
/stand in the following thread. With some slight modifications u can use it for root filesystem as well. I
have tested and it works fine
Here i have adjusted the size of SWAP a bit so that it could be successfully added to the /stand
filesystem ... As you have root filesystem it is more simple as you may have /var or /opt to be moved a
little further and then increase root filesystem.
The Logic is as follows
1. Goto LVM Maintanance Level
2. Find out the next lvol after root lvol
3. Create a similier one somewhere else in the rootvg and create fs on it.
4. Transfer the data to the new filesystem
5. Remove the old filesystem and lvol.
6. You will have contigous space for extending root lvol now !
7. Extend it and resize the filesystem with extendfs
8. Compensate the /etc/fstab as you have changed the device file !
9. Update BOOT,ROOT,SWAP and dump definitions using lvlnboot
REBOOT !!!!!
This is really interesting ... why don't you try this after taking an ignite backup ? If u do a mistake u can
always go back to your ignite !
Notes :- This method will save lots of time ! BUUUUUT never go for this first time w/o a proper
backup !!!!!
EXTENDING BOOT /stand
01. You are not just an "HP kid" who will play with ignite like stuff.
02. You like taking some risk & saving your valuable time
Size of /dev/vg00/lvol1 is A (boot or /stand or /dev/vg00/lvol1)
Size of /dev/vg00/lvol2 is B (swap or /dev/vg00/lvol2)
You wanna increase size of lvol1 from A to A+X (where X is not more than B - "physical memory
installed in your machine")
Basically we have to decrease size of swap to increase boot as they are contigous.
Now Extending /stand is an easy job which can be performed in 10-15 minutes.
Steps
01. Boot your machine in LVM maintenance mode
(hpux -lm at ISL>)
#rm /etc/mnttab
#vgchange -a y /dev/vg00
#lvrmboot -r /dev/vg00
#lvremove /dev/vg00/lvol2
#lvextend -L "A+X" /dev/vg00/lvol1
#extendfs /dev/vg00/rlvol1
#lvcreate -L "B-(X+10)" -C y -r n -n lvol2 /dev/vg00
#lvlnboot -b /dev/vg00/lvol1
#lvlnboot -r /dev/vg00/lvol3
#lvlnboot -s /dev/vg00/lvol2
#lvlnboot -d /dev/vg00/lvol2
#reboot -r
You have your /stand extended now
This is a working solution i have tried & found success
0 Comments