1753283 Members
5548 Online
108792 Solutions
New Discussion юеВ

Re: new lvm

 
SOLVED
Go to solution
Deborah Weatherspoon
Frequent Advisor

new lvm

Help,

I thought I created a 70G vg09, what happened ?

adm3:[/dev] # newfs -F vxfs -o largefiles /dev/vg09/rlvol1
version 4 layout
71680000 sectors, 8960000 blocks of size 8192, log size 256 blocks
unlimited inodes, largefiles supported
8960000 data blocks, 8959376 free data blocks
274 allocation units of 32768 blocks, 32768 data blocks
last allocation unit has 14336 data blocks
adm3:[/dev] # cd /
adm3:[/] # mkdir u09
mkdir: cannot create u09: File exists
adm3:[/] # mount /dev/vg09 /u09
adm3:[/] # bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 204800 84455 112826 43% /
/dev/vg00/lvol1 303125 33441 239371 12% /stand
/dev/vg00/lvol8 4710400 4312132 380722 92% /var
/dev/vg00/lvol7 2097152 958765 1067266 47% /usr
/dev/vg03/lvol1 52412416 52367160 45256 100% /u03
/dev/vg00/lvol9 19824640 16155314 3562234 82% /u00
/dev/vg00/lvol4 1048576 485760 528830 48% /tmp
/dev/vg00/lvol6 2097152 1837847 243151 88% /opt
/dev/vg02/lvol1 52412416 51165784 1236952 98% /u02
/dev/vg08/lvol1 20963328 2004084 18663020 10% /u00/app/sct/tbanner
HOME:/home 7331840 6459544 819008 89% /home
/dev/vg05/lvol1 125804544 77669992 47758608 62% /u05
/dev/vg09 204800 84455 112826 43% /u09
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: new lvm

Note that you mounted /u09 on /dev/vg09 rather than something like /dev/vg09/lvol1. The first thing I would do is ls -l /dev/vg09; let's see what the underlying device node looks like. Also, what is the output of vgdisplay -v /dev/vg09?
If it ain't broke, I can fix that.
Steven E. Protter
Exalted Contributor

Re: new lvm

Shalom,

Did you check the return code from the newfs command? Was it zero.

I'm guessing a mistake was made somewhere along the line. Maybe keyboard history will reveal it.

SEP



Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Patrick Wallek
Honored Contributor
Solution

Re: new lvm

Clay has hit the nail on the head, I think.

You have somehow mounted /dev/vg09 to /u09.
You should have mounted /dev/vg09/lvol1 to /u09.

Try this:

# cd /
# umount /u09
# bdf -l

Verify that there is no entry for /dev/vg09 or /u09. Assuming there isn't, proceed.....

# mount /dev/vg09/lvol1 /u09
# bdf -l

See what the entry for /u09 looks like now. It should be the size you created lvol1.
Deborah Weatherspoon
Frequent Advisor

Re: new lvm

Thanks guys,

I mounted it wrong....