SUMMARY: To remove LSM to have more disk space

From: Padiyath Kumar <Kumar.Padiyath_at_psi.ch>
Date: Thu, 19 Jul 2001 16:13:33 +0200

   Hallo,
  I got only one reply and thanks. I did the following to remove LSM and
created a new domain with
  Advanced File system with all the disks.


   1. Backed up the FS on this volume to a tape (vdump)
   2. renamed /etc/vol/volboot file
   3. Restart the machine
   4. Delete the old label on all the disks.
   5. Label the same disks.
   6. Create the domain and mount the FS.


   Davis Alan wrote the following:
   ======================

You don't even have to remove LSM, if I understand what you need correctly.
What you would do is remove the mirror plex and use that storage to create a
new volume. Put an advfs filesystem on the new volume and mount it.

volplex -o rm dis pl-01
volassist make newvol_v 35560000
mkfdmn /dev/vol/newvol_v newvol_d
mkfset newvol_d new
mount newvol_d#new /home/whereever
or
addvol /dev/vol/newvol_v home_domain


If you have the ADVfs Advance Utilities license, you could even addvol the
new volume to the existing domain and the space would be available
immediately.

If you /do/ want to remove LSM the procedure is in the LSM manual.

My question was:
================
Hallo,
   I want to remove the LSM, installed for mirroring the user
   home directory partition, urgently since the user does not
   have enough disk space. The present configuration is

root:/>voldisk list

DEVICE TYPE DISK GROUP STATUS
rz0 sliced rz0 rootdg online
rz1 sliced rz1 rootdg online
rz16 sliced rz16 rootdg online
rz17 sliced rz17 rootdg online

root:/>volprint

TYPE NAME ASSOC KSTATE LENGTH COMMENT
dg rootdg rootdg - -
dm rz0 rz0 - 35564040
dm rz1 rz1 - 35564040
dm rz16 rz16 - 35564040
dm rz17 rz17 - 35564040
sd rz0-01 pl-01 - 35560000
sd rz1-01 pl-01 - 35560000
sd rz16-01 pl-02 - 35560000
sd rz17-01 pl-02 - 35560000
plex pl-01 vol01 ENABLED 71120000

/etc/fdmns link:

/etc/fdmns/data_domain:
total 0
lrwxr-xr-x 1 root system 21 Sep 17 1999 rootdg.vol01 ->
/dev/vol/1

 The file system is mounted as /home(/etc/fstab entry)
 ------------------------------------------------------

data_domain#data /home advfs rw 1 0

Can I do the following to remove the LSM to make the disks free:

 1. vdump -0uf /dev/nrmt0h /home (The OS is V4.0F)

 2. voldisk rm rz0 rz1 rz16 rz17
 
 3. voledit -g rootdg -rf rm vol01 (/dev/vol/ contains rootdg and vol01)
 
 4. rm /etc/vol/volboot

 5. disklabel -wr rz0

 6. disklabel -wr rz1

 7. disklabel rz16

 8. disklabel -wr rz17

    Then create a volume with AdvFS and mount the volume under /home
    and then vrestore from tape. Whether I get any problems if I do this?
    Each disks are 17GB. Am I missing anything?

    Thanks for your help.

    regards,
    Kumar



   
     
Received on Thu Jul 19 2001 - 14:14:20 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT