Re: problem splitting off a copy of a JFS2 filesystem ...



I ran into the same situation a couple of years ago. I worked with IBM support and they determined that with JFS2 file systems you have to the snapshot command, at least on AIX 5.2. I used the filesystem and volume group names from your email and incorporated them into the example below. It should work but I haven't tested it. You may have to change the number of logical partitions on the mklv command. I used 256 but you might have different needs.

To create your snapshot try:
1. mklv -y snaplv -t jfs2 emcvg 256
2. snapshot -o snapfrom=/s /dev/snaplv
3. mkdir /s_copy
4. mount -o snapshot /dev/snaplv /s_copy

To remove the snapshot:
1. umount /s_copy
2. snapshot -d /dev/snaplv
3. rmdir /s_copy

Again, please try this on a test system first.

I hope this helps,
Rick

At 04:55 PM 4/17/2007, you wrote:
I'm trying to split off a mirrored copy of a logical volume and mount
it as a separate (read-only ) filesystem, as described on the page:


<http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp? topic=/com.ibm.aix.baseadmn/doc/baseadmndita/ HT_baseadmn_snapshotjfs.htm>

... but it isn't working. That page says it should work on AIX 5.2,
but here's what I've got:

#> df /s
Filesystem 512-blocks Free %Used Iused %Iused Mounted on
/dev/lv21 209715200 65659248 69% 343096 5% /s

#> lsfs -q /s
Name Nodename Mount Pt VFS Size
Options Auto Accounting
/dev/lv21 -- /s jfs2 209715200
rw yes no
(lv size: 209715200, fs size: 209715200, block size: 4096, sparse
files: yes, inline log: yes, inline log size: 400, reserved: 0,
reserved: 0, DMAPI: no, VIX: no)

#> lslv lv21
LOGICAL VOLUME: lv21 VOLUME GROUP: emcvg
LV IDENTIFIER: 0001dcba00004c00000001047c9fe1c4.5
PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 512 PP SIZE: 512
megabyte(s)
COPIES: 2 SCHED POLICY: parallel
LPs: 200 PPs: 400
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 128
MOUNT POINT: /s LABEL: /s
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: no
Serialize IO ?: NO

#> lsvg -l emcvg | grep lv21
lv21 jfs2 200 400 2 open/syncd /s
#> mkdir /s_copy

#> df /s_copy
Filesystem 512-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 2621440 1475112 44% 3852 1% /
#> chfs -a splitcopy=/s_copy /s

#> echo $?
0

#> df /s_copy
Filesystem 512-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 2621440 1475112 44% 3852 1% /


Note that the "chfs" command returns no error, and exits "0". The
split never happens though. Am I missing some crucial but non- obvious step here? This system is at:

#> oslevel -s
5200-09-04

... so I'm fairly up to date. Thanks in advance for the help ...
I've never done this before!

-s-


----------------------------------------------------------------------------
Rick Saylor Austin Community College Voice: (512)223-1182
Director of System Services 9101 Tuscany Way Fax: (512)223-1211
Information Technology Austin, Texas 78754



Relevant Pages

  • Re: System deadlock when using mksnap_ffs
    ... It only happens on this one filesystem, though, which might be to do ... 34 involuntary context switches ... 895 block input operations ... I also want to add that snapshot removal is equally as ...
    (freebsd-stable)
  • Re: Backups / Dump etc
    ... > J> dump which will automatically snapshot the mounted filesystems. ... A snapshot is an abstraction of the state of the filesystem at ... When you start the snapshot, the only thing in the snap is the ...
    (freebsd-questions)
  • Re: System deadlock when using mksnap_ffs
    ... with quite a bit of filesystem activity occurring while the snapshot is being made. ... the mount process is spending 100% of its time in "biord". ...
    (freebsd-stable)
  • mksnap_ffs, snapshot issues, again
    ... > let's try to create a snapshot of empty filesystem ... long snapshot creation would be fine if it ... tank# mount /dev/twed0 /mnt ... Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on ...
    (freebsd-current)
  • Re: problem splitting off a copy of a JFS2 filesystem ...
    ... I know that particular document is from the "AIX 5.3" manual section, but it also states specifically in there that it is valid for AIX 5.2. ... IBM support and they determined that with JFS2 file systems you have to the snapshot command, ... I used the filesystem and volume group names from your email and incorporated them into the example below. ... EACH LP COPY ON A SEPARATE PV ?: ...
    (AIX-L)