Operating System - HP-UX
1748137 Members
3800 Online
108758 Solutions
New Discussion юеВ

Another 11.23 with IBM SDD question

 
SOLVED
Go to solution
LynnG
Advisor

Another 11.23 with IBM SDD question

I have an ia64 server running hpux 11.23 using the IBM SDD driver of 1.7.1.0. I'm pretty sure I know how to do this, but confirmation would be terrific.

I have a volume group with 1 logical volume of 5 Terrabytes sitting on it across several /dev/dsk/vpath? ... I need to remove, 2 Terrabytes to be able to give to another volume group ... my question is, would this be the plan of attack would be:

umount file system
vgreduce /dev/dsk/vpath??
(removing 2 Terrabytes worth)
newfs file system
mount file system
pvcreate /dev/dsk/vpath??
(recreating the disk so it can be added to another volume group)
vgextend /dev/dsk/vpath??
(extending the given vpaths into the new volume group)

Please let me know if more information is needed or is I am on the right or wrong path here.

Thanks

Lynn
6 REPLIES 6
Patrick Wallek
Honored Contributor

Re: Another 11.23 with IBM SDD question

Sounds reasonable. You will probably have to 'pvcreate -f' the disks since they were part of a previous VG.
BUPA IS
Respected Contributor

Re: Another 11.23 with IBM SDD question

Hello,
You will need to either lvreduce or lvremove the 5TB logical volume before you vgreduce the volume group .

If you want to preserve the current file system in situ you can use fsadm to resize it. Of course you will back it up before you start .
defrag it first: this assumes online JFS
fsadm -F vxfs -D -d -E -e /mpoint
fsadm -F vxfs -b newsize /mpoint
After that you can lvreduce the logical volume and use pvdisplay -v to show that the disks are empty before removing them from the exsisting volume group .
The newsize may fail if the exsisting file system would end up nearly full once shrunk .

I hope this is of some help
Mike
Help is out there always!!!!!
Yogesh M Puranik
Valued Contributor
Solution

Re: Another 11.23 with IBM SDD question

Hello,

Below are your simple and exact steps to follow.

____________________________________________
OLD FS

1]Make sure that you have a atleast one copy of backup of entire file system.

2]After making sure the copy of backup,
unmount the file system,

#umount /filesystem

3]lvremove /dev/vgxx/lvxx

4]vgreduce /dev/dsk/vpath1 /dev/dsk/vpath2 ....

5]Remove the entry of lv from /etc/fstab.
____________________________________________

New file system:

6]pvcreate -f /dev/rdsk/vpath1
pvcreate -f /dev/rdsk/vpath2
pvcreate -f /dev/rdsk/vpath3.......

7]mknod /dev/vgxx/group c 64 0x"xxxxxx"

8]vgcreate vgname /dev/dsk/vapath1 /dev/dsk/vapath2....

9]lvcreate -L 2TB /dev/vgxx/lvxx -n lvname

10]newfs -F vxfs /dev/rxx/lvxx

11]mount /dev/dsk/lvxx /fs

12]Make entry in /etc/fstab.


Hope this will help you


Rgds

Yogesh
(your points are highly appritiated)
Yogesh M Puranik
Valued Contributor

Re: Another 11.23 with IBM SDD question

Hi Lynn,

I hope you might have fixed your issue.My request is People are putting their precious time to solve your queries on your needy time.So please encourge them by assigning points from you.


Rgds
Yogesh
LynnG
Advisor

Re: Another 11.23 with IBM SDD question

YES, I agree about the points, I just completed this work late Friday. I was going to assign points today as I wanted to ensure the steps were as expected which they were, please look for points. :)

Thanks again
LynnG
Advisor

Re: Another 11.23 with IBM SDD question

Yogesh, this worked just as you stated. THANK YOU please find points attached to you. For everyone else, thank you as well for the information provided.