From: "For Miscelenious"<formisc@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Important diretories are missing after adding space.
Date: Sat, 4 Sep 2010 09:29:15 -0400 [thread overview]
Message-ID: <4c8249ae.07c1640a.2f38.ffff91c3@mx.google.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4030 bytes --]
Hello,
I added a second parttion to vg, extended lv and fs, mounted ir back. Checked -alm directories were in place. Proceeded with creation a few large files * also worked fine. Switched the machiine off and went to bed.
Next day booted to discover that few , but the most important, dies are missing.
Please advise - I'm extremely upset. Since the back is outdated.
Here is a log from history I could retrive and some additional information.
I run Centos 5.4 rpm based. (2.6.18-164.15.1.el5.centos.plus) with lvm2 ( rpm 2.6.18-164.15.1.el5.centos.plus). I followed the [url]http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html[/url] and
here is the list of what i have (now):
[code]
cat /etc/fstab
/dev/VG_SYS/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/VG_SYS/LogVol01 swap swap defaults 0 0
/dev/VG_Storage00/LG_VG_Storage00_00 /u01/app/ ext3 defaults 0 0
#/dev/mapper/VG_Storage01-LV_VG_STORAGE01 /mnt/storage ext3 defaults 0 0
/dev/mapper/VG_Storage-LV_00 /mnt/storage ext3 defaults 0 0
[root@server ~]# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
LogVol00 VG_SYS -wi-ao 148.07G
LogVol01 VG_SYS -wi-ao 896.00M
LV_00 VG_Storage -wi-a- 931.33G
LG_VG_Storage00_00 VG_Storage00 -wi-ao 149.05G
LV_Backup VG_backup -wi-ao 232.87G
[root@server ~]# vgs
VG #PV #LV #SN Attr VSize VFree
VG_SYS 1 2 0 wz--n- 148.95G 0
VG_Storage 2 1 0 wz--n- 931.33G 0
VG_Storage00 2 1 0 wz--l- 149.05G 0
VG_backup 3 1 0 wz--n- 232.87G 0
[root@server ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/hdc1 VG_Storage00 lvm2 a- 74.53G 0
/dev/hdc2 VG_backup lvm2 a- 74.52G 0
/dev/hdd1 VG_Storage00 lvm2 a- 74.53G 0
/dev/hdd2 VG_backup lvm2 a- 74.52G 0
/dev/hdd3 VG_backup lvm2 a- 83.83G 0
/dev/sda2 VG_SYS lvm2 a- 148.95G 0
/dev/sdb1 VG_Storage lvm2 a- 465.67G 0
/dev/sdb5 VG_Storage lvm2 a- 465.67G 0
/dev/sdb6 lvm2 -- 465.93G 465.93G
[/code]
now here is what i did.
i took the sdb5 and added to VG_STORAGE, extended lvs and extended the FS. Mounted and uuuupps. half of the directories are gone.
here is the history of commands. All run w/o errors. Well, at least obvious errors that would have caught my eye.
[code]
umount /mnt/storage
vgextend /dev/mapper/VG_Storage /dev/sdb5
lvextend -l+100%VG /dev/VG_Storage00/LG_VG_Storage00_00
lvextend -l+100%FREE /dev/mapper/VG_Storage-LV_00
resize2fs /dev/mapper/VG_Storage-LV_00
e2fsck -f /dev/mapper/VG_Storage-LV_00
resize2fs /dev/mapper/VG_Storage-LV_00
df -h /mnt/storage/
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VG_Storage-LV_00
932G 488G 407G 55% /mnt/storage
du -hs /mnt/storage/
487G /mnt/storage/
[/code]
now, i think i mounted and checked the space.
i ran a couples of commands that created a few big files in the one the directories. Everything went just fine. I never checked if all old directories exist.
Today booted - and all directories/files i created after extension of the fs are in place. Some old dirs are there too. But some (~50%) are missing. Obviously, those are the ones i do care about the most..
Please help....
[-- Attachment #2: Type: text/html, Size: 9339 bytes --]
next reply other threads:[~2010-09-04 13:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-04 13:29 For Miscelenious [this message]
2010-09-04 13:39 ` [linux-lvm] Important diretories are missing after adding space For Miscelenious
2010-09-04 21:18 ` Stuart D. Gathman
2010-09-04 21:55 ` Misc Things
2010-09-05 19:41 ` Stuart D. Gathman
2010-09-05 20:06 ` For Miscelenious
2010-09-05 23:21 ` Stuart D Gathman
2010-09-06 2:16 ` For Miscelenious
2010-09-06 6:06 ` Ray Morris
2010-09-06 18:43 ` Misc Things
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4c8249ae.07c1640a.2f38.ffff91c3@mx.google.com \
--to=formisc@gmail.com \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.