Re: Logical Volume closed upon creation
From: Bob Booth - CITES (booth_at_UIUC.EDU)
Date: 08/27/04
- Previous message: Green, Simon: "Re: Logical Volume closed upon creation"
- In reply to: Vipin Khushu - SuSe: "Re: Logical Volume closed upon creation"
- Next in thread: Green, Simon: "Re: Logical Volume closed upon creation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 27 Aug 2004 12:10:02 -0500 To: aix-l@Princeton.EDU
On Fri, Aug 27, 2004 at 12:01:08PM -0400, Vipin Khushu - SuSe wrote:
> Holger,
>
> Good Point. I scoured the documentation for anything that would tell me how to change the state, but found nothing.
>
> My problem may be the sequence of steps I am following in order to make ready a filesystem for use.
>
> Here's what I have done so far:
>
> 1] Created a volume group. See details below:
>
> # lsvg abcvg
>
> VOLUME GROUP: abcvg VG IDENTIFIER: 00005815a0b8c994
>
> VG STATE: active PP SIZE: 2 megabyte(s)
>
> VG PERMISSION: read/write TOTAL PPs: 818 (1636 megabytes)
>
> MAX LVs: 256 FREE PPs: 0 (0 megabytes)
>
> LVs: 1 USED PPs: 818 (1636 megabytes)
>
> OPEN LVs: 0 QUORUM: 2
>
> TOTAL PVs: 2 VG DESCRIPTORS: 3
>
> STALE PVs: 0 STALE PPs 0
>
> ACTIVE PVs: 2 AUTO ON: yes
>
>
> 2] Created a logical volume. See details below:
>
>
> # lslv abclv
>
> LOGICAL VOLUME: abclv VOLUME GROUP: abcvg
>
> LV IDENTIFIER: 00005815a0b8c994.1 PERMISSION: read/write
>
> VG STATE: active/complete LV STATE: closed/syncd
>
> TYPE: jfs WRITE VERIFY: off
>
> MAX LPs: 818 PP SIZE: 2 megabyte(s)
>
> COPIES: 1 SCHED POLICY: parallel
>
> LPs: 818 PPs: 818
>
> STALE PPs: 0 BB POLICY: relocatable
>
> INTER-POLICY: minimum RELOCATABLE: yes
>
> INTRA-POLICY: middle UPPER BOUND: 32
>
> MOUNT POINT: N/A LABEL: None
>
> MIRROR WRITE CONSISTENCY: on
>
> EACH LP COPY ON A SEPARATE PV ?: yes
>
>
>
> 3] Please see attachment that shows the distribution of the logical volume over the physical partitions. All 818 partitions are used.
>
> A question at this point - Do I need to create a jfslog logical volume in this volume group?
>
If there is no jfslog in the VG it will be created for you when you make your
first filesystem. Make sure that you leave at least one PP of space for the
log lv, or more than one PP depending on your filesystem sizes and the type
of performance you need. You can resize the jfslog before you mount the
filesystem.
> 4] In order to achieve the final objective of mounting a filesystem on these disks, what is the next required step?
>
> mkfs or crfs or something else?
Once you have created the LV as your step above you can use the crfs command
or #smit crfs to create the filesystem on your already existing LV. If there
is enough space in the VG, and this is the first filesystem you create, like
I said, the jfslog will be created for you.
Once the filesystem is mounted (you will have to do that yourself after
creation), the LV will be opened/syncd.
In your above example you would use the following command to create your
filesystem
# crfs -j jfs -d abclv -g abcvg -m /yourfilesystemname -A (if you want mount
at reboot)
There are a host of other parameters to the -a option of crfs that you
should review to get the best performanc/size from the jfs that you
create. See the man page for crfs, or look in the system management guide
for more details.
cheers,
bob
- Previous message: Green, Simon: "Re: Logical Volume closed upon creation"
- In reply to: Vipin Khushu - SuSe: "Re: Logical Volume closed upon creation"
- Next in thread: Green, Simon: "Re: Logical Volume closed upon creation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: PP size: 32MB vs. 64MB
... > filesystem made on LV created one on VG with PP 32MB size and second ...
if required to match the nbpi setting). ... 'man crfs' for more info on nbpi and
other settings. ... (comp.unix.aix) - Re: Quick File Deletions?
... >> Is there a way to quickly delete all files in a filesystem? ... unmount
the filesystem, remake the filesystem, remount. ... It didnt work and it said ...
Are there flags I need to the crfs to overwrite the exisitng FS. ... (comp.unix.aix) - Re: jfs2 inline logs
... >> them I am using jfs2 inline logs for all my filesystems on my ... >
Inline log mean the log for the filesystem is part of the filesytem lv. ... If you
have lost the file system, the jfslog is useless. ... (comp.unix.aix) - Re: jfslog "closed/syncd" question
... If it's closed/syncd, then it's not in use by any mounted filesystem. ...
JFSlog is not in use and could be deleted. ... > blah# lsvg -l archivevg ...
(AIX-L) - Re: Quick File Deletions?
... > would then have to recreate the lv and then the fs, ... Don't use rmfs.
... Just re-do the crfs command on the LV. ... That essentially reformats the LV
and re-prepares it for filesystem ... (comp.unix.aix)