1826215 Members
2785 Online
109691 Solutions
New Discussion

Re: unmount filesystem

 
SOLVED
Go to solution
tareq_2
Regular Advisor

unmount filesystem

hi
i have read the following steps in hp Technical documentation but is this procedures (unmounting the filesystem)
will lose me my data
Increase /var
Follow these steps to increase the size limit of /var.

Determine if any space is available for the /dev/vg00:

/sbin/vgdisplay /dev/vg00

You should see output like this:


- Volume groups - VG Name /dev/vg00VG Write Access read/writeVG Status availableMax LV 255Cur LV 8Open LV 8Max PV 16Cur PV 1Act PV 1Max PE per PV 2000VGDA 2PE Size (Mbytes) 4Total PE 249Alloc PE 170Free PE 79Total PVG 0



The Free PE indicates the number of 4 MB extents available, in this case 79 (equivalent to 316 MB).

Change to single user state:

/sbin/shutdown

This allows /var to be unmounted.

View mounted volumes:

/sbin/mount

You see a display similar to the following:


/ on /dev/vg00/lvol1 defaults on Sat Mar 8 23:19:19 1997/var on /dev/vg00/lvol7 defaults on Sat Mar 8 23:19:28 1997


Determine which logical volume maps to /var. In this example, it is /dev/vg00/lvol7

Unmount /var:

/sbin/umount /var

This is required for the next step, because extendfs can only work on unmounted volumes. If you get a "device busy" error at this point, reboot the system and log on in single-user mode before continuing.

Extend the size of the logical volume:

/sbin/lvextend -L new_size_in_MB /dev/vg00/lvol7

For example, to make this volume 332 MB:

/sbin/lvextend -L 332 /dev/vg00/lvol7

To extend the file system size to the logical volume size:

/sbin/extendfs /dev/vg00/rlvol7

Mount /var:

/sbin/mount /var

Go back to the regular init state: init 3 or init 4, or reboot.

Wait 10 minutes after changing the system state or rebooting to let processes complete before running SD-UX commands.


note: is unmount filesystem will lose me my data

any body help.
4 REPLIES 4
Peter Godron
Honored Contributor
Solution

Re: unmount filesystem

Hi,
no, the umount command itself does not lose any data.
You mount and unmount filesystems, as long as nobody is using them. See "man 1m mount"
You only lose data, if you change the file system layout.

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
tareq_2
Regular Advisor

Re: unmount filesystem

hi peter
what did you mean You only lose data, if you change the file system layout.

(are you sure the unmount does not lose any data)

thanks for help
Peter Godron
Honored Contributor

Re: unmount filesystem

Tareq,
the unmount does not lose data.

My comment was for a situation were you, for example, lvreduce (shrink the logical volume), you would lose data.

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.


tareq_2
Regular Advisor

Re: unmount filesystem

thanks that what i need
best regards