1850555 Members
3351 Online
104054 Solutions
New Discussion

Re: logical volume

 
SOLVED
Go to solution
Asad Malik
Frequent Advisor

logical volume

/dev/vg01/u01 2220032 1647617 549445 75% /u01
I have /u01 file system as above. i want to add two more disks to the system and mirror them, create a new volume group on them and a new logical volume. i want to mount this new logical volume on the the mount point /u01/newdir
i shall create newdir. Is that feasible or can not be done. Any issue i should expect
Thanks
12 REPLIES 12
Clemens van Everdingen
Honored Contributor

Re: logical volume

Hi,

Looks like this is possible.
I would not know why not.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Sandip Ghosh
Honored Contributor

Re: logical volume

It is feasible, but you need not to create another volume group. Just split the mirror and mount the mirror copy on a new directory.

Sandip
Good Luck!!!
Asad Malik
Frequent Advisor

Re: logical volume

/dev/vg01/u01 2220032 1647617
549445 75% /u01
This is not mirrored. only /u01/newdir will be mirrored on the new disks..
Christopher McCray_1
Honored Contributor

Re: logical volume

Hello,

Yes indeed it's possible. create the newdir under /u01 and mount it after the vg/lv is created. Just remember that you will have to unmount the /u01 filesystem before unmounting the /u01/newdir filesystem (trivial, but possible) if needed.

Good luck

Chris
It wasn't me!!!!
Asad Malik
Frequent Advisor

Re: logical volume

"Just
remember that you will have to
unmount the /u01 filesystem
before unmounting the
/u01/newdir filesystem (trivial,
but possible) if needed. "
Will this be other way around/ unmount /u01/newdir first and then /u01
Jeff Schussele
Honored Contributor

Re: logical volume

I see no problems with your logic here at all. The only caveat would be if your LV that contains /u01 is not mirrored & you lose the drive you'll lose the mount point for /u01/newdir. Moral => mirror all the way down the tree.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Helen French
Honored Contributor

Re: logical volume

Hi Asad,

It is possible to do that. Some points:

1) In any case, if /u01 not available ( a disk fail ?), there will be problems with the new file system ( as the mount directory not available) and thereby causing problems to two different file systems !

2) While backing up, if you need /u01 only you have to unmount this new file system.

3) If you need to unmount the /u01, you have to do that for /u01/newdir too.

4) mounting order in /etc/fstab

HTH,
Shiju
Life is a promise, fulfill it!
Jeff Schussele
Honored Contributor

Re: logical volume

Very good points, Shiju!
I forgot about mount order.

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Asad Malik
Frequent Advisor

Re: logical volume

so far so good
just confirming the mounting and unmounting order again in /etc/fstab. /u01 will be mounted first and then /u01/newdir.
For unmounting /u01/newdir will be first and then /u01.
Helen French
Honored Contributor
Solution

Re: logical volume

Hi Asad,

Yes you are right ! /u01 should be available whenever you mount some file system on that !

HTH,
Shiju
Life is a promise, fulfill it!
Martin Burnett_2
Trusted Contributor

Re: logical volume

Hello Asad,

What everyone is telling you is good advice. There is no problem doing this, but why not create a mount point such as /newdir off of / and then put a soft link at /u01/newdir?

# ln -s /newdir /u01/newdir

This way if /u01 is not available you could still get to your files. And you don't have to worry about those pesky /etc/fstab issues.


Martin
Asad Malik
Frequent Advisor

Re: logical volume

Hi Martin
I was exploring that option, but I have given thought to link option and chances are that we will create the link.
Thanks