Sponsored Content
Operating Systems AIX Extend a Filesystem with other LV Post 302143387 by bakunin on Thursday 1st of November 2007 05:42:56 AM
Old 11-01-2007
@porter: Using SMIT is not wrong - it is just no answer to the problem at hand. If you ask me, where the next store is and I tell you to "drive there on the right side", this would be not wrong too (here you *have* to drive on the right side of the street) - but it wouldn't be very useful for you in finding a store either.

To aldowsarys problem:

I told you about "PP size" and that a PP is the smallest amount you can assign to LVs. So it would be a clever idea to use the smallest PP size possible, right? WRONG!! There is a limitation in LVM:

A single PV can hold only 1019 PPs

That means, that (roughly) the size you select for PPs in MBs is the maximum size of the PVs in this VG in GB.

There existed many VGs out there which were poorly designed and had too small PP sizes. Because of this new disks added to these VGs had to be pretty small and the VGs couldn't keep up with the necessities. The best way to deal with this would have been to back these VG up and create them anew with sensible values. Instead of this IBM came up with a clever hack: by (mis-)using some bits in the bookkeeping area of the VG (the correct name is: VGDA) they introduced the "factor".

I told you VGs can hold up to a maximum of 32 disks (PVs). The factor now let you have the double (or quadruple) number of PPs in a single disk, but at the expenditure of of limiting the number of disks in a VG. With a factor of 2 you can have 2038 PPs on a single disk, but only 16 disks in the VG, in your case there seems to be a factor of 4 in effect. This is why you can have only 8 disks (PVs) in your VG.

The best advice i can give you is: back up, create anew, then restore your backup. Everything els is just dragging along an already cumbersome misdesign, which will not get better over time, but perhaps grow into an even bigger obstacle than it already is.

Plan this change (which is a MAJOR change!) thoroughly!

Identify all the LVs in your VG and write down how they are created, where they are mounted, etc.:

lsvg -l <VGNamename>

If you can get your SAN admin to give you more space temporarily go for it! Create the new VG (rename the old VG first to give the new one the same name as the old) alongside the old one so you can always have a look at the original.

Create a backup of all the LVs in the old VG.

Plan carefully: which amount of space are the LVs/FSs in the VG going to need in the foreseeable future? That determines (see above) which PP size is sensible, because this limits the size of disks you can add later. Leave room for extension! (I mean that in EVERY respect - nowhere go to any limit.)

Only when you have made up (really made up!) your mind start implemening your plan: create a backup, create the new VG, create the LVs (give them sensible names, it makes life easier later), create filesystems. You can backup the file /etc/filesystems before you start and use the entries there as a blueprint for your new filesystems.

One more thing: if you have old VGs they are probably created with the JFS filesystem type. If you recreate them use JFS2 instead, as this is more robust and a little bit faster than the older JFS.

bakunin
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

how can I extend /usr filesystem

How can extend /usr filesystem in hp-ux 11.11 (I'm not using online JFS) ? (0 Replies)
Discussion started by: pedro_lezaeta
0 Replies

2. Solaris

How to extend a filesystem

I am running solaris 10 with Veritas. I want to extend a filesystem. It's an oracle partition (/ora12). How can I find out if there is space available to expand the filesystem and then how does one extend it. I'm from the HPUX world and so LVM was always how I did things. Thanks jackie (5 Replies)
Discussion started by: jackiebaron
5 Replies

3. Filesystems, Disks and Memory

How to extend a filesystem??

OK I'm sure this question has been posed far too many times. I have solaris 10 x86 with NO Veritas or Disksuite filesystems. Below is the output of df -k # df -k Filesystem kbytes used avail capacity Mounted on / 10485760 547513 9317128 6% / /dev... (1 Reply)
Discussion started by: jackiebaron
1 Replies

4. Solaris

Filesystem - error when extend the filesystem

Hi all, currently , my root filesystem already reach 90 ++% I already add more cylinder in the root partition as below Part Tag Flag Cylinders Size Blocks 0 root wm 67 - 5086 38.46GB (5020/0/0) 80646300 1 swap wu 1 - ... (11 Replies)
Discussion started by: SmartAntz
11 Replies

5. Solaris

I need expand or extend a filesystem dfsk.

Hello I need to expand a filesystem is full, but I understand that for this I need a volume manager like SVM or Veritas. I have installed solaris 10 but I give it a metastat and tells me there is no database, as if the installation does not have the sudmirrors attachments. The filesystem... (1 Reply)
Discussion started by: cata
1 Replies

6. UNIX for Dummies Questions & Answers

hwo to find shared filesystem and local filesystem in AIX

Hi, I wanted to find out that in my database server which filesystems are shared storage and which filesystems are local. Like when I use df -k, it shows "filesystem" and "mounted on" but I want to know which one is shared and which one is local. Please tell me the commands which I can run... (2 Replies)
Discussion started by: kamranjalal
2 Replies

7. AIX

choosing correct VG for Filesystem extend

Hi Gurus, I have Aix 5.3 server and would like to extend the following filesystem. Filesystem GB blocks Free %Used Iused %Iused Mounted on /dev/lv_mecdr 120.00 12.04 90% 560973 14% /home/mecdrBut there's only 16G for the VG, may be i can expand it... (11 Replies)
Discussion started by: thepurple
11 Replies

8. Solaris

Solaris Filesystem vs. Windows FileSystem

Hi guys! Could you tell me what's the difference of filesystem of Solaris to filesystem of Windows? I need to compare both. I have read some over the net but it's so much technical. Could you explain it in a more simpler term? I am new to Solaris. Hope you help me guys. Thanks! (4 Replies)
Discussion started by: arah
4 Replies

9. AIX

Mount Filesystem in AIX Unable to read /etc/filesystem

Dear all, We are facing prolem when we are going to mount AIX filesystem, the system returned the following error 0506-307The AFopen call failed : A file or directory in the path name does not exist. But when we ls filesystems in the /etc/ directory it show -rw-r--r-- 0 root ... (2 Replies)
Discussion started by: m_raheelahmed
2 Replies

10. Solaris

Extend zfs storage filesystem

Hello, Need to ask the question regarding extending the zfs storage file system. currently after using the command, df -kh u01-data-pool/data 600G 552 48G 93% /data /data are only 48 gb remaining and it has occupied 93% for total storage. zpool u01-data-pool has more then 200 gb... (14 Replies)
Discussion started by: shahzad53
14 Replies
All times are GMT -4. The time now is 05:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy