分类: LINUX
2011-08-30 09:19:23
将oracle、sqlserver、Document逻辑卷删除,创建新的逻辑卷backup
[root@storage-lh mnt]# mount
[root@storage-lh mnt]# umount /mnt/oracle/
[root@storage-lh mnt]# umount /mnt/sqlserver/
[root@storage-lh Document]# umount /mnt/Document/
[root@storage-lh mnt]# vi /etc/fstab
/dev/storage/oracle /mnt/oracle reiserfs defaults 1 2
/dev/storage/sqlserver /mnt/sqlserver reiserfs defaults 1 2
/dev/storage/Document /mnt/Document reiserfs defaults 1 2
lvremove /dev/mapper/storage-oracle
lvremove /dev/mapper/storage-sqlserver
lvremove /dev/storage/Document
[root@storage-lh mnt]# lvcreate -L 1.2T -n backup storage
[root@storage-lh mnt]# mke2fs -j /dev/storage/backup
[root@storage-lh mnt]# vi /etc/fstab
/dev/storage/backup /mnt/backup reiserfs defaults 1 2
[root@storage-lh mnt]# useradd backup
[root@storage-lh mnt]# smbpasswd -a backup
[root@storage-lh mnt]# chown backup:backup /mnt/backup/
[root@storage-lh mnt]# vi /etc/samba/smb.conf
[backup]
comment = backup
path = /mnt/backup
valid users = root, avinliu,glk,backup
read list = root,avinliu,glk,backup
write list = root,avinliu,glk,backup
[root@storage-lh mnt]#mount -a
mount: wrong fs type, bad option, bad superblock on /dev/hda5,
or too many mounted file systems
[root@storage-lh mnt]#reboot
无法启动
文件系统应为ext3
[root@storage-lh mnt]# vi /etc/fstab
/dev/storage/backup /mnt/backup ext3 defaults 1 2