Operating System - HP-UX
1830657 Members
29211 Online
110015 Solutions
New Discussion

Re: Extending logical volume

 

Extending logical volume

Regards, i have two disk of 146GB.
One disk is 100GB free space.
I want to extend /var/mail that its size may be 246GB.
I want to know if there is posible or is there is some alternative.
One disk is member of VG00.


Tks.



11 REPLIES 11
A. Clay Stephenson
Acclaimed Contributor

Re: Extending logical volume

As long as both disks are members of the same VG then it is possible. A disk (or LUN) can be a member of (at most) one volume group. Reading between the lines, you seem to be saying that one disk is a member of vg00 and the other disk is not --so the answer to your question then becomes no. Bear in mind that there is no requirement that /var (or /var/mail) actually reside in vg00.
If it ain't broke, I can fix that.
Coolmar
Esteemed Contributor

Re: Extending logical volume

Do both disks belong to VG00, or just one of them?
Is the filesystem presently /var with a subdirectory within it called mail or is the filesystem actually /var/mail?
Are you running OnlineJFS?
MarkSyder
Honored Contributor

Re: Extending logical volume

If /var/mail is currently part of /var you might like to set it up as a filesystem in its own right on the disc with 100 Gb free (assuming that is not vg00). The change would be invisible to the users, who would still see /var/mail as being under /var.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing

Re: Extending logical volume

Ok returning to the case.

It could be possible if i add the disk to VG00??


DCE
Honored Contributor

Re: Extending logical volume



It is possible if the the disk is part of vg00.

If you have online JFS installed, you can extend it real time.

If you do not, then mount point needs to be idle in order to extend it. (off line)
Coolmar
Esteemed Contributor

Re: Extending logical volume

Can you attach the following, it might help:

# vgdisplay -v /dev/vg00
# ioscan -funC disk
# bdf

Thanks,
Coolmar
Esteemed Contributor

Re: Extending logical volume

Can you attach the output of the following, it might help:

# vgdisplay -v /dev/vg00
# ioscan -funC disk
# bdf

Thanks,

Re: Extending logical volume

Here go the information requested . . .
Coolmar
Esteemed Contributor

Re: Extending logical volume

Ok, so you have your root volume (VG00) on c2t0d0 and VG01 on c2t1d0. /var/mail is a filesystem on VG01.
So, you want to know if you can take the free space from VG00 and increase the size of /var/mail on vg01? If that is what you are asking, then the answer is no. You would have to remove vg01 completely and then add the disk c2t1d0 to vg00 and then you could extend the size of /var/mail. There is another way, but would involve making an ignite tape and basically reconfiguring the filesystems/disks as I see you have a c0t0d0 disk as well.

Anyway, I hope I answered your question and if not....just write back.

Re: Extending logical volume

Ok, i want to remove completely remove vg01 and then add the c2t1d0 to vg00.
I have to extend vg00 thats ok, but i want to know how to extend /var/mail to occupy the resto of the disk c2t0d0 and the complete space of c2t1d0??
Coolmar
Esteemed Contributor

Re: Extending logical volume

Well if you are wiping out VG01 and /var/mail and creating it on VG00 then you don't have to extend it, but create it at whatever size you need. You can do it within SAM or at the command line:

# pvcreate -f /dev/rdsk/c2t1d0
# vgextend vg00 /dev/dsk/c2t1d0
# lvcreate -L SIZE IN MB -n mail vg00
# newfs -F vxfs /dev/vg00/mail
# mount /var/mail

Hopefully I covered it all for you.