Mirroring an LSM Encapsulated Disk

From: J Bacher (jb@jbacher.com)
Date: Thu Jul 25 2002 - 17:19:51 EDT


Tru64 5.1a

My goal is composed of two parts:

1) to be able to take a valid AdvFS volume, encapsulate it, and mirror it

After direction yesterday to remove a volume so that I could encapsulate
the disk for LSM, I am unable to mirror the encapsulated disk (dsk2c-AdvFS)
to another disk that has been labeled, initialized and added to the disk
group (disk03).

When mirroring the encapsulated disk, I receive "ERROR: Cannot allocate
space to mirror 72205440 block volume". My target drive has insufficient
space once the LSMpriv region is taken into consideration. How does one
convert a volume with data on it to LSM and mirror it to another drive of
the same size?

"voldg -g rootdg free" does not list the encapsulated disk. "voldisk
list", "volinfo" and "volprint", however, do show the encapsulated
disk. Why is that?

2) to take two new drives, init them for LSM, create the
domain/fileset/mount on the first and mirror it to the second.

I tested using disk03 by init'g LSM first and creating the domain
second. I find that I have no block device for this volume in
/dev/vol/rootdg. I can see it the volume. I can rename the volume. But I
can't run mkfdmn because the special device file doesn't exist.

However, no matter how many times I remove the disk from the group, zero
out the label and start all over again, I still have no file for this
device. This is the first time that I've ever had this problem.

Apologies in advance for so much data following. And, is there an ISBN
available for documentation specific to LSM?

----------------------------------------------------------------------------------------------------------------------------------------------

# volprint

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
dg rootdg rootdg - - - - - -

dm disk03 dsk5 - 72201328 - - - -
dm dsk2c-AdvFS dsk2c - 72205440 - - - -
<rest deleted>

# voldg -g rootdg free
DISK DEVICE TAG OFFSET LENGTH FLAGS
disk02 dsk4 dsk4 67434944 4766384 -
disk03 dsk5 dsk5 0 72201328 -
dsk0g dsk0g dsk0 1538176 4614389 -
dsk1g dsk1g dsk1 1538176 4766400 -
dsk3g dsk3g dsk3 1538176 4614389 -

# voldisk list
DEVICE TYPE DISK GROUP STATUS
dsk0a nopriv root01 rootdg online
dsk0b nopriv usr01 rootdg online
dsk0d nopriv swap01 rootdg online
dsk0g simple dsk0g rootdg online
dsk1a nopriv var01 rootdg online
dsk1g simple dsk1g rootdg online
dsk2c nopriv dsk2c-AdvFS rootdg online
dsk3a nopriv root02 rootdg online
dsk3b nopriv dsk3b-AdvFS rootdg online
dsk3d nopriv swap02 rootdg online
dsk3g simple dsk3g rootdg online
dsk4 sliced disk02 rootdg online
dsk5 sliced disk03 rootdg online

# mkfdmn /dev/vol/rootdg/disk03 test_domain
mkfdmn: can't access device /dev/vol/rootdg/disk03; [2] No such file or
directory
mkfdmn: can't create new domain 'test_domain'

# ls -l
total 0
brw------- 1 root system 40, 8 Jul 25 14:30 disk01
brw------- 1 root system 40, 0 Feb 26 15:32 rootvol
brw------- 1 root system 40, 1 Feb 26 15:32 swapvol
brw------- 1 root system 40, 5 Feb 26 15:32 usrvol
brw------- 1 root system 40, 6 Feb 26 15:32 varvol
brw------- 1 root system 40, 7 Jul 23 15:15 vol-dsk2c



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:47 EDT